/* ========================================
   VARIABILI & RESET
======================================== */
:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #ff2d55;
    --dark: #0a0e1a;
    --dark-card: #141b2b;
    --dark-hover: #1a2438;
    --text: #e8edf5;
    --text-muted: #8a9bb5;
    --glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --border-glow: 0 0 20px rgba(0, 212, 255, 0.1);
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========================================
   PARTICLES BACKGROUND
======================================== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   NAVBAR
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.5rem;
}

.nav-logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
}

.nav-logo span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu li a {
    padding: 0.6rem 1.2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--text);
    background: rgba(0, 212, 255, 0.05);
}

.nav-menu li a.active {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.05);
}

.nav-menu li a i {
    margin-right: 0.5rem;
}

.btn-nav-admin {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: var(--dark) !important;
    font-weight: 700 !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-nav-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
}

/* Hamburger mobile */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   MAIN CONTENT
======================================== */
main {
    position: relative;
    z-index: 1;
    padding-top: 80px;
}

/* ========================================
   HERO
======================================== */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    background: radial-gradient(ellipse at 50% 30%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
}

.hero-badge {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-match {
    background: rgba(20, 27, 43, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem 3rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.match-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    padding: 0.2rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
}

.match-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.match-info span {
    font-size: 0.95rem;
    color: var(--text);
}

.match-date {
    color: var(--primary) !important;
    font-weight: 600;
}

.match-opponent {
    font-weight: 700;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.btn-sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
}

/* ========================================
   SECTIONS
======================================== */
.section {
    padding: 5rem 2rem;
}

.section.bg-dark {
    background: rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.section-header h2 i {
    color: var(--primary);
    margin-right: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    width: 100%;
}

/* ========================================
   GRIDS
======================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ========================================
   NEWS CARDS
======================================== */
.news-card {
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--border-glow);
}

.news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 1.5rem;
}

.news-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.news-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================================
   PLAYER CARDS
======================================== */
.player-card {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.player-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 212, 255, 0.03), transparent, rgba(0, 212, 255, 0.03), transparent);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.player-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--border-glow);
}

.player-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -10px;
    right: 10px;
    pointer-events: none;
}

.player-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.player-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.player-role {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.badge {
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bg-primary { background: var(--primary); color: var(--dark); }
.bg-success { background: #00d48a; color: var(--dark); }
.bg-danger { background: var(--secondary); color: #fff; }
.bg-warning { background: #ffaa00; color: var(--dark); }
.bg-info { background: #00bcd4; color: var(--dark); }

.player-stats {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.player-cards {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.yellow-card, .red-card {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

/* ========================================
   FILTERS
======================================== */
.filters {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

/* ========================================
   STANDINGS
======================================== */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th {
    padding: 0.8rem 0.6rem;
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table td {
    padding: 0.8rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.table tr.highlight {
    background: rgba(0, 212, 255, 0.05);
}

.table tr.highlight td {
    border-bottom-color: rgba(0, 212, 255, 0.1);
}

.table-standings {
    font-size: 0.85rem;
}

.table-standings th,
.table-standings td {
    padding: 0.5rem 0.4rem;
    text-align: center;
}

.table-standings td:first-child,
.table-standings th:first-child {
    text-align: center;
}

.table-standings td:nth-child(2) {
    text-align: left;
}

.form-indicator {
    display: flex;
    gap: 3px;
}

.form-dot {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 4px;
    color: var(--dark);
}

.form-w { background: #00d48a; }
.form-d { background: #ffaa00; }
.form-l { background: var(--secondary); }

.standings-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    justify-content: center;
}

.legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin-right: 0.3rem;
    vertical-align: middle;
}

/* ========================================
   NEXT MATCH CARD
======================================== */
.next-match-card {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
    text-align: center;
}

.next-match-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.next-match-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
}

.team-badge {
    font-size: 2rem;
}

.match-vs {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-muted);
}

.match-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.match-details i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* ========================================
   MATCH CARDS
======================================== */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--dark-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 1rem;
}

.match-date {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 120px;
}

.match-result {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.team-home, .team-away {
    font-weight: 600;
    font-size: 1rem;
}

.score {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 1rem;
}

.match-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 150px;
    justify-content: flex-end;
}

.match-location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   TOP SCORERS
======================================== */
.top-scorers {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.scorer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: var(--dark-card);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.scorer-item.top {
    border-left-color: var(--primary);
    background: rgba(0, 212, 255, 0.05);
}

.scorer-rank {
    font-weight: 700;
    color: var(--text-muted);
    min-width: 30px;
}

.scorer-name {
    font-weight: 500;
    flex: 1;
    padding: 0 1rem;
}

.scorer-goals {
    font-weight: 700;
    color: var(--primary);
}

/* ========================================
   FOOTER
======================================== */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3,
.footer-col h4 {
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.footer-col h3 {
    font-size: 1.2rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-col ul li i {
    width: 20px;
    color: var(--primary);
}

.sponsor-link {
    display: inline-block;
    margin: 0.3rem 0.6rem 0.3rem 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.sponsor-link:hover {
    opacity: 1;
}

.sponsor-link img {
    height: 40px;
    width: auto;
    filter: grayscale(1) brightness(2);
    transition: all 0.3s ease;
}

.sponsor-link:hover img {
    filter: grayscale(0) brightness(1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom i.fa-heart {
    color: var(--secondary);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.player-card, .news-card, .match-card {
    animation: fadeIn 0.5s ease forwards;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        background: var(--dark);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .match-card {
        flex-direction: column;
        text-align: center;
    }
    
    .match-result {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .match-status {
        justify-content: center;
    }
    
    .next-match-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .match-vs {
        transform: rotate(0deg);
    }
    
    .match-details {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .hero-match {
        padding: 1.5rem;
    }
    
    .match-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}