/**
 * Teams Category Page Styles
 * Premium 2025 Design with Gazprom Branding
 */

/* =================================
   RESET & BASE
   ================================= */

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

/* =================================
   TEAMS HERO SECTION
   ================================= */

.teams-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 30px 80px;
    margin-top: -100px;
    background: linear-gradient(
        180deg,
        #000A15 0%,
        #001428 25%,
        #001B35 50%,
        #001428 75%,
        #000A15 100%
    );
}

.teams-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 119, 204, 0.15) 0%,
        transparent 60%
    );
}

.hero-gradient {
    display: none;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(0, 174, 239, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 191, 255, 0.06) 0%, transparent 50%);
    opacity: 0.7;
}

@keyframes heroPattern {
    0% { 
        opacity: 0.8; 
        transform: scale(1) rotate(0deg); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1.08) rotate(2deg); 
    }
}

.teams-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
    animation: heroFadeIn 1s ease-out;
}

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

.hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 26px;
    background: rgba(0, 15, 40, 0.75);
    border: 1px solid rgba(0, 191, 255, 0.25);
    border-radius: 60px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #AEE4FF;
    margin-bottom: 35px;
    backdrop-filter: blur(10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-breadcrumb:hover {
    background: rgba(0, 25, 55, 0.9);
    border-color: rgba(0, 191, 255, 0.5);
    box-shadow: 0 6px 25px rgba(0, 191, 255, 0.25);
    transform: translateY(-2px);
}

.hero-breadcrumb a {
    color: #00BFFF;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.hero-breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00E0FF;
    transition: width 0.3s ease;
}

.hero-breadcrumb a:hover::after {
    width: 100%;
}

.hero-breadcrumb a:hover {
    color: #00E0FF;
}

.hero-breadcrumb svg {
    stroke: #00BFFF;
    stroke-width: 2.5;
    flex-shrink: 0;
    opacity: 0.7;
}

.teams-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 4.5rem;
    font-weight: 900;
    color: #FFFFFF;
    margin: 0 0 25px;
    letter-spacing: -1.5px;
    line-height: 1.05;
    text-shadow: 
        0 4px 30px rgba(0, 191, 255, 0.5),
        0 0 60px rgba(0, 174, 239, 0.3);
    animation: titlePulse 4s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { 
        text-shadow: 
            0 4px 30px rgba(0, 191, 255, 0.5),
            0 0 60px rgba(0, 174, 239, 0.3);
    }
    50% { 
        text-shadow: 
            0 6px 45px rgba(0, 191, 255, 0.7),
            0 0 80px rgba(0, 174, 239, 0.5);
    }
}

.title-icon {
    stroke: #00BFFF;
    stroke-width: 2;
    filter: drop-shadow(0 4px 25px rgba(0, 191, 255, 0.6));
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 4px 25px rgba(0, 191, 255, 0.6));
    }
    50% { 
        transform: translateY(-10px) scale(1.05);
        filter: drop-shadow(0 8px 35px rgba(0, 191, 255, 0.8));
    }
}

.teams-subtitle {
    font-size: 1.35rem;
    font-weight: 400;
    color: #BFDFFF;
    margin: 0 0 45px;
    line-height: 1.65;
    opacity: 0.92;
    letter-spacing: 0.3px;
}

.teams-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-top: 45px;
    padding: 35px 45px;
    background: rgba(0, 15, 40, 0.7);
    border: 1px solid rgba(0, 191, 255, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: #00BFFF;
    text-shadow: 
        0 3px 20px rgba(0, 191, 255, 0.6),
        0 0 40px rgba(0, 224, 255, 0.4);
    animation: statPulse 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.12);
}

@keyframes statPulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.06);
        filter: brightness(1.15);
    }
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #AEE4FF;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.9;
}

.stat-divider {
    width: 2px;
    height: 70px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 191, 255, 0.5),
        transparent
    );
    position: relative;
}

.stat-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #00BFFF;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.8);
}

/* =================================
   TEAMS GRID SECTION
   ================================= */

.teams-grid-section {
    padding: 50px 30px 90px;
    background: linear-gradient(180deg, #000912 0%, #001833 50%, #000912 100%);
    position: relative;
    overflow: hidden;
}

.teams-grid-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(0, 174, 239, 0.06) 0%, transparent 55%),
        radial-gradient(circle at 70% 60%, rgba(0, 119, 204, 0.06) 0%, transparent 55%);
    pointer-events: none;
    animation: sectionPattern 30s ease-in-out infinite alternate;
}

@keyframes sectionPattern {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* =================================
   TEAMS GRID
   ================================= */

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* =================================
   TEAM CARDS
   ================================= */

.team-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(0, 15, 40, 0.65);
    border: 1px solid rgba(0, 191, 255, 0.25);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 174, 239, 0.05) 0%,
        transparent 50%,
        rgba(0, 119, 204, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 1;
    pointer-events: none;
}

.team-card:hover::before {
    opacity: 1;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 191, 255, 0.6);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 70px rgba(0, 191, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.team-card-inner {
    position: relative;
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.team-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.team-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.45);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-card-bg img {
    filter: blur(1px) brightness(0.6);
    transform: scale(1.08);
}

.team-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 10, 30, 0.25) 0%,
        rgba(0, 15, 40, 0.8) 40%,
        rgba(0, 20, 50, 0.95) 100%
    );
    z-index: 1;
}

