/**
 * CyaStream - Channels List Page Styles
 * Premium, modern design for the complete channels listing
 */

/* ===== Page Hero Enhancement ===== */
.channels-hero {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0d2d4d 100%);
    padding-bottom: 3rem;
}

.channels-hero .page-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.channels-hero .page-hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* ===== Quick Stats ===== */
.channels-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.channels-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.channels-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00d4aa;
    margin-bottom: 0.25rem;
}

.channels-stats .stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Highlighted Stat (VOD) */
.channels-stats .stat-item.highlight {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(139, 92, 246, 0.2));
    border-color: rgba(168, 85, 247, 0.4);
}

.channels-stats .stat-item.highlight .stat-number {
    color: #e879f9;
    font-size: 1.6rem;
}

/* Light Title Style */
.light-title {
    font-weight: 400 !important;
    letter-spacing: 1px;
    color: white !important;
}

.light-title i {
    margin-right: 0.5rem;
    color: #00d4aa;
}

/* ===== Category Navigation ===== */
.category-nav-section {
    background: #f8f9fa;
    padding: 1.5rem 0;
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.category-tab i {
    font-size: 1rem;
}

.category-tab:hover {
    border-color: #00d4aa;
    color: #00d4aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.2);
}

.category-tab.active {
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
}

/* ===== Category Sections ===== */
.channels-category-section {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

.channels-category-section:nth-child(even) {
    background: #f8f9fa;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title i {
    font-size: 2rem;
    color: #00d4aa;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(0, 184, 148, 0.15));
    padding: 0.75rem;
    border-radius: 12px;
}

.category-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.category-count {
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== Brand Channels Grid ===== */
.brand-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.brand-channel-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #00d4aa;
}

.brand-channel-card.premium {
    background: linear-gradient(135deg, #fefefe 0%, #f8f4ff 100%);
    border-color: #d4a5ff;
}

.brand-channel-card.premium:hover {
    border-color: #a855f7;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.brand-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    flex-shrink: 0;
}

.brand-logo span {
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
    text-align: center;
}

/* Brand Logo Color Variants */
.brand-logo.sky {
    background: linear-gradient(135deg, #0078d4, #005a9e);
}

.brand-logo.bein {
    background: linear-gradient(135deg, #ff6b00, #e85d00);
}

.brand-logo.fox {
    background: linear-gradient(135deg, #003087, #001f5c);
}

.brand-logo.bt {
    background: linear-gradient(135deg, #5514b4, #3d0d85);
}

.brand-logo.dazn {
    background: linear-gradient(135deg, #1a1a1a, #333);
}

.brand-logo.nbc {
    background: linear-gradient(135deg, #ff9900, #ff6600);
}

.brand-logo.cbs {
    background: linear-gradient(135deg, #0066cc, #004d99);
}

.brand-logo.hbo {
    background: linear-gradient(135deg, #000000, #1a1a1a);
}

.brand-logo.showtime {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.brand-logo.starz {
    background: linear-gradient(135deg, #ffd700, #ffb300);
}

.brand-logo.cinemax {
    background: linear-gradient(135deg, #1e90ff, #0066cc);
}

.brand-logo.sky-cinema {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.brand-logo.canal {
    background: linear-gradient(135deg, #000, #333);
}

.brand-logo.mgm {
    background: linear-gradient(135deg, #d4a400, #a07d00);
}

.brand-logo.paramount {
    background: linear-gradient(135deg, #0066ff, #0044cc);
}

.brand-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.25rem 0;
}

.brand-info p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* ===== Subsection Titles ===== */
.subsection-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
}

.subsection-title i {
    color: #a855f7;
    font-size: 1.1rem;
}

.channels-showcase {
    margin-bottom: 2.5rem;
}

.channels-showcase:last-child {
    margin-bottom: 0;
}

/* ===== Sports Categories ===== */
.sports-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.sport-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 16px;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.sport-category:hover {
    border-color: #00d4aa;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 212, 170, 0.15);
}

.sport-category i {
    font-size: 2rem;
    color: #00d4aa;
    margin-bottom: 0.75rem;
}

.sport-category span {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.sport-category small {
    font-size: 0.75rem;
    color: #888;
}

/* ===== Country Cards ===== */
.country-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.country-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: all 0.3s ease;
}

.country-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.country-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.country-header:hover {
    background: #f8f9fa;
}

.country-flag {
    font-size: 2.5rem;
    margin-right: 1rem;
}

.country-info {
    flex: 1;
}

.country-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.25rem 0;
}

.channel-count {
    font-size: 0.85rem;
    color: #00d4aa;
    font-weight: 600;
}

.expand-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: #00d4aa;
    color: white;
}

.expand-btn i {
    transition: transform 0.3s ease;
}

.country-card.expanded .expand-btn i {
    transform: rotate(180deg);
}

.country-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
    background: #fafafa;
}

.country-card.expanded .country-content {
    max-height: 500px;
    padding: 1.5rem;
}

.brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand-tag {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.brand-tag:hover {
    background: #00d4aa;
    color: white;
    border-color: #00d4aa;
}

/* ===== More Countries Card ===== */
.more-countries-card {
    background: linear-gradient(135deg, #1a1a2e, #2d2d4e);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.more-countries-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.more-flags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.more-flags span {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.more-flags span:hover {
    background: rgba(0, 212, 170, 0.3);
    border-color: #00d4aa;
}

/* ===== Movies Section ===== */
.movies-section {
    background: linear-gradient(135deg, #f8f4ff 0%, #ffffff 100%);
}

.movies-section .category-title i {
    color: #a855f7;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(139, 92, 246, 0.15));
}

.movies-section .category-count {
    background: linear-gradient(135deg, #a855f7, #8b5cf6);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .channels-hero .page-hero-content h1 {
        font-size: 2rem;
    }

    .channels-stats {
        gap: 1rem;
    }

    .channels-stats .stat-item {
        padding: 0.75rem 1rem;
    }

    .channels-stats .stat-number {
        font-size: 1.25rem;
    }

    .category-nav-section {
        top: 70px;
    }

    .category-tabs {
        gap: 0.5rem;
    }

    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .brand-channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .channels-hero .page-hero-content h1 {
        font-size: 1.65rem;
    }

    .channels-hero .page-hero-content p {
        font-size: 0.95rem;
    }

    .channels-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .channels-stats .stat-item {
        flex: 1 1 45%;
        min-width: 100px;
    }

    .category-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .category-title {
        flex-direction: column;
        gap: 0.5rem;
    }

    .category-title h2 {
        font-size: 1.4rem;
    }

    .brand-channels-grid {
        grid-template-columns: 1fr;
    }

    .sports-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .country-flag {
        font-size: 2rem;
    }

    .country-info h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .channels-hero .page-hero-content h1 {
        font-size: 1.4rem;
    }

    .category-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .category-tab i {
        font-size: 0.85rem;
    }

    .sports-categories {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .sport-category {
        padding: 1rem 0.5rem;
    }

    .sport-category i {
        font-size: 1.5rem;
    }

    .sport-category span {
        font-size: 0.8rem;
    }

    .country-header {
        padding: 1rem;
    }

    .country-flag {
        font-size: 1.75rem;
        margin-right: 0.75rem;
    }

    .brand-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .more-countries-card {
        padding: 1.5rem 1rem;
    }

    .more-countries-card h3 {
        font-size: 1.25rem;
    }

    .more-flags span {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ===== Performance Stats Section ===== */
.performance-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.performance-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-badge i {
    font-size: 0.9rem;
}

.performance-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.performance-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.performance-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.performance-stat-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: all 0.4s ease;
    overflow: hidden;
}

.performance-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #00d4aa;
}

.performance-stat-card.highlight {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    border-color: transparent;
}

.performance-stat-card.highlight .stat-icon {
    background: linear-gradient(135deg, #00d4aa, #00b894);
}

.performance-stat-card.highlight .stat-icon i {
    color: white;
}

.performance-stat-card.highlight .stat-value,
.performance-stat-card.highlight .stat-title {
    color: white;
}

.performance-stat-card.highlight .stat-title {
    opacity: 0.8;
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.1), rgba(0, 184, 148, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.75rem;
    color: #00d4aa;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.stat-title {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00d4aa, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.performance-stat-card:hover .stat-glow {
    opacity: 1;
}

/* ===== World Coverage Section ===== */
.world-coverage-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
}

.coverage-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.coverage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.coverage-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.country-counter {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.counter-number {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4aa, #00b894);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.counter-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: #666;
}

.coverage-description {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.coverage-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.coverage-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.coverage-feature i {
    color: #00d4aa;
    font-size: 1.1rem;
}

/* World Map */
.coverage-map {
    position: relative;
}

.world-map-container {
    width: 100%;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e5e5;
}

.world-map-svg {
    width: 100%;
    height: auto;
}

/* Map Pin Animations */
.map-pin {
    animation: pinBounce 2s ease-in-out infinite;
}

.pin-pulse {
    animation: pinPulse 2s ease-in-out infinite;
}

@keyframes pinBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes pinPulse {

    0%,
    100% {
        opacity: 0.6;
        r: 8;
    }

    50% {
        opacity: 0.3;
        r: 15;
    }
}

/* Responsive styles for Performance & Coverage */
@media (max-width: 1024px) {
    .performance-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .coverage-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .coverage-text {
        text-align: center;
    }

    .country-counter {
        justify-content: center;
    }

    .coverage-features {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .performance-section {
        padding: 3rem 0;
    }

    .performance-header h2 {
        font-size: 1.75rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
    }

    .stat-icon i {
        font-size: 1.5rem;
    }

    .coverage-text h2 {
        font-size: 1.75rem;
    }

    .counter-number {
        font-size: 3.5rem;
    }

    .counter-label {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .performance-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .performance-stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-title {
        font-size: 0.75rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-icon i {
        font-size: 1.25rem;
    }

    .counter-number {
        font-size: 2.5rem;
    }

    .world-map-container {
        padding: 1rem;
    }
}