/* Modern Leagues Section */
.leagues-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f4 100%);
    position: relative;
    overflow: hidden;
}

.leagues-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(17, 14, 127, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(97, 43, 121, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23110e7f" opacity="0.08"/><circle cx="75" cy="75" r="1" fill="%23110e7f" opacity="0.08"/><circle cx="50" cy="10" r="0.5" fill="%23110e7f" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%23110e7f" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%23110e7f" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    animation: backgroundFloat 20s ease-in-out infinite;
}

.leagues-header {
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

.leagues-title {
    font-size: 4rem;
    font-weight: 800;
    color: #612b79;
    margin-bottom: 2rem;
    position: relative;
    letter-spacing: -2px;
}

.title-underline {
    width: 120px;
    height: 6px;
    background: linear-gradient(90deg, #110e7f, #612b79, #110e7f);
    background-size: 200% 100%;
    margin: 0 auto;
    border-radius: 3px;
    position: relative;
    animation: underlineGlow 2s ease-in-out infinite;
}

.title-underline::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 14px;
    background: linear-gradient(90deg, transparent, rgba(97, 43, 121, 0.2), transparent);
    border-radius: 7px;
    animation: pulse 2s ease-in-out infinite;
}

/* Year Selector */
.year-selector {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.year-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #612b79;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.year-selector .nav-tabs {
    border: none;
    margin: 0;
}

.year-selector .nav-item {
    margin: 0;
}

.year-selector .nav-link {
    background: linear-gradient(135deg, #110e7f, #612b79);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(17, 14, 127, 0.3);
}

.year-selector .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(17, 14, 127, 0.4);
    color: white;
}

.year-selector .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(17, 14, 127, 0.1);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(17, 14, 127, 0.15);
    margin-top: 0.5rem;
    z-index: 1001;
    position: absolute;
}

.year-selector .dropdown-item {
    color: #110e7f;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 100%;
    white-space: nowrap;
}

.year-selector .dropdown-item:hover {
    background: linear-gradient(135deg, #110e7f, #612b79);
    color: white;
    transform: translateX(5px);
}

/* League Tabs */
.league-tabs {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(17, 14, 127, 0.1);
    box-shadow: 
        0 15px 35px rgba(17, 14, 127, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.league-tabs .competitions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.league-tabs .competitions-list li {
    margin: 0;
}

.league-tabs .competitions-list a {
    background: rgba(255, 255, 255, 0.2);
    color: #110e7f;
    border: 2px solid rgba(17, 14, 127, 0.2);
    border-radius: 25px;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.league-tabs .competitions-list a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.league-tabs .competitions-list a:hover::before {
    left: 100%;
}

.league-tabs .competitions-list a:hover {
    background: linear-gradient(135deg, #110e7f, #612b79);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(17, 14, 127, 0.3);
    border-color: transparent;
}

.league-tabs .competitions-list a.active {
    background: linear-gradient(135deg, #110e7f, #612b79);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(17, 14, 127, 0.3);
    transform: translateY(-2px);
}

/* Month Results */
.month-results {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.month-title {
    background: linear-gradient(135deg, #110e7f, #612b79);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px 15px 0 0;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(17, 14, 127, 0.2);
}

.month-games {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0 0 15px 15px;
    padding: 2rem;
    border: 1px solid rgba(17, 14, 127, 0.1);
    box-shadow: 
        0 15px 35px rgba(17, 14, 127, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.month-games .row {
    justify-content: center;
}

.month-games .col-12.col-lg-6 {
    display: flex !important;
    justify-content: center !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
}

.month-games .col-12.col-lg-12 {
    display: flex !important;
    justify-content: center !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

.month-games .game-card {
    width: 100% !important;
    max-width: 100% !important;
}

.game-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

.game-card-link:hover .game-card {
    box-shadow: 0 15px 35px rgba(17, 14, 127, 0.2);
}

/* Game Cards - Using styles from teams-member */
.game-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 35px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(97, 43, 121, 0.1), transparent);
    transition: left 0.6s;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(97, 43, 121, 0.2);
    border-color: #612b79;
}

.game-card:hover::before {
    left: 100%;
}

.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.game-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.team-left, .team-right {
    flex: 1;
    max-width: 200px;
}

.team-left {
    text-align: right;
    padding-right: 50px;
}

.team-right {
    text-align: left;
    padding-left: 50px;
}

.vs-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-text {
    background: #612b79;
    color: #fff;
    padding: 8px 12px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vs-center .result-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vs-center .score {
    font-size: 20px;
    font-weight: bold;
    color: #612b79;
    transition: all 0.3s ease;
}

.vs-center .separator {
    font-size: 18px;
    color: #666;
}

.sets-results {
    text-align: center;
    margin: 15px 0;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sets-text {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.team-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    transition: all 0.3s ease;
}

.game-card:hover .team-name {
    color: #612b79;
    transform: scale(1.05);
}

.game-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: auto;
    padding-top: 20px;
}

.game-date, .game-time, .game-place {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.game-date i, .game-time i, .game-place i {
    color: #612b79;
    transition: all 0.3s ease;
}

.game-card:hover .game-date i, 
.game-card:hover .game-time i, 
.game-card:hover .game-place i {
    color: #110e7f;
    transform: scale(1.2);
}

.game-card:hover .game-date, 
.game-card:hover .game-time, 
.game-card:hover .game-place {
    color: #110e7f;
}

.game-card:hover .vs-text {
    background: #110e7f;
    transform: scale(1.1);
}

.game-card:hover .score {
    color: #110e7f;
    transform: scale(1.1);
}

/* Animations */
@keyframes backgroundFloat {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(17, 14, 127, 0.3);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(97, 43, 121, 0.4);
    }
}

@keyframes underlineGlow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(17, 14, 127, 0.3);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(97, 43, 121, 0.4);
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

/* Responzivni stilovi */
@media (max-width: 768px) {
    .leagues-section {
        padding: 80px 0;
    }
    
    .leagues-title {
        font-size: 3rem;
    }
    
    .year-selector {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        justify-content: center;
    }
    
    .year-label {
        font-size: 1rem;
    }
    
    .year-selector .dropdown-item {
        font-size: 1.05rem;
        padding: 0.75rem 1.3rem;
        min-width: 100%;
        white-space: nowrap;
    }
    
    .league-tabs {
        padding: 1rem 1.5rem;
    }
    
    .month-games {
        padding: 1.5rem;
    }
    
    .month-games .row {
        justify-content: center;
    }
    
    .month-games .col-12.col-lg-6 {
        display: flex !important;
        justify-content: center !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    
    .month-games .col-12.col-lg-12 {
        display: flex !important;
        justify-content: center !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .month-games .game-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .game-card-link {
        display: flex;
        width: 100%;
        height: 100%;
    }
    
    .game-card {
        padding: 25px 20px;
        min-height: 250px;
    }
    
    .team-left, .team-right {
        max-width: 150px;
    }
    
    .team-left {
        padding-right: 30px;
    }
    
    .team-right {
        padding-left: 30px;
    }
}

@media (max-width: 480px) {
    .leagues-section {
        padding: 60px 0;
    }
    
    .leagues-title {
        font-size: 2.5rem;
    }
    
    .year-selector {
        flex-direction: column;
        gap: 0.6rem;
        justify-content: center;
    }
    
    .year-label {
        font-size: 0.9rem;
    }
    
    .year-selector .dropdown-item {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        min-width: 100%;
        white-space: nowrap;
    }
    
    .league-tabs {
        padding: 0.8rem 1rem;
    }
    
    .month-games {
        padding: 1rem;
    }
    
    .month-games .row {
        justify-content: center;
    }
    
    .month-games .col-12.col-lg-6 {
        display: flex !important;
        justify-content: center !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
    
    .month-games .col-12.col-lg-12 {
        display: flex !important;
        justify-content: center !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .month-games .game-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .game-card-link {
        display: flex;
        width: 100%;
        height: 100%;
    }
    
    .game-card {
        padding: 20px 15px;
        min-height: 220px;
    }
    
    .team-left, .team-right {
        max-width: 120px;
    }
    
    .team-left {
        padding-right: 20px;
    }
    
    .team-right {
        padding-left: 20px;
    }
}


