/* ════════════════════════════════════════════════════════
   HOME.CSS — Only new section styles (everything else in style.css)
   ════════════════════════════════════════════════════════ */

#homeContent {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

/* ── Personalized For You — Feature Cards Grid ─────── */
.hp-feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 0 5vw;
}

.pf-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    height: 360px;
    background-size: cover;
    background-position: center;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid rgba(255,255,255,0.08);
}
.pf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.pf-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 20px;
}

.pf-card-bg-icon {
    position: absolute;
    top: -20px;
    right: -30px;
    font-size: 14rem;
    color: rgba(255, 255, 255, 0.04);
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 1;
}

/* Premium Mesh Gradients */
.pf-card.pf-mesh-1 {
    background: radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 0% 100%, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 1) 100%);
    background-color: #0f172a;
}
.pf-card.pf-mesh-2 {
    background: radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.3) 0%, transparent 40%),
                radial-gradient(circle at 100% 100%, rgba(9, 9, 11, 1) 0%, rgba(9, 9, 11, 1) 100%);
    background-color: #09090b;
}
.pf-card.pf-mesh-3 {
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.2) 0%, transparent 60%),
                linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
    background-color: #1e1b4b;
}
.pf-card.pf-mesh-4 {
    background: radial-gradient(circle at 100% 100%, rgba(244, 63, 94, 0.3) 0%, transparent 40%),
                radial-gradient(circle at 0% 0%, rgba(67, 20, 7, 1) 0%, rgba(67, 20, 7, 1) 100%);
    background-color: #431407;
}

.pf-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 40%);
    pointer-events: none;
}

.pf-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    z-index: 2;
}

.pf-card-text {
    z-index: 2;
}

.pf-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.pf-card-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

/* ── Empty Circle State ────────────────────────────── */
.circle-recs-empty {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 14px;
}
.circle-recs-empty .empty-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(124,77,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.circle-recs-empty i {
    font-size: 1.4rem;
    color: var(--accent-purple);
}
.circle-recs-empty h4 {
    font-size: 1rem;
    color: white;
    font-weight: 700;
    margin-bottom: 6px;
}
.circle-recs-empty p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
    max-width: 240px;
    line-height: 1.5;
}
.btn-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-purple);
    color: white;
    padding: 9px 20px;
    border-radius: 22px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.btn-empty-cta:hover {
    background: #9068ff;
    transform: translateY(-2px);
    color: white;
}

/* ── Genre Spotlight Cards (in movie-carousel) ─────── */
.gs-card {
    flex: 0 0 calc(33.333% - 12px);
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    height: 200px;
    transition: transform 0.25s;
    scroll-snap-align: start;
}
.gs-card:hover { transform: translateY(-4px); }
.gs-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}
.gs-card:hover .gs-card-bg { transform: scale(1.06); }
.gs-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10,10,11,0.9) 0%, rgba(10,10,11,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
}
.gs-card-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 6px;
}
.gs-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
    .hp-feature-row { grid-template-columns: repeat(2, 1fr); }
    .gs-card { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 640px) {
    .hp-feature-row { 
        grid-template-columns: 1fr;
        overflow-x: auto;
        display: flex;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }
    .hp-feature-row .pf-card {
        min-width: 85vw;
        scroll-snap-align: center;
    }
    .gs-card { flex: 0 0 85%; height: 160px; }
}

/* ── Hero Social Circle Elements ─────────────────────── */
.hero-social-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-pill-label {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-friend-avatars {
    display: flex;
    align-items: center;
}

.hero-friend-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #000;
    margin-left: -10px;
    object-fit: cover;
}

.hero-friend-avatar:first-child {
    margin-left: 0;
}

.hero-friend-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #000;
    background: #333;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -10px;
}

.hero-friend-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title-large {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-desc-large {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 32px;
}

.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-hero-large.btn-primary {
    background: var(--accent-purple);
    color: white;
}

.btn-hero-large.btn-primary:hover {
    background: #9068ff;
    transform: scale(1.02);
}

.btn-hero-large.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-hero-large.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-hero-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}

.btn-hero-circle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ── Social Pulse Elements ─────────────────────────────── */
.social-pulse-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 5vw;
    margin-bottom: 40px;
}

.pulse-card {
    background: #0f0f13;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pulse-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.pulse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pulse-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pulse-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent; /* Optional: add border color based on action */
}

.pulse-user-text h4 {
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.pulse-user-text p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pulse-more-icon {
    color: #a78bfa;
    font-size: 1.2rem;
}

/* Review layout (Middle card in SS) */
.pulse-review-content {
    background: #18181c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex: 1;
}

.pulse-review-poster {
    width: 80px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.pulse-review-details {
    display: flex;
    flex-direction: column;
}

.pulse-review-title {
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pulse-review-stars {
    color: #f5c518;
    font-size: 0.75rem;
    margin-bottom: 8px;
    display: flex;
    gap: 2px;
}
.pulse-review-stars .fa-star:not(.active) {
    color: rgba(255, 255, 255, 0.2);
}

.pulse-review-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-style: italic;
}

/* Watch layout (Side cards in SS) */
.pulse-watch-content {
    display: flex;
    gap: 12px;
    flex: 1;
}

.pulse-watch-poster {
    flex: 1;
    aspect-ratio: 2/3;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.05);
}

.pulse-watch-more {
    flex: 1;
    aspect-ratio: 2/3;
    border-radius: 8px;
    background: #18181c;
    border: 1px dashed rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .social-pulse-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .social-pulse-grid {
        grid-template-columns: 1fr;
    }
    .social-pulse-grid {
        overflow-x: auto;
        display: flex;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }
    .pulse-card {
        min-width: 85vw;
        scroll-snap-align: center;
    }
}

/* ── Genre Spotlight ─────────────────────────────── */
.genre-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.genre-wide-card {
    background: #18181c;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.genre-wide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.genre-wide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.genre-wide-card:hover .genre-wide-img {
    opacity: 0.8;
}

.genre-wide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.genre-wide-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.genre-wide-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
}

@media (max-width: 1024px) {
    .genre-spotlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .genre-spotlight-grid {
        grid-template-columns: 1fr;
    }
    .genre-spotlight-grid {
        overflow-x: auto;
        display: flex;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
    }
    .genre-wide-card {
        min-width: 85vw;
        scroll-snap-align: center;
    }
}
