/**
 * Psychic News Homepage Styles
 * 
 * Consolidated styles for the homepage components:
 * - Parallax Hero Section
 * - Latest Issue Card
 * - Video + CTA Section
 * - Subscription CTA Section
 * - Scroll Reveal Animations
 * 
 * @package PN_Admin_Panel
 * @version 1.0.0
 */

/* ==========================================================================
   SMOOTH SCROLLING
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* Improve scrolling performance */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   1. PARALLAX HERO SECTION
   ========================================================================== */

.parallax-hero-section {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: #FFFFF3;
}

.parallax-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 999px;
    margin: 0 auto;
    padding: 2rem;
}

.parallax-hero-text {
    max-width: 600px;
    position: relative;
    z-index: 15;
    /* Glassmorphism background for readability */
    background: rgba(255, 255, 243, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.parallax-hero-eyebrow {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #392510;
    opacity: 0.9;
    font-weight: 500;
}

.parallax-hero-title {
    font-size: clamp(32px, 5vw, 50px);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #392510;
}

.parallax-hero-description {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #392510;
    opacity: 0.95;
}

.parallax-hero-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--df-primary, #ff9800);
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.parallax-hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.5);
    background-color: var(--df-primary-dark, #ff6f00);
    color: #000000;
}

/* Hero Image Layers */
.hero-layers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-layer {
    position: absolute;
    will-change: transform;
    pointer-events: none;
    transition: transform 0.05s linear;
}

.layer-flowers {
    left: 0%;
    top: 20%;
    width: 32vw;
    max-width: 480px;
    z-index: 3;
    opacity: 0.25;
}

.layer-coffee-wrapper {
    left: 35%;
    bottom: 10%;
    width: 20vw;
    max-width: 300px;
    z-index: 5;
}

.layer-coffee-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    animation: spinCoffee 22s linear infinite;
    transform-origin: 50% 50%;
}

.layer-magazine {
    right: 0%;
    bottom: 10%;
    width: 70vw;
    max-width: 900px;
    z-index: 2;
}

.hero-layer img {
    width: 100%;
    height: auto;
    display: block;
}

/* Reserve intrinsic size for hero images to reduce CLS when dimensions are missing. */
.pn-hero-flowers {
    aspect-ratio: 1350 / 1384;
}

.pn-hero-coffee {
    aspect-ratio: 1 / 1;
}

.pn-hero-magazine {
    aspect-ratio: 1345 / 1220;
}

@keyframes spinCoffee {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero - Large Desktop / External Monitors (1400px – 1919px) */
@media (min-width: 1400px) and (max-width: 1919px) {
    .parallax-hero-content {
        max-width: 1100px;
    }

    .layer-flowers {
        width: 28vw;
        max-width: 440px;
    }

    .layer-coffee-wrapper {
        width: 18vw;
        max-width: 260px;
        left: 32%;
    }

    .layer-magazine {
        width: 60vw;
        max-width: 850px;
    }
}

/* Hero - iMac 24" / 4K (1920px – 2559px) */
@media (min-width: 1920px) {
    .parallax-hero-content {
        max-width: 1200px;
    }

    .layer-flowers {
        width: 22vw;
        max-width: 480px;
        left: 3%;
    }

    .layer-coffee-wrapper {
        width: 15vw;
        max-width: 280px;
        left: 30%;
    }

    .layer-magazine {
        width: 48vw;
        max-width: 1000px;
        right: 2%;
    }
}

/* Hero - iMac 27" / 5K+ (2560px+) */
@media (min-width: 2560px) {
    .parallax-hero-content {
        max-width: 1400px;
    }

    .layer-flowers {
        width: 18vw;
        max-width: 520px;
        left: 5%;
    }

    .layer-coffee-wrapper {
        width: 12vw;
        max-width: 300px;
        left: 28%;
    }

    .layer-magazine {
        width: 40vw;
        max-width: 1100px;
        right: 4%;
    }
}

/* Hero - Tablet (769px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .layer-flowers {
        width: 24vw;
        max-width: 220px;
        left: -2%;
        top: 15%;
        opacity: 0.18;
    }

    .layer-coffee-wrapper {
        width: 14vw;
        max-width: 140px;
        left: 25%;
        bottom: 12%;
    }

    .layer-magazine {
        width: 52vw;
        max-width: 500px;
        right: -2%;
        bottom: 8%;
        opacity: 0.75;
    }
}

/* Hero - Small Desktop (1025px – 1399px) */
@media (min-width: 1025px) and (max-width: 1399px) {
    .layer-flowers {
        width: 26vw;
        max-width: 340px;
        opacity: 0.22;
    }

    .layer-coffee-wrapper {
        width: 16vw;
        max-width: 200px;
        left: 30%;
    }

    .layer-magazine {
        width: 60vw;
        max-width: 700px;
        right: 0%;
    }
}

/* Hero - Mobile Responsive */
@media (max-width: 768px) {
    .parallax-hero-section {
        min-height: 100vh;
        min-height: 100svh;
        padding: 4rem 0;
    }
    
    .parallax-hero-text {
        max-width: 100%;
        text-align: center;
    }
    
    .layer-flowers {
        width: 45vw;
        left: -20%;
        top: 0%;
        opacity: 0.18;
    }
    
    .layer-coffee-wrapper {
        width: 35vw;
        left: 10%;
        bottom: 15%;
    }
    
    .layer-magazine {
        width: 95vw;
        right: -5%;
        bottom: 5%;
        opacity: 0.5;
        min-width: 320px;
        max-width: 500px;
    }
    
    .parallax-hero-button {
        width: 100%;
        text-align: center;
    }
}

/* Hero - Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-layer {
        transition: none;
    }
    .layer-coffee-wrapper img {
        animation: none;
    }
}


/* ==========================================================================
   2. LATEST ISSUE CARD SECTION
   ========================================================================== */

.pn-home-latest-issue,
.pn-home-latest-issue * {
    box-sizing: border-box;
}

.pn-home-latest-issue {
    width: 80vw;
    margin: 0 auto;
    padding: 32px 0;
    background: transparent;
}

.pn-home-latest-issue__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Latest Issue - Desktop */
@media (min-width: 900px) {
    .pn-home-latest-issue__inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.25rem;
    }

    .pn-home-latest-issue__image {
        flex: 0 0 34%;
        width: auto;
        position: sticky;
        top: 20px;
        align-self: flex-start;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
    }

    .pn-home-latest-issue__image img {
        max-height: none;
    }

    .pn-home-latest-issue__card {
        flex: 0 0 66%;
    }
}

