/* ═══════════════════════════════════════════════════════
   GLOBAL CINEMATIC ANIMATION SYSTEM — All Pages
   ═══════════════════════════════════════════════════════ */

/* ── Universal Scroll Reveal ── */
.cin-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.cin-reveal.cin-visible {
    opacity: 1;
    transform: translateY(0);
}
.cin-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.cin-reveal-left.cin-visible {
    opacity: 1;
    transform: translateX(0);
}
.cin-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.cin-reveal-right.cin-visible {
    opacity: 1;
    transform: translateX(0);
}
.cin-reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.cin-reveal-scale.cin-visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.cin-stagger-1 { transition-delay: 0.1s; }
.cin-stagger-2 { transition-delay: 0.2s; }
.cin-stagger-3 { transition-delay: 0.3s; }
.cin-stagger-4 { transition-delay: 0.4s; }
.cin-stagger-5 { transition-delay: 0.5s; }
.cin-stagger-6 { transition-delay: 0.6s; }
.cin-stagger-7 { transition-delay: 0.7s; }
.cin-stagger-8 { transition-delay: 0.8s; }

/* ── Page-Level Golden Glow Background ── */
.page-golden-glow {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(184,135,46,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Golden Section Dividers (all pages) ── */
.cin-divider {
    width: 100%;
    height: 1px;
    background: radial-gradient(ellipse at center, rgba(212,136,42,0.3) 0%, transparent 70%);
    border: none;
    margin: 0;
}

/* ── Page Hero Cinematic ── */
.page-hero {
    position: relative;
    overflow: hidden;
}
.page-hero h1 {
    opacity: 0;
    transform: translateY(30px);
    animation: cin-hero-title 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
.page-hero p,
.page-hero .subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: cin-hero-subtitle 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
@keyframes cin-hero-title {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes cin-hero-subtitle {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Universal Card Hover (subtle lift, NO glow/border) ── */
.cin-card-hover {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
}
.cin-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ══════════════════════════════════════
   PRICING PAGE — Cinematic Enhancements
   ══════════════════════════════════════ */

/* Pricing card entrance */
.pricing-card {
    opacity: 0;
    transform: translateY(30px);
}
.pricing-card.cin-visible {
    opacity: 1;
    transform: translateY(0);
}
.pricing-card.cin-visible:hover {
    transform: translateY(-4px);
}

/* Pricing toggle animation */
.pricing-toggle {
    position: relative;
}
.pricing-toggle .toggle-slider {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ══════════════════════════════════════
   AUTH PAGES — Login/Signup Enhancements
   ══════════════════════════════════════ */

/* Auth card animated golden border sweep */
.auth-card {
    position: relative;
    overflow: hidden;
}
.auth-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, #B8972E, #D4882A, transparent);
    animation: cin-auth-border-sweep 3s ease-in-out infinite;
}
@keyframes cin-auth-border-sweep {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

/* Auth card entrance */
.auth-card {
    animation: cin-auth-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
@keyframes cin-auth-entrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Form input golden focus glow */
.auth-card input:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #B8972E !important;
    box-shadow: 0 0 0 3px rgba(184,135,46,0.15), 0 0 20px rgba(184,135,46,0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ══════════════════════════════════════
   AUTH PAGES — Split-Screen Layout
   ══════════════════════════════════════ */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    align-items: stretch;
    padding: 0;
}

/* Left panel — form */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-xl);
    background: var(--bg-primary);
}

/* Right panel — visual content */
.auth-visual-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    background: var(--bg-card);
    min-height: 100vh;
    overflow: hidden;
}

/* Headline on visual panel */
.auth-visual-headline {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-ivory);
    text-align: center;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}
.auth-visual-sub {
    font-size: var(--text-base);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-2xl);
    line-height: 1.6;
}

/* Image in visual panel */
.auth-visual-img {
    width: 90%;
    max-width: 560px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(184,135,46,0.08);
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* Subtle golden glow behind image */
.auth-visual-panel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(184,135,46,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.auth-visual-headline,
.auth-visual-sub,
.auth-visual-img {
    position: relative;
    z-index: 1;
}

/* Override card styles in split layout */
.auth-split .auth-card {
    max-width: 400px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    animation: none;
    opacity: 1;
    transform: none;
}
.auth-split .auth-sun-bg {
    display: none;
}
.auth-split .auth-card::after {
    display: none;
}

/* Balanced spacing inside split auth */
.auth-split .auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}
.auth-split .auth-header .logo {
    margin-bottom: var(--space-sm);
}
.auth-split .auth-header h1 {
    font-size: var(--text-2xl);
    margin-bottom: 2px;
}
.auth-split .auth-header p {
    font-size: var(--text-xs);
}
.auth-split .form-group {
    margin-bottom: var(--space-lg);
}
.auth-split .form-input {
    padding: 0.85rem var(--space-md);
    font-size: var(--text-sm);
}
.auth-split .form-label {
    margin-bottom: 4px;
}
.auth-split .form-divider {
    margin: var(--space-lg) 0;
}
.auth-split .auth-footer {
    margin-top: var(--space-lg);
}
.auth-split .auth-trust {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
}
.auth-split .auth-trust p {
    font-size: 11px;
    margin-bottom: 2px;
}
.auth-split .forgot-password {
    margin-top: 4px;
    margin-bottom: 0;
    font-size: var(--text-xs);
}
.auth-split .btn-block {
    padding: 0.85rem;
}
.auth-split .btn-google {
    padding: 0.8rem;
    font-size: var(--text-sm);
}

/* Stagger entrance for form elements */
.auth-split .auth-header {
    animation: cin-auth-entrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.auth-split .btn-google {
    animation: cin-auth-entrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.auth-split .form-divider {
    animation: cin-auth-entrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}
.auth-split .form-group:nth-child(1) {
    animation: cin-auth-entrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.auth-split .form-group:nth-child(2) {
    animation: cin-auth-entrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.auth-split .form-group:nth-child(3) {
    animation: cin-auth-entrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}
.auth-split .btn-block {
    animation: cin-auth-entrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.auth-split .auth-footer,
.auth-split .auth-trust {
    animation: cin-auth-entrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* Visual panel entrance */
.auth-visual-headline {
    animation: cin-auth-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.auth-visual-sub {
    animation: cin-auth-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.auth-visual-img {
    animation: cin-auth-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* Enhanced form inputs in split layout */
.auth-split .form-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(245,240,232,0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.auth-split .form-input:focus {
    background: rgba(255,255,255,0.05);
}
.auth-split .form-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Responsive — split auth */
@media (max-width: 768px) {
    .auth-split {
        grid-template-columns: 1fr;
    }
    .auth-visual-panel {
        order: -1;
        padding: var(--space-2xl) var(--space-xl);
    }
    .auth-visual-headline {
        font-size: var(--text-xl);
    }
    .auth-visual-img {
        width: 100%;
    }
    .auth-form-panel {
        padding: var(--space-xl) var(--space-lg);
    }
    .auth-split .auth-card {
        padding: var(--space-xl) 0;
    }
}

/* Reduced motion — split auth */
@media (prefers-reduced-motion: reduce) {
    .auth-split .auth-header,
    .auth-split .btn-google,
    .auth-split .form-divider,
    .auth-split .form-group,
    .auth-split .btn-block,
    .auth-split .auth-footer,
    .auth-split .auth-trust,
    .auth-visual-headline,
    .auth-visual-sub,
    .auth-visual-img {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* ══════════════════════════════════════
   EXAMPLES PAGE — Enhancements
   ══════════════════════════════════════ */

/* Example card play overlay */
.example-card {
    position: relative;
    overflow: hidden;
}
.example-card .card-visual,
.example-card .example-card-video {
    position: relative;
    overflow: hidden;
}
.example-card .card-visual::after,
.example-card .example-card-video::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 60px; height: 60px;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(184,135,46,0.9);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px;
    z-index: 2;
}
.example-card:hover .card-visual::after,
.example-card:hover .example-card-video::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.example-card .card-visual img,
.example-card .example-card-video img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.example-card:hover .card-visual img,
.example-card:hover .example-card-video img {
    transform: scale(1.08);
}

/* ══════════════════════════════════════
   BLOG PAGE — Enhancements
   ══════════════════════════════════════ */

/* Blog card image hover zoom */
.blog-card {
    overflow: hidden;
}
.blog-card img,
.blog-card .blog-card-image {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover img,
.blog-card:hover .blog-card-image {
    transform: scale(1.06);
}

/* Blog card golden date accent */
.blog-card .blog-date,
.blog-card .date {
    color: #B8972E;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ══════════════════════════════════════
   RESOURCES PAGE — Enhancements
   ══════════════════════════════════════ */

/* Resource card golden accent line on hover */
.resource-card {
    position: relative;
    overflow: hidden;
}
.resource-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 0;
    background: linear-gradient(180deg, #B8972E, #D4882A);
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.resource-card:hover::before {
    height: 100%;
}

/* ══════════════════════════════════════
   COMMUNITY PAGE — Enhancements
   ══════════════════════════════════════ */

/* Channel card transitions */
.channel-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
}
.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* Testimonial card golden quote accent */
.testimonial-card {
    position: relative;
    overflow: hidden;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: -10px; left: 16px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: rgba(184,135,46,0.15);
    line-height: 1;
    pointer-events: none;
}

/* ══════════════════════════════════════

/* ══════════════════════════════════════
   SECTION TITLE — Golden Underline
   ══════════════════════════════════════ */
.cin-section-title {
    position: relative;
    display: inline-block;
}
.cin-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #B8972E, #D4882A, #B8972E, transparent);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.cin-section-title.cin-visible::after {
    width: 80px;
}

/* ══════════════════════════════════════
   FLOATING SUN ORBS — ambient background
   ══════════════════════════════════════ */
.cin-sun-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,135,46,0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: cin-orb-drift 12s ease-in-out infinite alternate;
}
.cin-sun-orb-1 {
    width: 300px; height: 300px;
    top: 10%; right: -80px;
    animation-duration: 14s;
}
.cin-sun-orb-2 {
    width: 200px; height: 200px;
    bottom: 20%; left: -60px;
    animation-duration: 10s;
    animation-delay: -4s;
}
@keyframes cin-orb-drift {
    from { transform: translate(0, 0); }
    to { transform: translate(20px, -30px); }
}

/* ══════════════════════════════════════
   RESPONSIVE — Global Cinematic
   ══════════════════════════════════════ */
@media (max-width: 768px) {
    .page-golden-glow {
        width: 400px;
        height: 400px;
    }
    .cin-sun-orb-1 { width: 150px; height: 150px; }
    .cin-sun-orb-2 { width: 100px; height: 100px; }
    .cin-section-title.cin-visible::after { width: 50px; }
}

/* ══════════════════════════════════════
   REDUCED MOTION — Global Cinematic
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .cin-reveal,
    .cin-reveal-left,
    .cin-reveal-right,
    .cin-reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .cin-sun-orb { animation: none; }
    .page-hero h1,
    .page-hero p,
    .page-hero .subtitle { animation: none; opacity: 1; transform: none; }
    .auth-card::after { animation: none; }
    .pricing-card { opacity: 1; transform: none; transition: none; }
}
