/* Reset and base styles */ :root { --primary: #6D28D9; --primary-dark: #5b21b6; --secondary: #4B5563; --accent: #F59E0B; --background: #2a2a2a; --text: #F3F4F6; --text-secondary: #9CA3AF; --border: #374151; --error: #EF4444; --success: #10B981; --warning: #F59E0B; /* New effect variables */ --glow-primary: 0 0 15px rgba(109, 40, 217, 0.7); --glow-accent: 0 0 15px rgba(245, 158, 11, 0.7); --glow-gold: 0 0 15px rgba(255, 215, 0, 0.6); --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.2); --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.3); --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); --shine-gradient: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.2), transparent ); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background-color: var(--background); color: var(--text); line-height: 1.5; } /* Header styles */ header { background-color: #2a2a2a; backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; } .header-container { max-width: 12800px; margin: 0 auto; padding: 2rem; display: flex; align-items: center; justify-content: space-between; } .logo a { display: flex; align-items: center; text-decoration: none; color: var(--text); } .logo img { height: 50px; margin-right: 1rem; } .logo h1 { font-size: 1.5rem; font-weight: 700; } .main-nav ul { display: flex; list-style: none; gap: 2rem; } .nav-link { color: var(--text-secondary); text-decoration: none; font-weight: 500; position: relative; padding: 0.5rem 0.25rem; transition: var(--transition-fast); } .nav-link:hover, .nav-link.active { color: var(--text); text-shadow: 0 0 8px rgba(243, 244, 246, 0.4); } .nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: var(--primary); box-shadow: var(--glow-primary); transition: var(--transition-bounce); } .nav-link:hover::after, .nav-link.active::after { width: 100%; } /* Hero section */ .hero { background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg'); background-size: cover; background-position: center; padding: 6rem 1rem; text-align: center; } .hero-content { max-width: 800px; margin: 0 auto; } .hero h2 { font-size: 3rem; margin-bottom: 1rem; color: var(--text); } .hero p { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2rem; } .hero-buttons { display: flex; gap: 1rem; justify-content: center; } .hero-button { padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600; text-decoration: none; position: relative; overflow: hidden; transition: var(--transition-bounce); z-index: 1; transform: translateY(0); } .hero-button.primary { background-color: var(--primary); color: white; box-shadow: 0 0 0 rgba(109, 40, 217, 0); } .hero-button.primary:hover { background-color: var(--primary-dark); transform: translateY(-3px); box-shadow: var(--glow-primary); } .hero-button.secondary { background-color: transparent; border: 2px solid var(--text); color: var(--text); } .hero-button.secondary:hover { background-color: var(--text); color: var(--background); transform: translateY(-3px); box-shadow: 0 0 15px rgba(243, 244, 246, 0.5); } .hero-button::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background-image: var(--shine-gradient); transform: skewX(-20deg); transition: all 0.6s ease; z-index: -1; } .hero-button:hover::after { left: 100%; } /* Player cards */ .top-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin: 2rem 0; padding: 0 1rem; } .top-player { background: linear-gradient(180deg, rgba(55, 65, 81, 0.1) 0%, rgba(17, 24, 39, 0.9) 100%); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; position: relative; overflow: hidden; transition: var(--transition-bounce); cursor: pointer; box-shadow: var(--shadow-soft); } .top-player:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-strong); border-color: var(--primary); } .top-player::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% 0%, rgba(109, 40, 217, 0.1), transparent 70%); opacity: 0; transition: var(--transition-fast); } .top-player:hover::before { opacity: 1; } .top-player.gold { border-color: #FFD700; } .top-player.gold:hover { box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2); border-color: #FFD700; } .top-player.silver { border-color: #C0C0C0; } .top-player.silver:hover { box-shadow: 0 8px 30px rgba(192, 192, 192, 0.2); border-color: #C0C0C0; } .top-player.bronze { border-color: #CD7F32; } .top-player.bronze:hover { box-shadow: 0 8px 30px rgba(205, 127, 50, 0.2); border-color: #CD7F32; } .rank-badge { position: absolute; top: 1rem; right: 1rem; background-color: var(--primary); color: white; width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; } .player-skin { width: 80px; height: 80px; margin-bottom: 1rem; position: relative; } .player-skin img { width: 100%; height: 100%; border-radius: 0.5rem; } .player-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; } .player-meta { display: flex; align-items: center; gap: 1rem; color: var(--text-secondary); } /* Table styles */ .players-table { max-width: 1280px; margin: 2rem auto; padding: 0 1rem; } .table-header { display: grid; grid-template-columns: 80px 1fr 120px 120px; padding: 1rem; background-color: rgba(55, 65, 81, 0.1); border-radius: 0.5rem 0.5rem 0 0; font-weight: 600; } .table-row { display: grid; grid-template-columns: 80px 1fr 120px 120px; padding: 1rem; border-bottom: 1px solid var(--border); transition: var(--transition-fast); cursor: pointer; position: relative; overflow: hidden; } .table-row:hover { background-color: rgba(55, 65, 81, 0.3); transform: translateX(8px); border-left: 3px solid var(--primary); box-shadow: inset 0 0 15px rgba(109, 40, 217, 0.1); } .table-row::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background-image: var(--shine-gradient); transform: skewX(-20deg); transition: all 0.5s ease; z-index: 1; pointer-events: none; } .table-row:hover::after { left: 150%; } .table-row .col-player { display: flex; align-items: center; gap: 1rem; } .player-table-skin img { width: 40px; height: 40px; border-radius: 0.25rem; } /* Modal styles */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); z-index: 1000; opacity: 0; backdrop-filter: blur(5px); transition: opacity 0.3s ease; } /* Footer styles */ footer { background-color: #2a2a2a; border-top: 1px solid var(--border); padding: 4rem 1rem 2rem; } .footer-content { max-width: 1280px; margin: 0 auto; text-align: front; /* Align content to the front (left) */ padding: 1rem; } .footer-logo { display: flex; align-items: center; margin-bottom: 1rem; } .footer-logo img { height: 40px; margin-right: 1rem; } .footer-center ul { list-style: none; } .footer-center a { color: var(--text-secondary); text-decoration: none; line-height: 2; } .footer-right .footer-button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background-color: var(--primary); color: white; text-decoration: none; border-radius: 0.5rem; margin-bottom: 1rem; } .footer-social { display: flex; gap: 1rem; } .social-icon { color: var(--text-secondary); font-size: 1.5rem; } .footer-bottom { max-width: 1280px; margin: 2rem auto 0; padding-top: 2rem; border-top: 1px solid var(--border); text-align: center; color: var(--text-secondary); font-size: 0.875rem; } /* Responsive design */ @media (max-width: 768px) { .header-container { flex-direction: column; gap: 1rem; } .hero h2 { font-size: 2rem; } .table-header, .table-row { grid-template-columns: 60px 1fr 80px; } .col-region { display: none; } } /* Loading and error states */ .loading-spinner { text-align: center; padding: 2rem; color: var(--text-secondary); } .error { text-align: center; padding: 2rem; color: var(--error); } .retry-button { margin-top: 1rem; padding: 0.5rem 1rem; background-color: var(--primary); color: white; border: none; border-radius: 0.25rem; cursor: pointer; } /* Theme toggle */ .theme-toggle { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.25rem; } /* Search */ .search-container { display: flex; gap: 0.5rem; } #player-search { padding: 0.5rem 1rem; border-radius: 0.5rem; background-color: rgba(55, 65, 81, 0.1); border: 1px solid var(--border); color: var(--text); transition: var(--transition-fast); box-shadow: inset 0 0 0 rgba(109, 40, 217, 0); } #player-search:focus { outline: none; background-color: rgba(55, 65, 81, 0.2); border-color: var(--primary); box-shadow: inset 0 0 10px rgba(109, 40, 217, 0.1), 0 0 5px rgba(109, 40, 217, 0.2); } #search-button { padding: 0.5rem 1rem; background-color: var(--primary); color: white; border: none; border-radius: 0.5rem; cursor: pointer; transition: var(--transition-bounce); position: relative; overflow: hidden; } #search-button:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--glow-primary); } #search-button::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background-image: var(--shine-gradient); transform: skewX(-20deg); transition: all 0.6s ease; } #search-button:hover::after { left: 100%; } /* Tier badges */ .tier-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-weight: 600; font-size: 0.875rem; } .tier-badge.high-tier { background-color: var(--primary); color: white; } .tier-badge.low-tier { background-color: var(--secondary); color: white; } /* Region flags */ .region-flag { margin-right: 0.5rem; } /* Category selection */ .mode-selection { padding: 2rem 1rem; background-color: rgba(55, 65, 81, 0.1); margin-bottom: 2rem; } .mode-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; max-width: 1280px; margin: 0 auto; } .mode-option { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem; background-color: rgba(17, 24, 39, 0.5); border: 1px solid var(--border); border-radius: 0.5rem; cursor: pointer; transition: all 0.2s; } .mode-option:hover { background-color: var(--primary); border-color: var(--primary); } .mode-option img { width: 48px; height: 48px; } /* Rankings Page Specific Styles */ .category-header { background-color: var(--background); padding: 2rem 1rem; border-bottom: 1px solid var(--border); } .category-container { max-width: 1280px; margin: 0 auto; text-align: center; } .category-container h2 { font-size: 2rem; margin-bottom: 1.5rem; color: var(--text); } .category-tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1rem; } .category-tab { padding: 0.75rem 1.5rem; background-color: rgba(55, 65, 81, 0.1); border: 1px solid var(--border); border-radius: 0.5rem; color: var(--text-secondary); font-weight: 600; cursor: pointer; transition: var(--transition-bounce); position: relative; overflow: hidden; z-index: 1; } .category-tab:hover { background-color: rgba(55, 65, 81, 0.2); color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow-soft); } .category-tab.active { background-color: var(--primary); border-color: var(--primary); color: white; box-shadow: var(--glow-primary); transform: translateY(-3px); } .category-tab::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at center, rgba(109, 40, 217, 0.5), transparent 70%); opacity: 0; z-index: -1; transition: opacity 0.3s ease; } .category-tab:hover::before { opacity: 0.3; } .category-tab.active::before { opacity: 0.5; } .category-tab::after { content: ''; position: absolute; width: 5px; height: 5px; background: rgba(255, 255, 255, 0.5); border-radius: 50%; transition: 0.5s; transform: scale(0); top: 50%; left: 50%; } .category-tab:active::after { transform: scale(20); opacity: 0; } /* Tier Navigation */ .tier-navigation { background-color: rgba(17, 24, 39, 0.95); padding: 1rem; position: sticky; top: 70px; z-index: 90; border-bottom: 1px solid var(--border); } .tier-tabs { max-width: 1280px; margin: 0 auto; display: flex; justify-content: center; gap: 1rem; } .tier-tab { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0.75rem; background: none; border: 2px solid transparent; border-radius: 0.5rem; color: var(--text-secondary); cursor: pointer; transition: var(--transition-bounce); position: relative; overflow: hidden; z-index: 1; } .tier-tab:hover { color: var(--text); transform: translateY(-5px); } .tier-tab img { width: 40px; height: 40px; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); filter: drop-shadow(0 0 0 rgba(109, 40, 217, 0)); } .tier-tab:hover img { transform: scale(1.15) rotate(5deg); filter: drop-shadow(0 0 8px rgba(109, 40, 217, 0.5)); } .tier-tab.active { border-color: var(--primary); color: var(--text); background-color: rgba(109, 40, 217, 0.1); box-shadow: var(--glow-primary); } .tier-tab.active img { transform: scale(1.1); filter: drop-shadow(0 0 8px rgba(109, 40, 217, 0.5)); } .tier-tab::before { content: ''; position: absolute; width: 100%; height: 0; bottom: 0; left: 0; background: linear-gradient(to top, rgba(109, 40, 217, 0.2), transparent); transition: height 0.3s ease; z-index: -1; } .tier-tab:hover::before { height: 100%; } .tier-tab::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background-image: var(--shine-gradient); transform: skewX(-20deg); transition: all 0.6s ease; z-index: -1; } .tier-tab:hover::after { left: 100%; } /* Rank styling for combat ranks */ .rank-value.rookie { color: #a0a0a0; } .rank-value.novice { color: #d0d0d0; } .rank-value.ace { color: #ff5555; animation: glow-red 2s infinite alternate; } .rank-value.master { color: #aa55ff; animation: glow-purple 2s infinite alternate; } .rank-value.grandmaster { color: #ffaa00; animation: glow-gold 2s infinite alternate; } @keyframes glow-red { from { text-shadow: 0 0 5px rgba(255, 0, 0, 0.3); } to { text-shadow: 0 0 15px rgba(255, 0, 0, 0.8); } } @keyframes glow-purple { from { text-shadow: 0 0 5px rgba(170, 85, 255, 0.3); } to { text-shadow: 0 0 15px rgba(170, 85, 255, 0.8); } } @keyframes glow-gold { from { text-shadow: 0 0 5px rgba(255, 170, 0, 0.3); } to { text-shadow: 0 0 15px rgba(255, 215, 0, 0.8); } } /* Rankings Content */ .rankings-container { max-width: 1280px; margin: 2rem auto; padding: 0 1rem; } .tier-section { margin-bottom: 3rem; background-color: rgba(17, 24, 39, 0.5); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; transition: var(--transition-fast); box-shadow: var(--shadow-soft); } .tier-section:hover { box-shadow: var(--shadow-strong); transform: translateY(-5px); } .tier-header { background: linear-gradient(to right, #333, #444, #333); padding: 20px 15px; text-align: center; font-size: 1.5em; font-weight: bold; color: #fff; border-bottom: 2px solid #4a4a4a; position: relative; overflow: hidden; } .tier-header::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background-image: var(--shine-gradient); transform: skewX(-20deg); transition: all 0.9s ease; opacity: 0.3; } .tier-section:hover .tier-header::after { left: 100%; } @keyframes tier-pulse { 0% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.1); } 50% { text-shadow: 0 0 15px rgba(255, 255, 255, 0.3); } 100% { text-shadow: 0 0 5px rgba(255, 255, 255, 0.1); } } .tier-header { animation: tier-pulse 2s infinite ease-in-out; } .tier-icon img { width: 80px; height: 80px; } .tier-info h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text); } .tier-info p { color: var(--text-secondary); } /* Players Table in Rankings */ .players-table { width: 100%; } .table-header { display: grid; grid-template-columns: 80px 1fr 120px 120px; padding: 1rem 2rem; background-color: rgba(55, 65, 81, 0.1); border-bottom: 1px solid var(--border); font-weight: 600; } .table-body .table-row { display: grid; grid-template-columns: 80px 1fr 120px 120px; padding: 1rem 2rem; border-bottom: 1px solid var(--border); align-items: center; transition: background-color 0.2s; } .table-row:hover { background-color: rgba(55, 65, 81, 0.1); cursor: pointer; } .col-player { display: flex; align-items: center; gap: 1rem; } .player-avatar { width: 40px; height: 40px; border-radius: 0.25rem; overflow: hidden; } .player-avatar img { width: 100%; height: 100%; object-fit: cover; } .player-position { font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 0.25rem; } .player-position.high { background-color: var(--primary); color: white; } .player-position.low { background-color: var(--secondary); color: white; } .rank-info { margin-top: 5px; font-size: 0.8em; color: #888; text-align: center; } .points-value { font-weight: bold; color: #ffaa00; } /* High/Low tier row backgrounds */ .player-row.high { background: linear-gradient(90deg, #3a3a3a, #444, #3a3a3a); border-left: 3px solid #ffd700; position: relative; overflow: hidden; } .player-row.low { background: linear-gradient(90deg, #232323, #2a2a2a, #232323); border-left: 3px solid #808080; position: relative; overflow: hidden; } .player-row.high:hover { background: #484848; box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.2); } .player-row.low:hover { background: #292929; } .player-row.high::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.15), transparent 70%); opacity: 0; transition: opacity 0.3s ease; } .player-row.high:hover::before { opacity: 1; } @keyframes gold-pulse { 0% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.3); } 50% { text-shadow: 0 0 15px rgba(255, 215, 0, 0.6); } 100% { text-shadow: 0 0 5px rgba(255, 215, 0, 0.3); } } .player-tier.high { animation: gold-pulse 2s infinite ease-in-out; } /* Loading States */ .loading-placeholder { text-align: center; padding: 2rem; color: var(--text-secondary); } .loading-placeholder::after { content: ''; display: inline-block; width: 1rem; height: 1rem; border: 2px solid var(--text-secondary); border-radius: 50%; border-top-color: transparent; animation: spin 1s linear infinite; margin-left: 0.5rem; } .category-bar { width: 100%; /* full width container */ background-color: var(--background); /* match your theme */ padding: 1rem 2rem; display: flex; justify-content: flex-front; /* push content all the way right */ box-sizing: border-box; border-bottom: 1px solid var(--border); position: relative; /* keep stacking context */ z-index: 10; } @keyframes spin { to { transform: rotate(360deg); } } /* Responsive Design */ @media (max-width: 768px) { .tier-tabs { overflow-x: auto; padding-bottom: 1rem; } .table-header, .table-body .table-row { grid-template-columns: 60px 1fr 100px; } .col-region { display: none; } .tier-header { flex-direction: column; text-align: center; gap: 1rem; } } @media (max-width: 480px) { .category-tabs { flex-direction: column; } .table-header, .table-body .table-row { grid-template-columns: 50px 1fr 80px; padding: 1rem; } .tier-icon img { width: 60px; height: 60px; } } .player-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 1000; justify-content: center; align-items: center; } .player-modal.active, .player-modal.show { display: flex; } .modal-content { background: #2a2a2a; padding: 20px; border-radius: 10px; width: 90%; max-width: 400px; text-align: center; position: relative; } .modal-close { position: absolute; top: 10px; right: 10px; color: #fff; font-size: 20px; cursor: pointer; background: none; border: none; } .modal-player-info { margin-bottom: 20px; } .modal-avatar { width: 120px; height: 120px; border-radius: 15px; margin-bottom: 15px; border: 3px solid rgba(109, 40, 217, 0.5); box-shadow: 0 0 20px rgba(109, 40, 217, 0.3); transition: all 0.3s ease; animation: avatar-pulse 3s infinite ease-in-out; } @keyframes avatar-pulse { 0% { box-shadow: 0 0 10px rgba(109, 40, 217, 0.3); } 50% { box-shadow: 0 0 25px rgba(109, 40, 217, 0.6); } 100% { box-shadow: 0 0 10px rgba(109, 40, 217, 0.3); } } .modal-username { font-size: 1.8em; font-weight: bold; color: #fff; margin: 10px 0; position: relative; display: inline-block; text-shadow: 0 0 10px rgba(255, 255, 255, 0.3); } .modal-username::after { content: ''; position: absolute; width: 60%; height: 3px; bottom: -8px; left: 20%; background: linear-gradient(90deg, transparent, var(--primary), transparent); border-radius: 3px; } .modal-tiers { display: flex; flex-direction: column; gap: 10px; } .modal-tier { display: flex; align-items: center; gap: 10px; font-size: 1.2em; color: #fff; } .modal-tier-icon { width: 24px; height: 24px; }