/* 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; } * { 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; transition: color 0.2s; } .nav-link:hover, .nav-link.active { color: var(--text); } /* 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; transition: all 0.2s; } .hero-button.primary { background-color: var(--primary); color: white; } .hero-button.primary:hover { background-color: var(--primary-dark); } .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); } /* 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: transform 0.2s; cursor: pointer; } .top-player:hover { transform: translateY(-4px); } .top-player.gold { border-color: #FFD700; } .top-player.silver { border-color: #C0C0C0; } .top-player.bronze { 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: background-color 0.2s; cursor: pointer; } .table-row:hover { background-color: rgba(55, 65, 81, 0.1); } .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; } .modal-content { position: relative; background-color: var(--background); margin: 10% auto; padding: 2rem; width: 90%; max-width: 600px; border-radius: 1rem; border: 1px solid var(--border); } .close-modal { position: absolute; right: 1rem; top: 1rem; font-size: 1.5rem; cursor: pointer; color: var(--text-secondary); } /* 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.25rem; background-color: rgba(55, 65, 81, 0.1); border: 1px solid var(--border); color: var(--text); } #search-button { padding: 0.5rem 1rem; background-color: var(--primary); color: white; border: none; border-radius: 0.25rem; cursor: pointer; } /* 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: all 0.2s; } .category-tab:hover { background-color: rgba(55, 65, 81, 0.2); color: var(--text); } .category-tab.active { background-color: var(--primary); border-color: var(--primary); color: white; } /* 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: all 0.2s; } .tier-tab img { width: 40px; height: 40px; transition: transform 0.2s; } .tier-tab:hover img { transform: scale(1.1); } .tier-tab.active { border-color: var(--primary); color: var(--text); background-color: rgba(109, 40, 217, 0.1); } /* 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; } .tier-header { background: #333; padding: 15px; text-align: center; /* Center the text */ font-size: 1.5em; font-weight: bold; color: #fff; border-bottom: 2px solid #4a4a4a; } .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; } /* High/Low tier row backgrounds */ .player-row.high { background: #3a3a3a; } .player-row.low { background: #232323; } .player-row.high:hover { background: #484848; } .player-row.low:hover { background: #292929; } /* 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 { 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: 100px; height: 100px; border-radius: 10px; margin-bottom: 10px; } .modal-username { font-size: 1.5em; font-weight: bold; color: #fff; } .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; }