/* ============================================
   CHOSEN CLARITY MAIN STYLESHEET
   ============================================
   
   COLOR SCHEME (Heavenly Sun-Inspired):
   - Primary Purple: #696cff (buttons, header)
   - Light Purple: #8b8fff (accents)
   - Orange Accent: #ff9933, #ff8800 (borders, highlights)
   - Background: White with subtle purple/cream gradients
   
   STRUCTURE:
   1. Global Reset & Base Styles
   2. Header & Navigation
   3. Main Content Areas
   4. Footer
   5. Responsive Design (Mobile: 768px breakpoint)
   
   IMPORTANT NOTES:
   - All gradients use 135deg diagonal direction for consistency
   - Purple gradient header is sticky (stays at top when scrolling)
   - Max content width: 1200px for readability
   - Responsive breakpoint at 768px for mobile devices
   
   PINEGROW TIPS:
   - To change colors: Search for hex codes (#696cff, #ff9933, etc.)
   - To adjust spacing: Look for padding/margin values (1rem = 16px)
   - To modify layout: Find display: flex sections
   ============================================ */
/* ============================================
   1. GLOBAL RESET & BASE STYLES
   ============================================ */
/* Reset browser default margins/padding for consistency across browsers */
* {
    margin: 0px;
    padding: 2px;
    box-sizing: border-box;

    /* Makes width/height include padding and border */
}

/* Base body styles - applies to entire page */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, #f5f5f9 0%, #eef0ff 50%, #f5f5f9 100%);
    min-height: 100vh;
}

