/* ========================================
   GAZPROM FOOTBALL FAMILY SECTION - ENHANCED DESIGN
======================================== */

.football-family-section {
    position: relative;
    padding: 60px 0 70px;
    background: linear-gradient(135deg, #000510 0%, #001428 25%, #002856 50%, #001428 75%, #000510 100%);
    overflow: hidden;
}

/* Background Effects */
.family-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.family-hexagon-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(60deg, transparent, transparent 35px, rgba(0, 191, 255, 0.04) 35px, rgba(0, 191, 255, 0.04) 36px),
        repeating-linear-gradient(-60deg, transparent, transparent 35px, rgba(0, 191, 255, 0.04) 35px, rgba(0, 191, 255, 0.04) 36px),
        repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(0, 191, 255, 0.04) 35px, rgba(0, 191, 255, 0.04) 36px);
    animation: patternFloat 20s linear infinite;
}

@keyframes patternFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(60px); }
}

.family-energy-waves {
    position: absolute;
    top: -20%;
    left: -20%;
    right: -20%;
    bottom: -20%;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(0, 191, 255, 0.15) 0%, transparent 45%),
        radial-gradient(ellipse at 70% 60%, rgba(0, 147, 255, 0.12) 0%, transparent 50%);
    animation: energyPulse 10s ease-in-out infinite alternate;
    filter: blur(80px);
}

@keyframes energyPulse {
    0% { 
        opacity: 0.4; 
        transform: scale(1) rotate(0deg); 
    }
    100% { 
        opacity: 0.7; 
        transform: scale(1.15) rotate(5deg); 
    }
}

/* Section Header - Enhanced Design */
.family-header-unique {
    text-align: center;
    padding: 0 20px 60px;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.12) 0%, rgba(0, 147, 255, 0.08) 100%);
    border: 1.5px solid rgba(0, 191, 255, 0.4);
    border-radius: 50px;
    color: #00BFFF;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.2);
    transition: all 0.3s ease;
}

.header-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 191, 255, 0.3);
    border-color: rgba(0, 191, 255, 0.6);
}

.badge-icon {
    width: 22px;
    height: 22px;
    stroke-width: 2.5;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.family-title-unique {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #ffffff 0%, #00BFFF 50%, #0093FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(0, 191, 255, 0.3);
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.family-title-unique::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00BFFF, transparent);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.6);
}

.family-subtitle-unique {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #a8c5e0;
    font-weight: 400;
    letter-spacing: 0.8px;
    line-height: 1.7;
    margin-top: 20px;
}

/* Power Columns Grid - Enhanced Layout */
.family-grid-unique {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 35px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Individual Club Column - Enhanced Design */
.family-club-unique {
    position: relative;
    height: 520px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border-radius: 24px;
    border: 2px solid rgba(0, 191, 255, 0.2);
    animation: cardFadeIn 0.6s ease-out backwards;
}

.family-club-unique:nth-child(1) { animation-delay: 0.1s; }
.family-club-unique:nth-child(2) { animation-delay: 0.2s; }
.family-club-unique:nth-child(3) { animation-delay: 0.3s; }
.family-club-unique:nth-child(4) { animation-delay: 0.4s; }
.family-club-unique:nth-child(5) { animation-delay: 0.5s; }

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

/* Club-specific background colors with enhanced gradients */
.family-club-unique:nth-child(1) .club-background-unique {
    background: 
        linear-gradient(135deg, rgba(0, 61, 107, 0.4) 0%, rgba(0, 26, 51, 0.6) 100%),
        radial-gradient(circle at top right, rgba(0, 191, 255, 0.1), transparent);
}

.family-club-unique:nth-child(2) .club-background-unique {
    background: 
        linear-gradient(135deg, rgba(0, 51, 128, 0.4) 0%, rgba(0, 21, 64, 0.6) 100%),
        radial-gradient(circle at top right, rgba(0, 147, 255, 0.1), transparent);
}

.family-club-unique:nth-child(3) .club-background-unique {
    background: 
        linear-gradient(135deg, rgba(77, 0, 0, 0.4) 0%, rgba(26, 0, 0, 0.6) 100%),
        radial-gradient(circle at top right, rgba(255, 0, 0, 0.08), transparent);
}

.family-club-unique:nth-child(4) .club-background-unique {
    background: 
        linear-gradient(135deg, rgba(0, 45, 92, 0.4) 0%, rgba(0, 21, 46, 0.6) 100%),
        radial-gradient(circle at top right, rgba(0, 100, 200, 0.1), transparent);
}

.family-club-unique:nth-child(5) .club-background-unique {
    background: 
        linear-gradient(135deg, rgba(0, 77, 107, 0.4) 0%, rgba(0, 31, 51, 0.6) 100%),
        radial-gradient(circle at top right, rgba(0, 191, 255, 0.1), transparent);
}

.club-background-unique {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    transition: all 0.5s ease;
}

.club-overlay-unique {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0, 5, 16, 0.88) 0%, 
        rgba(0, 20, 40, 0.82) 40%,
        rgba(0, 40, 86, 0.75) 70%,
        rgba(0, 5, 16, 0.92) 100%
    );
    backdrop-filter: blur(12px);
    z-index: 2;
    transition: all 0.5s ease;
}

