﻿/* ThreeGigs v25 - Intelligent Discovery Styles */
/* Consolidated Feed + Discover Mode */

/* === DISCOVERY HERO === */
.discovery-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    padding: 3rem 0 2rem 0;
    overflow: hidden;
}

.hero-background-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(138, 43, 226, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(153, 50, 204, 0.06) 0%, transparent 50%);
    animation: ambientPulse 12s ease-in-out infinite;
    transition: background 2s ease;
}

/* Time-of-day ambient glow variants */
.discovery-hero.time-morning .hero-background-effects {
    background: radial-gradient(circle at 20% 80%, rgba(255, 160, 50, 0.10) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(250, 120, 30, 0.07) 0%, transparent 50%);
}

.discovery-hero.time-evening .hero-background-effects {
    background: radial-gradient(circle at 20% 80%, rgba(210, 50, 130, 0.10) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(170, 30, 160, 0.08) 0%, transparent 50%);
}

.discovery-hero.time-night .hero-background-effects {
    background: radial-gradient(circle at 20% 80%, rgba(50, 80, 230, 0.10) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(30, 50, 200, 0.07) 0%, transparent 50%);
}

/* Subtitle crossfade */
#dynamicSubtitle {
    transition: opacity 0.4s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.greeting-dynamic {
    color: var(--tg-text-muted);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--tg-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* === HERO DASHBOARD === */
.hero-dashboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.user-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tg-primary);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--tg-text-muted);
    margin-top: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .hero-btn.primary {
        background: var(--tg-gradient-primary);
        color: white;
        box-shadow: var(--tg-shadow-purple);
    }

        .hero-btn.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(138, 43, 226, 0.4);
            text-decoration: none;
            color: white;
        }

    .hero-btn.secondary {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

        .hero-btn.secondary:hover {
            background: rgba(255, 255, 255, 0.15);
            text-decoration: none;
            color: white;
        }

/* === SEARCH SECTION === */
.search-section {
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.search-icon {
    color: var(--tg-text-muted);
    margin-right: 1rem;
    font-size: 1.125rem;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
}

    .search-input::placeholder {
        color: var(--tg-text-muted);
    }

.search-btn {
    background:transparent;
    border: var(--tg-primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .search-btn:hover {
        background: var(--tg-secondary);
        color:white;
        transform: scale(1.05);
    }

/* === SMART FILTERS === */
.smart-filters {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .filter-chip:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-1px);
    }

    .filter-chip.active {
        background: var(--tg-gradient-primary);
        border-color: var(--tg-primary);
        box-shadow: var(--tg-shadow-purple);
    }

/* === CONTENT SECTIONS === */
.discovery-content {
    padding: 2rem 0;
}

.content-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.section-icon {
    color: var(--tg-primary);
    font-size: 1.25rem;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tg-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .section-link:hover {
        color: var(--tg-primary);
        text-decoration: none;
    }

/* === CONTENT SCROLL === */
.content-scroll-container {
    position: relative;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .scroll-arrow:hover {
        background: rgba(0, 0, 0, 0.9);
        border-color: var(--tg-primary);
        color: var(--tg-primary);
    }

    .scroll-arrow.left {
        left: -20px;
    }

    .scroll-arrow.right {
        right: -20px;
    }

    .scroll-arrow.disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.content-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .content-scroll::-webkit-scrollbar {
        display: none;
    }

/* === CONTENT CARDS === */
.content-card {
    flex: 0 0 280px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .content-card:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
    }

/* === CATEGORIES GRID === */
.categories-section {
    margin: 3rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .category-card:hover {
        transform: translateY(-4px);
        border-color: var(--tg-primary);
        box-shadow: 0 10px 30px rgba(138, 43, 226, 0.2);
        text-decoration: none;
        color: white;
    }

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--tg-gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 600;
}

.category-count {
    font-size: 0.875rem;
    color: var(--tg-text-muted);
}

/* === TV BANNER === */
.tv-banner-section {
    margin: 3rem 0;
}

.tv-banner {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(153, 50, 204, 0.1) 100%);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
}

.banner-content {
    flex: 1;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.live-text {
    color: #ff4444;
    font-weight: 600;
    font-size: 0.875rem;
}

.tv-banner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.tv-banner p {
    color: var(--tg-text-muted);
    margin-bottom: 1.5rem;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--tg-gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .banner-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--tg-shadow-purple);
        text-decoration: none;
        color: white;
    }

.banner-preview {
    flex: 0 0 120px;
}

.tv-screen {
    width: 120px;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--tg-primary);
}

/* === FLOATING ACTIONS === */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
}

.fab-main {
    width: 56px;
    height: 56px;
    background: var(--tg-gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--tg-shadow-purple);
    transition: all 0.3s ease;
}

    .fab-main:hover {
        transform: scale(1.1);
    }

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

    .fab-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.fab-item {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .fab-item:hover {
        background: var(--tg-primary);
        color: white;
        text-decoration: none;
        transform: scale(1.1);
    }

/* === LOADING STATES === */
.skeleton {
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-image {
    height: 160px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-content {
    padding: 1rem;
}

.skeleton-title {
    height: 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-subtitle {
    height: 16px;
    width: 80%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.content-loading,
.content-error,
.content-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    color: var(--tg-text-muted);
    text-align: center;
    min-height: 200px;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* === ANIMATIONS === */
@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes ambientPulse {
    0%, 100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-dashboard {
        flex-direction: column;
        gap: 1.5rem;
    }

    .scroll-arrow {
        display: none;
    }

    .floating-actions {
        bottom: 90px; /* Above mobile nav */
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .user-stats {
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tv-banner {
        flex-direction: column;
        text-align: center;
    }

    .content-scroll {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .content-card {
        flex: 0 0 250px;
    }
}
/* Fix the hero section hierarchy - add to landing-base.css */

/* Hero greeting section */
.hero-greeting {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}


/* Stats section - make it breathe */
.user-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--tg-glass);
    border-radius: var(--tg-radius-xl);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    position: relative;
}

    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -2rem;
        top: 50%;
        transform: translateY(-50%);
        height: 2rem;
        width: 1px;
        background: var(--tg-border);
        opacity: 0.5;
    }

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tg-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--tg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Action buttons - clear hierarchy */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 3rem;
}

.hero-actions .btn {
    padding: 0.875rem 2rem;
    font-weight: 600;
    min-width: 200px;
    color:grey;
}

.hero-actions .btn:hover {
    color:white;
}

.hero-actions .btn--secondary {
    background: var(--tg-surface);
    border: 2px solid var(--tg-border);
}

/* Search section - grounded and clear */
.search-section {
    background: var(--tg-surface);
    border-radius: var(--tg-radius-xl);
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid var(--tg-border);
}

/* Filter Section - Clean and intuitive */
.filter-section {
    background: var(--tg-surface);
    border-top: 1px solid var(--tg-border);
    border-bottom: 1px solid var(--tg-border);
    padding: 1rem 0;
    margin: 2rem 0;
    position: sticky;
    top: var(--header-height, 64px);
    z-index: 10;
    backdrop-filter: blur(10px);
}

/* Filter pills */
.filter-pills {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem 0;
}

    .filter-pills::-webkit-scrollbar {
        display: none;
    }

.filter-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--tg-glass);
    border: 1px solid var(--tg-border);
    border-radius: var(--tg-radius-round);
    color: var(--tg-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--tg-duration-fast);
}

    .filter-pill:hover {
        background: var(--tg-glass-hover);
        border-color: var(--tg-primary);
        color: var(--tg-primary);
    }

    .filter-pill.active {
        background: var(--tg-primary);
        border-color: var(--tg-primary);
        color: var(--tg-background);
    }

    .filter-pill i {
        font-size: 0.875rem;
    }

/* Advanced filter button */
.filter-advanced {
    margin-left: auto;
    border-style: dashed;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    background: var(--tg-primary);
    color: var(--tg-background);
    border-radius: var(--tg-radius-round);
    font-size: 0.75rem;
    font-weight: 700;
}

    .filter-count:empty {
        display: none;
    }

/* Advanced filters panel */
.advanced-filters {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--tg-duration-normal);
}

    .advanced-filters.active {
        max-height: 200px;
        padding-top: 1rem;
    }

.filter-groups {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

    .filter-group label {
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--tg-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.5rem;
    }

.filter-select {
    width: 100%;
    padding: 0.5rem;
    background: var(--tg-glass);
    border: 1px solid var(--tg-border);
    border-radius: var(--tg-radius);
    color: var(--tg-text-primary);
    font-size: 0.9rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .filter-section {
        margin: 1rem -1rem;
        padding: 1rem;
    }

    .filter-pills {
        padding: 0 1rem;
    }

    .filter-groups {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }
}