/* Page wrapper for consistent styling */
.page-wrapper {
    background: linear-gradient(180deg, #f5f5f9 0%, #eef0ff 50%, #f5f5f9 100%);
    min-height: 100vh;
}

/* ============================================
   2. HEADER & NAVIGATION
   ============================================ */
/* Main header bar - purple gradient with shadow */
header {
    background: linear-gradient(135deg, #696cff 0%, #5f63f2 50%, #696cff 100%);
    box-shadow: 0 2px 10px rgba(105, 108, 255, 0.3);

    /* Purple shadow for depth */
    position: sticky;

    /* Stays at top when scrolling */
    top: 0;
    z-index: 1000;

    /* Ensures header stays above all other content */
    min-height: 70px;

    /* Consistent header height */
}

/* Container for logo and navigation - creates horizontal layout */
.header-content {
    max-width: 1400px;

    /* Prevents content from being too wide on large screens */
    margin: 0px auto;

    /* Centers the content */
    padding: 0.75rem 2rem;

    /* Consistent padding */
    display: flex;

    /* Horizontal layout */
    justify-content: space-between;

    /* Logo on left, nav on right */
    align-items: center;

    /* Vertically centers items */
    flex-wrap: nowrap;

    /* Prevents wrapping on desktop */
    min-height: 70px;
    gap: 2rem;

    /* Space between logo and nav */
}

/* Logo styling - clickable link with icon */
.logo {
    font-size: 1.5rem;

    /* Slightly smaller for better fit */
    font-weight: bold;
    color: #fff;

    /* White text */
    text-decoration: none;

    /* Removes underline from link */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);

    /* Subtle shadow for depth */
    display: flex;

    /* Allows icon + text horizontal layout */
    align-items: center;
    gap: 0.5rem;

    /* Space between icon and text */
    flex-shrink: 0;

    /* Prevents logo from shrinking on small screens */
    white-space: nowrap;

    /* Prevents logo text from wrapping */
}

/* Logo text styling */
.logo span {
    padding: 0;
    margin: 0;
    line-height: 1;

    /* Prevents extra spacing above/below text */
    vertical-align: middle;
    display: inline-block;
}

/* Logo image (circular icon with glow effect) */
.logo-image {
    width: 45px !important;

    /* Smaller logo for better header fit */
    height: 45px !important;
    border-radius: 50% !important;

    /* Makes image circular (50% = perfect circle) */
    object-fit: cover !important;

    /* Crops image to fit circle without distortion */
    border: 2px solid rgba(255, 255, 255, 0.3) !important;

    /* White semi-transparent border */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(105, 108, 255, 0.2) !important;

    /* Subtle glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Smooth animation on hover */
    display: block;
    flex-shrink: 0;
}

/* Logo hover effect - grows and glows more */
.logo:hover .logo-image {
    transform: scale(1.08) translateZ(0);

    /* Grows 8% larger */
    box-shadow: 0 0 20px rgb(255, 255, 255), 0 0 40px rgba(105, 108, 255, 0.5);

    /* Stronger glow */
    filter: brightness(1.1) contrast(1.05);

    /* Slightly brighter and more vivid */
}

/* ============================================
   NAVIGATION MENU
   ============================================
   
   Structure: <nav><ul><li><a>Link</a></li></ul></nav>
   
   IMPORTANT: 
   - Menu items wrap on small screens (flex-wrap: wrap)
   - Gap between items: 0.75rem (12px)
   - Each link has padding for easier clicking
   ============================================ */
/* Navigation list container */
nav ul {
    list-style: none;

    /* Removes bullet points */
    display: flex;

    /* Horizontal layout */
    gap: 0.5rem;

    /* Tighter spacing between nav items */
    flex-wrap: nowrap;

    /* Prevents wrapping - keeps all items on one line */
    margin: 0;
    padding: 0;
    align-items: center;

    /* Vertically centers all nav items */
}

/* Base styling for all navigation links */
nav a {
    color: #fff;

    /* White text */
    text-decoration: none;

    /* No underline */
    font-weight: 500;

    /* Medium thickness */
    transition: all 0.2s ease;

    /* Smooth animation on hover */
    padding: 0.4rem 0.6rem;

    /* Compact padding */
    border-radius: 5px;

    /* Slightly rounded corners */
    font-size: 0.85rem;

    /* Slightly smaller for better fit */
    white-space: nowrap;

    /* Prevents text from wrapping to multiple lines */
    display: inline-block;
}

/* Hover effect - semi-transparent white background */
nav a:hover {
    background: rgba(255, 255, 255, 0.2);

    /* 20% white overlay */
}

/* Active page indicator - slightly more opaque background */
nav a.active {
    background: rgba(255, 255, 255, 0.25);

    /* 25% white overlay */
    font-weight: 600;

    /* Slightly bolder text */
}

/* ============================================
   AUTHENTICATION BUTTONS (Login/Sign Up)
   ============================================
   
   CLASSES:
   - .btn-login: Transparent white border button
   - .btn-signup: Purple gradient button with glow
   - .btn-dashboard: Semi-transparent purple (shown when logged in)
   
   USAGE: <a href="login.html" class="btn-login">Login</a>
   ============================================ */
/* Login button - outlined style */
nav a.btn-login {
    background: rgba(255, 255, 255, 0.15);

    /* Semi-transparent white background */
    border: 2px solid rgba(255, 255, 255, 0.5);

    /* White border */
    padding: 0.4rem 1rem;

    /* Compact padding for button appearance */
    font-weight: 600;
    margin-left: 0.25rem;
}

    /* Bold text */
    margin-left: 0.5rem;

    /* Space from previous nav item */
}

/* Login button hover - brighter white background */
nav a.btn-login:hover {
    background: rgba(255, 255, 255, 0.25);

    /* More opaque on hover */
    border-color: rgba(255, 255, 255, 0.8);

    /* Brighter border */
}