.club-glow-border-unique {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    opacity: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.3), rgba(0, 147, 255, 0.2));
    box-shadow: 
        0 0 50px rgba(0, 191, 255, 0.6), 
        inset 0 0 50px rgba(0, 191, 255, 0.15);
    z-index: 3;
    transition: all 0.5s ease;
    pointer-events: none;
}

/* Enhanced Hover Effects */
.family-club-unique:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(0, 191, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 191, 255, 0.3);
}

.family-club-unique:hover .club-background-unique {
    filter: brightness(1.5) saturate(1.2);
    transform: scale(1.05);
}

.family-club-unique:hover .club-overlay-unique {
    background: linear-gradient(180deg, 
        rgba(0, 5, 16, 0.75) 0%, 
        rgba(0, 20, 40, 0.65) 40%,
        rgba(0, 40, 86, 0.60) 70%,
        rgba(0, 5, 16, 0.80) 100%
    );
}

.family-club-unique:hover .club-glow-border-unique {
    opacity: 1;
}

.family-club-unique:hover .club-logo-wrapper {
    transform: scale(1.08);
    border-color: rgba(0, 191, 255, 0.5);
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.4);
}

.family-club-unique:hover .club-logo-unique {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(0, 191, 255, 0.9));
}

.family-club-unique:hover .club-button-unique {
    opacity: 1;
    transform: translateY(0);
}

/* Club Content - Enhanced Design */
.club-content-unique {
    position: relative;
    z-index: 4;
    height: 100%;
    padding: 45px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 22px;
}

.club-logo-wrapper {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: 
        linear-gradient(135deg, rgba(0, 191, 255, 0.08) 0%, rgba(0, 147, 255, 0.05) 100%);
    border: 2.5px solid rgba(0, 191, 255, 0.25);
    box-shadow: 
        0 0 30px rgba(0, 191, 255, 0.2),
        inset 0 0 20px rgba(0, 191, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.club-logo-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), transparent);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.family-club-unique:hover .club-logo-wrapper::before {
    opacity: 1;
    animation: logoRing 1.5s ease-in-out infinite;
}

@keyframes logoRing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.club-logo-unique {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.6));
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.club-name-unique {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    text-shadow: 
        0 2px 20px rgba(0, 191, 255, 0.5),
        0 0 40px rgba(0, 191, 255, 0.3);
    letter-spacing: 1px;
    line-height: 1.3;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.family-club-unique:hover .club-name-unique {
    text-shadow: 
        0 2px 30px rgba(0, 191, 255, 0.8),
        0 0 60px rgba(0, 191, 255, 0.5);
    transform: scale(1.05);
}

.club-country-unique {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.12) 0%, rgba(0, 147, 255, 0.08) 100%);
    border-radius: 30px;
    border: 1.5px solid rgba(0, 191, 255, 0.25);
    min-height: 42px;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.15);
    transition: all 0.3s ease;
}

.family-club-unique:hover .club-country-unique {
    border-color: rgba(0, 191, 255, 0.4);
    box-shadow: 0 6px 25px rgba(0, 191, 255, 0.25);
    transform: scale(1.05);
}

.flag-icon {
    font-size: 1.3rem;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(0, 191, 255, 0.3));
}

.flag-img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.country-name {
    font-size: 1rem;
    color: #d4e6f7;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
}

