/*
Theme Name: Creed8 Divi Child Theme
Theme URI: https://createwithcreed8.com/
Description: Custom child theme for Creed8 built on the Divi framework, integrating glassmorphism, glowing loops, and modern tech aesthetics.
Author: Ryan Ancona (Creed8)
Author URI: https://createwithcreed8.com/
Template: Divi
Version: 1.0.0
Text Domain: creed8-divi-child
*/

/* Import Google Fonts as a fallback if not enqueued/configured globally */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Inter:wght@300;400;600&display=swap');

/* ==========================================================================
   DESIGN TOKENS (CSS VARIABLES)
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #89d3d4;
    --color-primary-dim: #89d3d4;
    --color-primary-container: #004f50;
    --color-on-primary: #003737;
    --color-on-primary-container: #c1ffff;
    
    --color-secondary: #66d8d2;
    --color-secondary-container: #00504d;
    --color-on-secondary: #003735;
    --color-on-secondary-container: #c1ffff;
    
    --color-tertiary: #ffb3b0;
    --color-tertiary-container: #8c1520;
    
    --color-background: #101414;
    --color-surface: #101414;
    --color-surface-container: #181c1c;
    --color-surface-container-high: #222626;
    --color-surface-container-highest: #363a3a;
    --color-surface-container-low: #131717;
    --color-surface-container-lowest: #0b0f0f;
    
    --color-on-background: #fcf9f8;
    --color-on-surface: #fcf9f8;
    --color-on-surface-variant: #bec9c8;
    
    --color-alert-coral: #FF6B6B;
    --color-signal-teal: #38B2AC;
    --color-error: #ffb4ab;
    --color-outline: #899392;
    --color-outline-variant: #3f4949;

    /* Typography Defaults */
    --font-headline: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   GLASSMORPHISM & DECORATIVE CLASSES
   ========================================================================== */

/* Modern dark glass cards */
.glass-card {
    background: rgba(24, 28, 28, 0.4) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(137, 211, 212, 0.1) !important;
    border-radius: 16px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
    border-color: rgba(56, 178, 172, 0.4) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 30px -5px rgba(56, 178, 172, 0.15), 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Highlighted (primary) glass card */
.glass-card-highlight {
    background: rgba(0, 79, 80, 0.2) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(56, 178, 172, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 0 40px -10px rgba(56, 178, 172, 0.2), 0 4px 30px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.glass-card-highlight:hover {
    border-color: rgba(56, 178, 172, 0.6) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px -5px rgba(56, 178, 172, 0.3), 0 4px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Coral accent glass card / button style */
.coral-glass {
    background: rgba(255, 107, 107, 0.15) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 107, 107, 0.3) !important;
    color: #ffffff !important;
    border-radius: 9999px !important;
    transition: all 0.3s ease !important;
}

.coral-glass:hover {
    background: rgba(255, 107, 107, 0.25) !important;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2) !important;
    transform: scale(0.95) !important;
}

/* Glowing active elements */
.signal-glow {
    box-shadow: 0 0 10px currentColor;
}

.pulse-glow {
    animation: glowPulse 2s infinite ease-in-out;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; filter: drop-shadow(0 0 2px var(--color-signal-teal)); }
    50% { opacity: 1; filter: drop-shadow(0 0 12px var(--color-signal-teal)); }
}

/* ==========================================================================
   INFINITY LOOP ANIMATION SYSTEM
   ========================================================================== */
.loop-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 2 / 1;
    margin: 0 auto;
}

/* ==========================================================================
   ACCORDION / FAQ TRANSITION
   ========================================================================== */
.faq-item .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-a {
    max-height: 500px;
    padding-bottom: 1.25rem;
}

.faq-item .material-symbols-outlined {
    transition: transform 0.3s ease;
}

.faq-item.open .material-symbols-outlined {
    transform: rotate(45deg);
}

/* ==========================================================================
   CUSTOM SCROLLBAR FOR MODERN BROWSER FEEL
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-background);
}
::-webkit-scrollbar-thumb {
    background: var(--color-outline-variant);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ==========================================================================
   ENTRY TRANSITION EFFECTS
   ========================================================================== */
.fade-in-entry {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-entry.visible {
    opacity: 1;
    transform: translateY(0);
}