/* Sign Up button - primary call-to-action with gradient */
nav a.btn-signup {
    background: linear-gradient(135deg, #696cff 0%, #8b8fff 100%);

    /* Purple to lighter purple gradient */
    color: #fff;
    padding: 0.4rem 1rem;

    /* Compact padding */
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(105, 108, 255, 0.3);

    /* Subtle purple glow effect */
    border: none;

    /* No border (unlike Login button) */
}

/* Sign Up button hover - darker gradient and stronger glow */
nav a.btn-signup:hover {
    background: linear-gradient(135deg, #5f62ff 0%, #7a7dff 100%);

    /* Slightly darker purple gradient */
    box-shadow: 0 6px 20px rgba(105, 108, 255, 0.6);

    /* Stronger, taller shadow */
}

/* ============================================
   DASHBOARD BUTTON
   ============================================
   
   VISIBILITY:
   - Hidden by default (display: none)
   - Shown by Cloudflare Access when user is authenticated
   - Replaces Login/Sign Up buttons when visible
   
   IMPORTANT: Do not remove "display: none" - this is controlled
   by authentication system
   ============================================ */
/* Dashboard button - semi-transparent purple */
nav a.btn-dashboard {
    background: rgba(139, 143, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(139, 143, 255, 0.6);
    padding: 0.4rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 6px;
}

/* Dashboard button parent li - hidden by default, shown via JS when authenticated */
nav ul li:has(.btn-dashboard) {
    display: none;
}

/* Dashboard button hover - more opaque */
nav a.btn-dashboard:hover {
    background: rgba(139, 143, 255, 0.35);

    /* Increases opacity to 35% */
    border-color: rgba(139, 143, 255, 1);

    /* Fully opaque border (no transparency) */
}

/* ============================================
   MAIN CONTENT AREA
   ============================================
   
   The <main> tag contains all page content below the header.
   
   MAX-WIDTH EXPLAINED:
   - max-width: 1200px = content never gets wider than 1200px
   - margin: 0 auto = centers the content horizontally
   - Why? Makes text easier to read on large screens
   
   IN PINEGROW:
   - Adjust max-width to make content wider/narrower
   - Safe range: 900px - 1400px
   ============================================ */
/* Main Content */
main {
    max-width: 1200px;

    /* Maximum width for content (prevents super-wide text lines) */
    margin: 0px auto;

    /* 0 = no top/bottom margin, auto = center horizontally */
    padding: 2.5rem 2rem;
}

.hero {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #696cff 0%, #5f63f2 50%, #7c7fff 100%);
    border-radius: 0 0 24px 24px;
    margin-bottom: 2.5rem;
    box-shadow: 
        0 8px 32px rgba(105, 108, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* Shimmer animation for hero */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: heroShimmer 8s linear infinite;
    pointer-events: none;
}

@keyframes heroShimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

h1 {
    font-size: 2.25rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(255, 255, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2);
    border: none;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

h2 {
    font-size: 1.75rem;
    color: #696cff;
    margin-bottom: 1.25rem;
    margin-top: 1.5rem;
    line-height: 1.3;
}

/* Subtitle - smaller text below main title */
.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   CONTENT SECTION (White content cards)
   ============================================
   
   WHAT IS IT:
   White rectangular boxes that contain main page content.
   The purple left border is a design accent.
   
   RGBA EXPLAINED:
   - rgba(255, 255, 255, 0.8) = white with 80% opacity
   - This makes the gradient background slightly visible through it
   
   IN PINEGROW:
   - Copy this class to create new content sections
   - Adjust padding to change internal spacing
   - Modify border-left color/width for different accent
   ============================================ */
.content-section {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    box-shadow: 
        0 4px 16px rgba(105, 108, 255, 0.08),
        0 0 40px rgba(105, 108, 255, 0.03);
    border: 1px solid rgba(105, 108, 255, 0.1);
    border-left: 4px solid #696cff;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
}

.content-section:hover {
    box-shadow: 
        0 8px 24px rgba(105, 108, 255, 0.12),
        0 0 60px rgba(105, 108, 255, 0.05);
    transform: translateY(-2px);
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   DAILY INSPIRATION SECTION (AI-generated quotes)
   ============================================
   
   FLEXBOX GRID EXPLAINED:
   - display: flex = enables flexible layout
   - justify-content: center = centers items horizontally
   - gap: 2rem = 32px space between grid items
   
   This creates a responsive grid of inspiration cards.
   ============================================ */
/* Daily Inspiration Section */
.daily-inspiration {
    margin: 2.5rem 0;
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Inspiration section heading */
.daily-inspiration h2 {
    color: #696cff;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

/* Grid container for inspiration cards */
.inspiration-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ============================================
   INSPIRATION CARD (Individual quote card)
   ============================================ */
.inspiration-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 
        0 4px 16px rgba(105, 108, 255, 0.08),
        0 0 40px rgba(105, 108, 255, 0.03);
    border: 1px solid rgba(105, 108, 255, 0.1);
    border-top: 4px solid #696cff;
    transition: all 0.3s ease;
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

/* Hover effect - card lifts up */
.inspiration-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 24px rgba(105, 108, 255, 0.15),
        0 0 60px rgba(105, 108, 255, 0.05);
}

/* Card icon at top (emoji or symbol) */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(105, 108, 255, 0.2));
}

/* Card title (e.g., "Daily Verse") */
.inspiration-card h3 {
    color: #696cff;

    /* Purple brand color */
    margin-bottom: 1.5rem;

    /* 24px space below */
    font-size: 1.5rem;

    /* 24px */
}

/* ============================================
   INSPIRATION CONTENT CONTAINER
   ============================================
   
   FLEXBOX CENTERING:
   - display: flex = enables flexible layout
   - align-items: center = centers vertically
   - justify-content: center = centers horizontally
   - min-height: ensures space even if content is short
   
   This creates a centered content area for the quote text.
   ============================================ */
.inspiration-content {
    min-height: 120px;

    /* Minimum height to keep cards consistent */
    display: flex;

    /* Enables flexible layout */
    align-items: center;

    /* Centers content vertically */
    justify-content: center;

    /* Centers content horizontally */
    margin-bottom: 1rem;

    /* 16px space below */
}

/* Quote text styling */
.inspiration-content p {
    font-size: 1.1rem;

    /* 17.6px */
    line-height: 1.8;

    /* 180% of font size = 31.68px line height */
    color: #333;

    /* Dark gray for readability */
    font-style: italic;

    /* Italicized for quote appearance */
    margin: 0;

    /* Removes default paragraph margin */
}

/* Loading state text (while fetching AI content) */
.loading {
    color: #999;

    /* Light gray */
    font-style: normal !important;

    /* Override italic style (!important = highest priority) */
}

/* Quote reference/author text (e.g., "John 3:16" or "- Author Name") */
.inspiration-reference,

.inspiration-author {
    color: #696cff;

    /* Purple brand color */
    font-weight: 600;

    /* Semi-bold */
    font-size: 1rem;

    /* 16px */
    margin-top: 1rem;

    /* 16px space above */
}

/* ============================================
   PARAGRAPH (Body text)
   ============================================
   
   Default styling for all paragraph text throughout the site.
   ============================================ */
p {
    margin-bottom: 1rem;

    /* 16px space below each paragraph */
    color: #444;

    /* Medium-dark gray for readability */
    font-size: 1.1rem;

    /* 17.6px - slightly larger than standard */
}

/* ============================================
   VIDEO CONTAINER (Responsive 16:9 iframe wrapper)
   ============================================
   
   RESPONSIVE ASPECT RATIO TECHNIQUE:
   - padding-bottom: 56.25% = maintains 16:9 ratio (9÷16 = 0.5625 = 56.25%)
   - position: relative = creates positioning context for iframe
   - height: 0 = parent has no height, only padding
   - iframe is position: absolute = positioned relative to parent
   - iframe 100% width/height = fills entire parent container
   
   WHY THIS WORKS:
   Padding percentage is based on parent WIDTH, not height.
   So 56.25% padding-bottom creates height that's always 56.25% of width.
   This maintains perfect 16:9 ratio at any screen size!
   
   IN PINEGROW:
   - DO NOT modify padding-bottom (breaks aspect ratio)
   - Adjust margin to change spacing around video
   - Change border-radius for more/less rounded corners
   ============================================ */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem auto;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(105, 108, 255, 0.15),
        0 0 40px rgba(105, 108, 255, 0.05);
    border: 1px solid rgba(105, 108, 255, 0.1);
    animation: fadeInUp 0.5s ease-out 0.4s both;
}

/* Iframe positioning inside container */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   CONTACT INFORMATION SECTION
   ============================================
   
   Special styling for the contact page info box.
   Uses subtle gradient background to make it stand out.
   ============================================ */
.contact-info {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    box-shadow: 
        0 4px 16px rgba(105, 108, 255, 0.08),
        0 0 40px rgba(105, 108, 255, 0.03);
    border: 1px solid rgba(105, 108, 255, 0.1);
    border-left: 4px solid #03c3ec;
    animation: fadeInUp 0.5s ease-out 0.5s both;
}
}

/* Paragraphs within contact info */
.contact-info p {
    margin-bottom: 1rem;

    /* 16px space below each paragraph */
    font-size: 1.1rem;

    /* 17.6px */
}

/* Bold text (e.g., "Email:", "Phone:") in contact info */
.contact-info strong {
    color: #696cff;

    /* Purple brand color for labels */
}

/* ============================================
   FOOTER (Bottom of every page)
   ============================================ */
footer {
    background: linear-gradient(135deg, #696cff 0%, #5f63f2 50%, #7c7fff 100%);
    color: #fff;
    padding: 2.5rem 0;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(105, 108, 255, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #696cff 0%, #03c3ec 50%, #71dd37 100%);
}

/* Footer content wrapper (centers content) */
.footer-content {
    max-width: 1200px;

    /* Maximum width */
    margin: 0 auto;

    /* Centers horizontally */
    padding: 0 2rem;

    /* 32px left/right padding */
    text-align: center;

    /* Centers all text */
}

/* ============================================
   SOCIAL MEDIA LINKS (Footer)
   ============================================
   
   FLEXBOX LAYOUT:
   - display: flex = horizontal row layout
   - justify-content: center = centers items horizontally
   - gap: 2rem = 32px space between each link
   - flex-wrap: wrap = allows wrapping on small screens
   
   Each link is a semi-transparent button that glows on hover.
   ============================================ */
.social-links {
    display: flex;

    /* Horizontal layout */
    justify-content: center;

    /* Centers items */
    gap: 2rem;

    /* 32px space between links */
    margin: 1.5rem 0;

    /* 24px top/bottom margin */
    flex-wrap: wrap;

    /* Allows wrapping on narrow screens */
}

/* Individual social link styling */
.social-links a {
    color: #fff;

    /* White text */
    text-decoration: none;

    /* No underline */
    font-size: 1.1rem;

    /* 17.6px */
    transition: all 0.3s ease;

    /* Smooth hover animation */
    padding: 0.5rem 1rem;

    /* 8px vertical, 16px horizontal */
    background: rgba(255, 255, 255, 0.1);

    /* 10% white overlay */
    border-radius: 5px;

    /* Slightly rounded corners */
}

/* Social link hover effect - brighter and lifts up */
.social-links a:hover {
    background: rgba(255, 255, 255, 0.3);

    /* 30% white overlay (brighter) */
    transform: translateY(-3px);

    /* Moves up 3px */
}

/* Copyright text at bottom of footer */
.copyright {
    margin-top: 1.5rem;

    /* 24px space above */
    font-size: 0.9rem;

    /* 14.4px - smaller than body text */
    opacity: 0.9;

    /* 90% opacity for subtle appearance */
}

/* ============================================
   PRIVACY POLICY PAGE STYLES
   ============================================
   
   Special formatting for the legal privacy policy page.
   Adds proper spacing and styling for sections, lists, etc.
   ============================================ */
.policy-section {
    margin-bottom: 2rem;

    /* 32px space between policy sections */
}

/* Privacy policy section headings (H3) */
.policy-section h3 {
    color: #696cff;

    /* Purple brand color */
    margin-bottom: 1rem;

    /* 16px space below */
    font-size: 1.3rem;

    /* 20.8px */
}

/* Lists within policy sections */
.policy-section ul {
    margin-left: 2rem;

    /* 32px indent from left */
    margin-bottom: 1rem;

    /* 16px space below list */
}

/* Individual list items in policy */
.policy-section li {
    margin-bottom: 0.5rem;

    /* 8px space between items */
    color: #444;

    /* Medium-dark gray */
}

/* Responsive Design */
/* ============================================
   RESPONSIVE DESIGN (Mobile phones & tablets)
   ============================================
   
   MEDIA QUERY EXPLAINED:
   - @media (max-width: 768px) = applies only when screen is 768px or narrower
   - 768px is the common breakpoint for tablets/phones
   - All styles inside this block override the desktop styles above
   
   WHY MOBILE-FIRST ISN'T USED HERE:
   This site uses "desktop-first" approach: desktop styles defined first,
   then mobile overrides applied. Both approaches are valid.
   
   WHAT CHANGES FOR MOBILE:
   - Header stacks vertically (flex-direction: column)
   - Navigation wraps and centers
   - Font sizes reduce (3rem → 2rem for H1)
   - Grid layouts change to single column
   - Padding/spacing reduces to save screen space
   
   IN PINEGROW:
   - Use responsive view to see mobile layout
   - Adjust breakpoint (768px) if needed
   - Test on real devices for best results
   ============================================ */
@media (max-width: 768px) {
    /* Header changes: stack logo and nav vertically */
    .header-content {
        flex-direction: column;

        /* Stacks children vertically instead of horizontally */
        gap: 0.75rem;

        /* Space between logo and nav */
        padding: 0.75rem 1rem;
    }

    /* Smaller logo text for mobile */
    .logo {
        font-size: 1.3rem;

        /* Smaller for mobile */
    }

    /* Smaller logo image for mobile */
    .logo-image {
        width: 40px !important;

        /* Down from 45px */
        height: 40px !important;
    }

    /* Navigation: center items and allow wrapping */
    nav ul {
        flex-wrap: wrap;

        /* Allow wrapping on mobile */
        justify-content: center;

        /* Centers nav items */
        gap: 0.4rem;

        /* Tighter spacing on mobile */
    }

    /* Smaller nav links on mobile */
    nav a {
        font-size: 0.8rem;
        padding: 0.35rem 0.5rem;
    }

    /* Smaller heading sizes for mobile readability */
    h1 {
        font-size: 2rem;

        /* 32px (down from 3rem = 48px) */
    }

    h2 {
        font-size: 1.5rem;

        /* 24px (down from 2rem = 32px) */
    }

    /* Smaller subtitle for mobile */
    .subtitle {
        font-size: 1.1rem;

        /* 17.6px (down from 1.3rem = 20.8px) */
    }

    /* Inspiration grid: single column on mobile */
    .inspiration-grid {
        grid-template-columns: 1fr;

        /* 1fr = one column taking full width */
        gap: 1.5rem;

        /* 24px space between cards (down from 2rem) */
    }

    /* Less padding in cards on mobile (more content visible) */
    .inspiration-card {
        padding: 1.5rem;

        /* 24px (down from 2rem = 32px) */
    }

    /* Smaller card icon on mobile */
    .card-icon {
        font-size: 2rem;

        /* 32px (down from 2.5rem = 40px) */
    }

    /* Less padding in main content area on mobile */
    main {
        padding: 2rem 1rem;

        /* 32px top/bottom, 16px left/right (down from 3rem 2rem) */
    }

    /* Smaller gap between social links on mobile */
    .social-links {
        gap: 1rem;

        /* 16px (down from 2rem = 32px) */
    }
}

/* ============================================
   YOUTUBE PAGE STYLES
   ============================================
   
   Special styling for the YouTube integration page.
   Uses brand-compliant colors and layouts.
   YouTube page keeps its own unique hero design.
   ============================================ */
/* YouTube page hero section - overrides default hero animations but keeps background */
.youtube-hero {
    background-size: cover !important;
    background-position: center !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    animation: none !important;
}

.youtube-hero::before {
    display: none !important;
}

.youtube-hero h1 {
    color: #ffffff;
}

/* YouTube content sections - white background */
.youtube-section {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
}

/* ============================================
   VIDEO GRID (YouTube video gallery)
   ============================================
   
   CSS GRID EXPLAINED:
   - display: grid = enables grid layout
   - grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))
     - repeat = creates multiple columns
     - auto-fit = automatically fits as many columns as possible
     - minmax(300px, 1fr) = each column is minimum 300px, maximum 1fr (equal width)
   - This creates a responsive grid that adjusts column count based on screen size
   
   RESULT: On wide screens, shows 3-4 videos per row. On narrow screens, 1-2 per row.
   
   IN PINEGROW:
   - Adjust minmax first value (300px) to change minimum card width
   - Change gap for more/less space between videos
   ============================================ */
.video-grid {
    display: grid;

    /* Enables CSS grid layout */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-item {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(33, 33, 33, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(33, 33, 33, 0.15);
}

.video-item h3 {
    color: #212121;
    padding: 1rem 1rem 0.5rem;
    font-size: 1.2rem;
}

.video-item p {
    color: #666;
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
}

.youtube-cta {
    text-align: center;
    margin-top: 2rem;
}

.youtube-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #696cff;
    color: #FFFFFF;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(105, 108, 255, 0.3);
}

.youtube-button:hover {
    background: #5f63f2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(105, 108, 255, 0.4);
}

.youtube-button svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   AI Hub Page Styles (Extracted from Inline)
   ======================================== */
/* AI Hub Container */
.ai-hub-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin: 3rem 0 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #212121;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* AI Cards Grid */
.ai-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* AI Feature Card */
.ai-feature-card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.ai-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(105, 108, 255, 0.15);
}

/* Card Header */
.ai-feature-card .card-header {
    background: linear-gradient(135deg, #696cff 0%, #5f63f2 100%);
    color: #FFFFFF;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    font-size: 2rem;
    line-height: 1;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

/* Card Body */
.ai-feature-card .card-body {
    padding: 1.5rem;
}

.card-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 1rem 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.badge.new {
    background: linear-gradient(135deg, #71dd37 0%, #5fb82e 100%);
    color: #FFFFFF;
}

.badge.beta {
    background: linear-gradient(135deg, #03c3ec 0%, #02a8c9 100%);
    color: #FFFFFF;
}

.badge:not(.new):not(.beta) {
    background: #f5f5f9;
    color: #696cff;
}

/* Card Stats */
.card-stats {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f5f5f9;
    border-radius: 6px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #696cff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.card-actions .btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

/* Dropdown Quick Actions */
.dropdown-menu {
    position: relative;
}

.dropdown-toggle {
    background: #f5f5f9;
    border: 1px solid #e0e0e0;
    color: #696cff;
    font-weight: 500;
}

.dropdown-toggle:hover {
    background: #ebebf5;
}

/* Pagination */
.pagination .page-link {
    color: #696cff;
    border-color: #e0e0e0;
}

.pagination .page-item.active .page-link {
    background-color: #696cff;
    border-color: #696cff;
}

.pagination .page-link:hover {
    color: #5f63f2;
    background-color: #f5f5f9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-hub-container {
        padding: 1rem;
    }

    .ai-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .card-actions {
        flex-direction: column;
    }

    .card-actions .btn {
        width: 100%;
    }

    .card-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */

/* Staggered animation delays for multiple elements */
.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }
.content-section:nth-child(5) { animation-delay: 0.5s; }

/* Scale up animation */
@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse animation for icons */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Glow animation for highlights */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(105, 108, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(105, 108, 255, 0.5); }
}

/* Smooth entrance for main content */
main {
    animation: fadeInUp 0.4s ease-out;
}