.club-button-unique {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2) 0%, rgba(0, 147, 255, 0.15) 100%);
    border: 2px solid rgba(0, 191, 255, 0.5);
    border-radius: 30px;
    color: #00DFFF;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    min-height: 46px;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.club-button-unique::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.5s ease;
}

.club-button-unique:hover::before {
    left: 100%;
}

.club-button-unique svg {
    width: 18px;
    height: 18px;
    stroke-width: 3;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.club-button-unique:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.4) 0%, rgba(0, 147, 255, 0.3) 100%);
    border-color: #00FFFF;
    box-shadow: 
        0 12px 40px rgba(0, 191, 255, 0.4),
        0 0 30px rgba(0, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(0) scale(1.05);
}

.club-button-unique:hover svg {
    transform: translateX(6px);
}

/* Enhanced Responsive Design */

/* Large Desktop */
@media (max-width: 1600px) {
    .family-grid-unique {
        max-width: 1400px;
        gap: 30px;
    }
}

@media (max-width: 1400px) {
    .family-grid-unique {
        max-width: 1250px;
        gap: 28px;
        padding: 0 35px;
    }
    
    .family-club-unique {
        height: 490px;
    }
    
    .club-logo-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .club-logo-unique {
        width: 100px;
        height: 100px;
    }
    
    .club-name-unique {
        font-size: 1.5rem;
    }
}

/* Desktop / Tablet Landscape */
@media (max-width: 1200px) {
    .family-grid-unique {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        padding: 0 30px;
    }
    
    .football-family-section {
        padding: 50px 0 55px;
    }
    
    .family-club-unique {
        height: 470px;
    }
    
    .club-logo-wrapper {
        width: 135px;
        height: 135px;
    }
    
    .club-logo-unique {
        width: 95px;
        height: 95px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .family-grid-unique {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
    
    .family-club-unique {
        height: 440px;
    }
    
    .football-family-section {
        padding: 45px 0 45px;
    }
    
    .family-header-unique {
        padding: 0 20px 45px;
    }
    
    .family-title-unique {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    
    .club-content-unique {
        padding: 35px 20px;
        gap: 18px;
    }
    
    .club-logo-wrapper {
        width: 125px;
        height: 125px;
    }
    
    .club-logo-unique {
        width: 88px;
        height: 88px;
    }
    
    .club-name-unique {
        font-size: 1.35rem;
        min-height: 40px;
    }
    
    .club-button-unique {
        padding: 10px 24px;
        font-size: 0.85rem;
        min-height: 42px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .family-grid-unique {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
    }
    
    .family-club-unique {
        height: 420px;
    }
    
    .football-family-section {
        padding: 40px 0 40px;
    }
    
    .family-header-unique {
        padding: 0 16px 40px;
    }
    
    .header-badge {
        padding: 8px 18px;
        font-size: 0.75rem;
    }
    
    .family-title-unique {
        font-size: clamp(1.5rem, 6vw, 2rem);
        letter-spacing: 1.5px;
        white-space: normal;
    }
    
    .club-logo-wrapper {
        width: 115px;
        height: 115px;
    }
    
    .club-logo-unique {
        width: 80px;
        height: 80px;
    }
    
    .club-content-unique {
        padding: 30px 18px;
        gap: 16px;
    }
    
    .club-name-unique {
        font-size: 1.25rem;
        min-height: 38px;
    }
    
    .club-country-unique {
        padding: 8px 16px;
        min-height: 38px;
    }
    
    .country-name {
        font-size: 0.9rem;
    }
    
    .club-button-unique {
        padding: 9px 20px;
        font-size: 0.8rem;
        min-height: 40px;
    }
}

/* Small Mobile */
@media (max-width: 375px) {
    .family-club-unique {
        height: 400px;
    }
    
    .family-header-unique {
        padding: 0 15px 35px;
    }
    
    .club-content-unique {
        padding: 25px 15px;
        gap: 14px;
    }
    
    .club-logo-wrapper {
        width: 105px;
        height: 105px;
    }
    
    .club-logo-unique {
        width: 75px;
        height: 75px;
    }
    
    .club-name-unique {
        font-size: 1.15rem;
    }
    
    .family-title-unique {
        letter-spacing: 1px;
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }
}