/* Latest Issue - Image card */
.pn-home-latest-issue__image {
    margin: 0;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #000;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pn-home-latest-issue__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    background: #000;
    aspect-ratio: 850 / 1202;
    margin: 0 auto;
}

/* Latest Issue - Text card */
.pn-home-latest-issue__card {
    background: radial-gradient(circle at top left, #232323 0%, #111111 40%, #050505 100%);
    border-radius: 1rem;
    padding: 1.75rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pn-home-latest-issue__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
    color: #fff;
}

.pn-home-latest-issue__subtitle {
    font-size: 1rem;
    opacity: 0.92;
    margin: 0 0 1.15rem 0;
    line-height: 1.85;
    color: #fff;
}

/* Latest Issue - Highlights */
.pn-home-latest-issue__highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    font-size: 0.95rem;
    opacity: 0.95;
    color: #fff;
}

.pn-home-latest-issue__highlights li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.6rem;
    margin: 0.15rem 0;
    line-height: 1.7;
    border-radius: 12px;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.pn-home-latest-issue__highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.18);
}

@media (hover: hover) {
    .pn-home-latest-issue__highlights li:hover {
        background: rgba(255, 255, 255, 0.06);
        transform: translateX(2px);
    }
}

/* Latest Issue - Buttons */
.pn-home-latest-issue__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pn-home-latest-issue__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.pn-home-latest-issue__btn--primary {
    background: #ff9800;
    color: #050505;
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
}

.pn-home-latest-issue__btn--primary:hover {
    background: #ffa726;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(255, 152, 0, 0.55);
}

/* Latest Issue - Card hover effects */
@media (hover: hover) {
    .pn-home-latest-issue__image:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 52px rgba(0, 0, 0, 0.65);
    }
    .pn-home-latest-issue__card:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 52px rgba(0, 0, 0, 0.45);
    }
}

/* Latest Issue - Mobile */
@media (max-width: 480px) {
    .pn-home-latest-issue {
        width: 92vw;
        padding: 28px 0;
    }
    .pn-home-latest-issue__card {
        padding: 1.4rem 1.2rem;
    }
    .pn-home-latest-issue__image img {
        max-height: 460px;
    }
    .pn-home-latest-issue__buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .pn-home-latest-issue__btn {
        width: 100%;
    }
}


/* ==========================================================================
   3. VIDEO + CTA SECTION
   ========================================================================== */

.pn-home-video-cta {
    max-width: 80%;
    padding: 3rem 1.5rem;
    background: #050505;
    color: #ffffff;
}

