/* Reset and Base Styles - Mobile First */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-size: 16px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Mobile Navigation */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.nav-title {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #4a90e2 100%);
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.nav-menu.active {
    display: flex;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.login-link {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle {
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: block;
}

/* Main Content */
.main-content {
    margin-top: 70px;
}

.section {
    padding: 3rem 0;
    min-height: auto;
    border-bottom: 1px solid #e9ecef;
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    text-align: center;
    color: #1e3c72;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #1e3c72 0%, #4a90e2 100%);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #1e3c72 0%, #4a90e2 100%);
    color: white;
    margin: -1rem -15px 1.5rem -15px;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}


.navigation-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.nav-link-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #1e3c72 0%, #4a90e2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.nav-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
    background: linear-gradient(135deg, #2a5298 0%, #5ba0f2 100%);
}

.nav-link-btn i {
    font-size: 1.1rem;
}

.location-map {
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

#map-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#map-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #1e3c72;
}

#map-placeholder p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Matches Section */
.matches-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.match-card {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.match-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.team-name {
    font-weight: 600;
    color: #333;
    flex: 1;
    min-width: 80px;
}

.score {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e3c72;
    background: #f0f4ff;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    margin: 0 0.5rem;
}

.match-goals {
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 0.8rem;
    line-height: 1.4;
}

/* Stats Cards */
.stats-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e9ecef;
}

.stats-card h3 {
    color: #1e3c72;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.stat-item:hover {
    background: #e9ecef;
}

.player-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.stat-number {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1e3c72;
    background: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    min-width: 35px;
    text-align: center;
}

.training-attendance-card {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    margin-top: 2rem;
}

.training-attendance-wrapper {
    margin-top: 4rem;
}

.training-attendance-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-wrap: wrap;
}

.attendance-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    border: 1px solid #e3e7ef;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    flex: 1 1 100%;
}

.attendance-week {
    font-weight: 600;
    color: #1e3c72;
    font-size: 1rem;
    min-width: 90px;
}

.attendance-details {
    flex: 1;
    text-align: left;
}

.attendance-details span {
    display: block;
    color: #555;
    font-size: 0.9rem;
}

.attendance-note {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.2rem;
}

.attendance-progress {
    width: 120px;
    height: 10px;
    border-radius: 999px;
    background: #e5ecfb;
    overflow: hidden;
    position: relative;
}

.attendance-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #4a90e2 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.attendance-progress--empty {
    background: transparent;
}

.attendance-value {
    font-weight: 600;
    color: #1e3c72;
    min-width: 70px;
    text-align: right;
    font-size: 0.95rem;
}

.attendance-value small {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
}

.training-attendance-footnote {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 1rem;
    opacity: 0.8;
}

/* Team fund card */
.finance-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.15);
    border: 1px solid rgba(30, 60, 114, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.finance-summary {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.finance-balance {
    background: linear-gradient(135deg, #1e3c72 0%, #4a90e2 100%);
    border-radius: 14px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.finance-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

#fundBalanceDisplay {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.finance-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.finance-totals div {
    background: #f4f7ff;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(30, 60, 114, 0.1);
    color: #1e3c72;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-weight: 600;
}

.finance-expenses h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.finance-expenses ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.finance-expenses li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fb;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(30, 60, 114, 0.07);
    color: #334;
    font-size: 0.95rem;
}

.finance-expenses li span {
    display: block;
}

.finance-expenses li .expense-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.2rem;
}

.finance-expenses li .expense-amount {
    font-weight: 600;
    color: #c0392b;
}

.finance-empty {
    justify-content: center !important;
    color: #6b7280;
    font-style: italic;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.player-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.player-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.player-gif {
    margin-bottom: 0.8rem;
}

.player-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1e3c72;
    transition: transform 0.3s ease;
}

.player-image:hover {
    transform: scale(1.1);
}

/* Video support for player images */
.player-image video {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.player-info h3 {
    color: #1e3c72;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    line-height: 1.2;
}

.player-info p {
    color: #666;
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Media Section */
.media-search {
    position: relative;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.media-search input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.media-search input:focus {
    outline: none;
    border-color: #1e3c72;
}

.media-search i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.media-slider {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.media-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
}

.media-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.media-content {
    position: relative;
    overflow: hidden;
}

.media-play-overlay {
    transition: opacity 0.3s ease;
}

.media-item:hover .media-play-overlay {
    opacity: 1 !important;
}

.media-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.media-info {
    padding: 1rem;
}

.media-info h4 {
    color: #1e3c72;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    line-height: 1.3;
}

.media-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Sponsors Section */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.sponsor-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.sponsor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.sponsor-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sponsor-card img {
    width: 100%;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.8rem;
    border-radius: 5px;
}

.sponsor-card h4 {
    color: #1e3c72;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        display: flex;
        position: static;
        width: auto;
        background: none;
        box-shadow: none;
        flex-direction: row;
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        border-bottom: none;
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .navigation-links {
        flex-direction: row;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .nav-link-btn {
        flex: 1;
    }
    
    .matches-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .stats-cards {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .training-attendance-card {
        margin-top: 3rem;
    }
    
    .training-attendance-list {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .attendance-item {
        flex: 1 1 calc(33.333% - 1rem);
        min-width: 220px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .media-slider {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .player-image {
        width: 100px;
        height: 100px;
    }
    
    .sponsor-card img {
        height: 80px;
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .training-attendance-list {
        gap: 0.8rem;
        flex-direction: column;
    }

    .attendance-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .attendance-week {
        min-width: auto;
    }

    .attendance-progress {
        width: 100%;
    }

    .attendance-value {
        text-align: left;
    }

    .attendance-value small {
        display: inline-block;
        margin-left: 0.4rem;
    }

    .finance-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .finance-totals {
        grid-template-columns: 1fr;
    }

    .finance-expenses li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .finance-expenses li .expense-amount {
        align-self: flex-end;
    }
}