/* .leagues-section moved to .standard-section in common-styles.css */

/* .title-underline moved to common-styles.css */

/* 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: var(--primary-purple);
    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, var(--primary-purple-dark), var(--primary-purple));
    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(124, 58, 237, 0.3);
}

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

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

.year-selector .dropdown-item {
    color: var(--primary-purple-dark);
    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, var(--primary-purple-dark), var(--primary-purple));
    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(124, 58, 237, 0.1);
    box-shadow: 
        0 15px 35px rgba(124, 58, 237, 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: var(--primary-purple-dark);
    border: 2px solid rgba(124, 58, 237, 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, var(--primary-purple-dark), var(--primary-purple));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
    border-color: transparent;
}

.league-tabs .competitions-list a.active {
    background: linear-gradient(135deg, var(--primary-purple-dark), var(--primary-purple));
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

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

.month-title {
    background: linear-gradient(135deg, var(--primary-purple-dark), var(--primary-purple));
    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(124, 58, 237, 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(124, 58, 237, 0.1);
    box-shadow: 
        0 15px 35px rgba(124, 58, 237, 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(124, 58, 237, 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(124, 58, 237, 0.1), transparent);
    transition: left 0.6s;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.2);
    border-color: var(--primary-purple);
}

.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: var(--primary-purple);
    color: #fff;
    padding: 8px 12px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

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

.vs-center .score {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-purple);
    transition: all 0.3s ease;
}

.vs-center .separator {
    font-size: 22px;
    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: 18px;
    color: #666;
    font-style: italic;
}

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

.game-card:hover .team-name {
    color: var(--primary-purple);
    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: 18px;
}

.game-date i, .game-time i, .game-place i {
    color: var(--primary-purple);
    transition: all 0.3s ease;
}

.game-card:hover .game-date i, 
.game-card:hover .game-time i, 
.game-card:hover .game-place i {
    color: var(--primary-purple-dark);
    transform: scale(1.2);
}

.game-card:hover .game-date, 
.game-card:hover .game-time, 
.game-card:hover .game-place {
    color: var(--primary-purple-dark);
}

.game-card:hover .vs-text {
    background: var(--primary-purple-dark);
    transform: scale(1.1);
}

.game-card:hover .score {
    color: var(--primary-purple-dark);
    transform: scale(1.1);
}

/* Animations */
@keyframes backgroundFloat {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
    }
}

@keyframes underlineGlow {
    0%, 100% { 
        background-position: 0% 50%;
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    }
    50% { 
        background-position: 100% 50%;
        box-shadow: 0 0 30px rgba(124, 58, 237, 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;
    }
    
    .game-teams {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    
    .team-left, .team-right {
        max-width: none;
        padding: 0;
    }
    
    .team-left {
        text-align: right;
    }
    
    .team-right {
        text-align: left;
    }
    
    .vs-center {
        position: relative;
        left: auto;
        transform: none;
    }
}

@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;
    }
    
    .game-teams {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 6px;
        width: 100%;
    }
    
    .team-left, .team-right {
        max-width: none;
        padding: 0;
    }
    
    .team-left {
        text-align: right;
    }
    
    .team-right {
        text-align: left;
    }
    
    .vs-center {
        position: relative;
        left: auto;
        transform: none;
    }
}