.pn-home-video-cta__inner {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Video CTA - Desktop layout */
@media (min-width: 768px) {
    .pn-home-video-cta__inner {
        flex-direction: row;
        align-items: stretch;
        gap: 3rem;
    }
    
    .pn-home-video-cta__video,
    .pn-home-video-cta__cta {
        flex: 1;
    }
}

.pn-home-video-cta__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pn-home-video-cta__subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Video CTA - Responsive video 16:9 */
.pn-home-video-cta__video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #000;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.pn-home-video-cta__video-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    object-fit: cover;
}

/* Video CTA - CTA column */
.pn-home-video-cta__cta {
    background: radial-gradient(circle at top left, #232323 0%, #111111 40%, #050505 100%);
    border-radius: 1rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pn-home-video-cta__cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pn-home-video-cta__cta-text {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

.pn-home-video-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.pn-home-video-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.pn-home-video-cta__btn--primary {
    background: #ff9800;
    color: #050505;
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
}

.pn-home-video-cta__btn--primary:hover {
    background: #ffa726;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(255, 152, 0, 0.55);
}

.pn-home-video-cta__btn--outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.pn-home-video-cta__btn--outline:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.pn-home-video-cta__highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.pn-home-video-cta__highlights li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
}

.pn-home-video-cta__highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff9800;
}

/* Video CTA - Mobile */
@media (max-width: 480px) {
    .pn-home-video-cta {
        padding: 2.5rem 1.1rem;
    }
    .pn-home-video-cta__title {
        font-size: 1.25rem;
    }
    .pn-home-video-cta__cta {
        padding: 1.5rem 1.25rem;
    }
    .pn-home-video-cta__buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .pn-home-video-cta__btn {
        width: 100%;
    }
}


/* ==========================================================================
   4. SUBSCRIPTION CTA SECTION
   ========================================================================== */

.pn-subscribe-cta,
.pn-subscribe-cta * {
    box-sizing: border-box;
}

.pn-subscribe-cta {
    width: 100%;
    margin: 0;
    padding: 80px 0;
    background: #050505;
    color: #ffffff;
    border-radius: 0;
}

.pn-subscribe-cta__inner {
    width: min(80vw, 1100px);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.pn-subscribe-cta__icon {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.pn-subscribe-cta__title {
    margin: 32px 0 24px 0;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.pn-subscribe-cta__subtitle {
    margin: 0 auto 40px auto;
    max-width: 860px;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.85;
    color: #ffffff;
}

.pn-subscribe-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 16px 0 48px 0;
}

.pn-subscribe-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.pn-subscribe-cta__btn--primary {
    background: #ff9800;
    color: #050505;
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.4);
}

.pn-subscribe-cta__btn--primary:hover {
    background: #ffa726;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(255, 152, 0, 0.55);
}

.pn-subscribe-cta__btn--primary:active {
    transform: translateY(0);
}

/* Subscription CTA - Features grid */
.pn-subscribe-cta__features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
}

@media (min-width: 900px) {
    .pn-subscribe-cta__features {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

.pn-subscribe-cta__feature {
    background: radial-gradient(circle at top left, #232323 0%, #111111 40%, #050505 100%);
    border-radius: 1rem;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.pn-subscribe-cta__feature-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.pn-subscribe-cta__feature-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.85;
    color: #ffffff;
}

/* Subscription CTA - Mobile */
@media (max-width: 480px) {
    .pn-subscribe-cta {
        padding: 64px 0;
    }
    .pn-subscribe-cta__inner {
        width: min(92vw, 1100px);
        padding: 0 14px;
    }
    .pn-subscribe-cta__subtitle {
        font-size: 16px;
    }
    .pn-subscribe-cta__buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .pn-subscribe-cta__btn {
        width: 100%;
        padding-left: 22px;
        padding-right: 22px;
    }
}


/* ==========================================================================
   5. SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.pn-reveal {
    opacity: 0;
    transform: translateY(14px);
}

.pn-reveal.pn-reveal--in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.pn-reveal-item {
    opacity: 0;
    transform: translateY(14px);
}

.pn-reveal--in .pn-reveal-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Staggered delays for reveal items */
.pn-reveal--in .pn-reveal-item:nth-child(1) { transition-delay: 0.05s; }
.pn-reveal--in .pn-reveal-item:nth-child(2) { transition-delay: 0.12s; }
.pn-reveal--in .pn-reveal-item:nth-child(3) { transition-delay: 0.19s; }
.pn-reveal--in .pn-reveal-item:nth-child(4) { transition-delay: 0.26s; }
.pn-reveal--in .pn-reveal-item:nth-child(5) { transition-delay: 0.33s; }
.pn-reveal--in .pn-reveal-item:nth-child(6) { transition-delay: 0.40s; }

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pn-reveal,
    .pn-reveal-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