.team-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 35px;
    justify-content: space-between;
}

.team-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 130px;
    height: 130px;
    margin: 0 auto 30px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 50%;
    border: 3px solid rgba(0, 191, 255, 0.35);
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.35),
        0 0 0 8px rgba(0, 191, 255, 0.1);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-logo-container {
    transform: scale(1.15);
    border-color: #00BFFF;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.45),
        0 0 50px rgba(0, 191, 255, 0.5),
        0 0 0 8px rgba(0, 191, 255, 0.2);
}

.team-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.team-name {
    font-size: 1.85rem;
    font-weight: 800;
    color: #FFFFFF;
    text-align: center;
    margin: 0 0 25px;
    line-height: 1.25;
    text-shadow: 
        0 2px 15px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 191, 255, 0.3);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.team-card:hover .team-name {
    color: #00E0FF;
}

.team-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
    flex-grow: 1;
}

.team-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    color: #BFDFFF;
    padding: 12px 18px;
    background: rgba(0, 20, 50, 0.6);
    border-radius: 12px;
    border-left: 3px solid rgba(0, 191, 255, 0.35);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.team-card:hover .team-meta-item {
    background: rgba(0, 25, 60, 0.75);
    border-left-color: #00BFFF;
    transform: translateX(5px);
}

.team-meta-item svg {
    stroke: #00BFFF;
    stroke-width: 2.5;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 10px rgba(0, 191, 255, 0.4));
}

.team-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.25) 0%, rgba(0, 119, 204, 0.25) 100%);
    border: 2px solid rgba(0, 191, 255, 0.45);
    border-radius: 14px;
    color: #00E0FF;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.team-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.35), rgba(0, 119, 204, 0.35));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.team-cta:hover::before {
    opacity: 1;
}

.team-cta:hover {
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.35) 0%, rgba(0, 119, 204, 0.35) 100%);
    border-color: #00BFFF;
    color: #FFFFFF;
    box-shadow: 
        0 10px 30px rgba(0, 191, 255, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.team-cta svg {
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-cta:hover svg {
    transform: translateX(6px);
}

/* =================================
   NO TEAMS MESSAGE
   ================================= */

.no-teams-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 90px 30px;
    text-align: center;
}

.no-teams-message svg {
    stroke: #00BFFF;
    stroke-width: 2;
    margin-bottom: 30px;
    opacity: 0.75;
    filter: drop-shadow(0 4px 25px rgba(0, 191, 255, 0.4));
    animation: iconFloat 4s ease-in-out infinite;
}

.no-teams-message h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 18px;
    text-shadow: 0 2px 20px rgba(0, 191, 255, 0.3);
}

.no-teams-message p {
    font-size: 1.15rem;
    color: #BFDFFF;
    margin: 0 0 35px;
    opacity: 0.9;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 38px;
    background: linear-gradient(135deg, #00AEEF 0%, #0077CC 100%);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 14px;
    border: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 174, 239, 0.35);
}

.btn-home:hover {
    background: linear-gradient(135deg, #00C8FF 0%, #0088DD 100%);
    box-shadow: 0 15px 40px rgba(0, 191, 255, 0.55);
    transform: translateY(-3px);
}

/* =================================
   PAGINATION
   ================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 70px;
    padding: 35px;
    background: rgba(0, 15, 40, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(0, 20, 50, 0.7);
    border: 1px solid rgba(0, 191, 255, 0.35);
    border-radius: 12px;
    color: #00BFFF;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination a:hover {
    background: rgba(0, 174, 239, 0.25);
    border-color: #00BFFF;
    color: #FFFFFF;
    box-shadow: 0 6px 25px rgba(0, 191, 255, 0.35);
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.35), rgba(0, 119, 204, 0.35));
    border-color: #00BFFF;
    color: #FFFFFF;
    box-shadow: 0 6px 25px rgba(0, 191, 255, 0.45);
}

.pagination svg {
    stroke: currentColor;
    stroke-width: 2.5;
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */

@media (max-width: 1024px) {
    .teams-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
        max-width: 1100px;
    }
}

@media (max-width: 768px) {
    .teams-hero {
        min-height: 420px;
        padding: 100px 20px 70px;
    }
    
    .teams-title {
        font-size: 2.8rem;
        flex-direction: column;
        gap: 18px;
    }
    
    .title-icon {
        width: 40px;
        height: 40px;
    }
    
    .teams-subtitle {
        font-size: 1.15rem;
    }
    
    .teams-grid-section {
        padding: 40px 20px 70px;
    }
    
    .teams-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .team-card-inner {
        min-height: 480px;
    }
    
    .team-logo-container {
        width: 110px;
        height: 110px;
    }
    
    .team-name {
        font-size: 1.65rem;
    }
}

@media (max-width: 480px) {
    .teams-title {
        font-size: 2.2rem;
    }
    
    .stat-number {
        font-size: 2.3rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 12px;
        padding: 25px 20px;
    }
    
    .team-card-content {
        padding: 28px 25px;
    }
}
