/*
Theme Name: Little Legends
Theme URI: https://littlelegendsplaygym.com
Author: Little Legends Team
Author URI: https://littlelegendsplaygym.com
Description: A vibrant, playful theme for Little Legends Indoor Play Gym featuring purple, teal, and yellow colors to match the PlayDazium equipment.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: little-legends
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   CSS CUSTOM PROPERTIES (Color Palette)
   Updated to match PlayDazium Equipment
======================================== */
:root {
    /* Primary Colors - Purple/Magenta (main tubes & panels) */
    --color-purple: #9C27B0;
    --color-purple-light: #BA68C8;
    --color-purple-dark: #7B1FA2;
    --color-magenta: #E91E63;
    
    /* Secondary Colors - Teal (slides & accents) */
    --color-teal: #00BCD4;
    --color-teal-light: #4DD0E1;
    --color-teal-dark: #0097A7;
    
    /* Accent Colors - Yellow (sphere pods & highlights) */
    --color-yellow: #FFC107;
    --color-yellow-light: #FFEB3B;
    --color-yellow-dark: #FFA000;
    
    /* Bounce Mascot Color - Orange (for contrast) */
    --color-orange: #F97316;
    --color-orange-light: #FB923C;
    --color-orange-dark: #EA580C;
    
    /* Equipment Colors */
    --color-silver: #9E9E9E;
    --color-charcoal: #212121;
    
    /* Neutrals */
    --color-neutral-50: #F8FAFC;
    --color-neutral-100: #F1F5F9;
    --color-neutral-200: #E2E8F0;
    --color-neutral-300: #CBD5E1;
    --color-neutral-400: #94A3B8;
    --color-neutral-500: #64748B;
    --color-neutral-600: #475569;
    --color-neutral-700: #334155;
    --color-neutral-800: #1E293B;
    --color-neutral-900: #0F172A;
    
    /* Semantic Colors */
    --color-success: #22C55E;
    --color-error: #EF4444;
    --color-warning: var(--color-yellow);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 2.5rem;
    --radius-3xl: 3rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ========================================
   BASE STYLES
======================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--color-neutral-50);
    color: var(--color-neutral-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6,
.font-headline {
    font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

/* ========================================
   GLASS PANEL EFFECT
======================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ========================================
   BENTO CARD HOVER EFFECT
======================================== */
.bento-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   REVEAL ON SCROLL ANIMATION
======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animation delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ========================================
   BLOB ANIMATION
======================================== */
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* ========================================
   GRADIENT TEXT
======================================== */
.gradient-text {
    background: linear-gradient(135deg, var(--color-purple), var(--color-teal), var(--color-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   BUTTON STYLES
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange), #ef4444);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-orange-dark), #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn-secondary {
    background: var(--color-purple);
    color: white;
    box-shadow: 0 4px 14px rgba(156, 39, 176, 0.3);
}

.btn-secondary:hover {
    background: var(--color-purple-dark);
    transform: translateY(-2px);
}

.btn-teal {
    background: var(--color-teal);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 188, 212, 0.3);
}

.btn-teal:hover {
    background: var(--color-teal-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-neutral-200);
    color: var(--color-neutral-800);
}

.btn-outline:hover {
    background: var(--color-neutral-100);
    border-color: var(--color-neutral-300);
}

/* ========================================
   FORM STYLES
======================================== */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

/* ========================================
   CARD STYLES
======================================== */
.card {
    background: white;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-neutral-100);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-xl);
}

.card-featured {
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   PROGRESS BAR / THERMOMETER
======================================== */
.fundraising-progress {
    background: var(--color-neutral-700);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.fundraising-progress-fill {
    background: linear-gradient(90deg, var(--color-orange), var(--color-yellow), var(--color-teal));
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease-out;
    position: relative;
}

.fundraising-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

/* ========================================
   NAVIGATION STYLES
======================================== */
.nav-link {
    color: var(--color-neutral-600);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-purple);
}

/* ========================================
   WORDPRESS SPECIFIC OVERRIDES
======================================== */
.wp-block-image img {
    border-radius: var(--radius-xl);
}

.entry-content a {
    color: var(--color-purple);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--color-purple-dark);
}

/* ========================================
   RESPONSIVE UTILITIES
======================================== */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ========================================
   MOBILE FIXES - Prevent Horizontal Scroll
======================================== */

/* Global overflow control */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure all containers respect viewport */
*, *::before, *::after {
    max-width: 100%;
}

/* Fix for images */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for iframes (GHL forms) */
iframe {
    max-width: 100%;
}

/* Mobile-specific text sizing */
@media (max-width: 640px) {
    /* Smaller H1 on very small screens */
    h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
    
    /* Smaller H2 */
    h2 {
        font-size: 1.75rem !important;
    }
    
    /* Reduce padding on sections */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Fix coupon code overflow */
    code {
        font-size: 1rem !important;
        word-break: break-all;
    }
    
    /* Ensure buttons don't overflow */
    a[class*="rounded-full"],
    button[class*="rounded-full"] {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
    
    /* Fix email links that might be too long */
    a[href^="mailto:"] {
        word-break: break-all;
    }
    
    /* Reduce rounded corners on mobile for better fit */
    .rounded-\[2\.5rem\],
    .rounded-\[2rem\],
    .rounded-\[3rem\] {
        border-radius: 1.5rem;
    }
    
    /* Fix fundraising section margins */
    .mx-4 {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
}

/* Tablet fixes */
@media (max-width: 768px) {
    /* Ensure grid items stack properly */
    .grid {
        gap: 1rem;
    }
    
    /* Fix bento card heights on tablet/mobile */
    .auto-rows-\[250px\] {
        grid-auto-rows: auto;
    }
    
    /* Reduce large paddings */
    .p-12 {
        padding: 2rem;
    }
    
    .p-10 {
        padding: 1.5rem;
    }
    
    /* Navigation fixes */
    nav .h-24 {
        height: 5rem;
    }
    
    nav img {
        height: 3.5rem;
    }
}

/* Fix for background blobs causing overflow */
.fixed.inset-0.-z-10 {
    overflow: hidden;
}

.fixed.inset-0.-z-10 > div {
    max-width: 100vw;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Ensure touch targets are large enough */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* But not for inline text links */
    p a, li a, span a {
        min-height: auto;
        min-width: auto;
    }
}
