/* Tailwind Configuration */
/* Note: Tailwind config is handled via inline script in HTML for CDN version */

/* Custom accessibility overrides toggled via JS */
body.dyslexia-mode {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Lexend', sans-serif !important;
    line-height: 2.0 !important;
    letter-spacing: 0.05em !important;
    word-spacing: 0.1em !important;
}

body.dyslexia-mode p, 
body.dyslexia-mode li,
body.dyslexia-mode h1,
body.dyslexia-mode h2,
body.dyslexia-mode h3 {
    margin-bottom: 1.5em !important;
}

/* Smooth reveal animation with enhanced effects */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal.delay-200 {
    transition-delay: 0.2s;
}

.reveal.delay-400 {
    transition-delay: 0.4s;
}

/* Enhanced gradient backgrounds */
.gradient-hero {
    background: linear-gradient(135deg, rgba(76, 81, 191, 0.1) 0%, rgba(237, 137, 54, 0.1) 100%);
}

.gradient-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(10px);
}

/* Enhanced shadows for depth */
.shadow-glow {
    box-shadow: 0 10px 40px -10px rgba(76, 81, 191, 0.3);
}

.shadow-glow-orange {
    box-shadow: 0 10px 40px -10px rgba(237, 137, 54, 0.3);
}

.shadow-soft-lg {
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.1);
}

/* Smooth hover transitions */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, #4C51BF 0%, #5B5FCF 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5B5FCF 0%, #6B6FDF 100%);
    box-shadow: 0 10px 30px -5px rgba(76, 81, 191, 0.4);
}

/* Magic toggle enhanced animation */
#magic-toggle {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#magic-toggle.bg-brand-blue {
    box-shadow: 0 0 20px rgba(76, 81, 191, 0.4);
}

#magic-knob {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

#magic-toggle.bg-brand-blue #magic-knob {
    box-shadow: 0 4px 12px rgba(76, 81, 191, 0.3);
}

/* Enhanced card styles */
.card-modern {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(76, 81, 191, 0.2);
}

/* Feature card enhancements */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 81, 191, 0.03) 0%, rgba(237, 137, 54, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

/* Enhanced text animations */
.text-gradient {
    background: linear-gradient(135deg, #4C51BF 0%, #38B2AC 50%, #ED8936 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pricing card highlight */
.pricing-card-featured {
    position: relative;
    transform: scale(1.05);
    z-index: 10;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced focus states for accessibility */
*:focus-visible {
    outline: 2px solid #4C51BF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Notification banner animation */
.notification-banner {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Ruler for reading guide */
#reading-ruler {
    pointer-events: none;
    display: none;
    position: fixed;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(255, 255, 0, 0.15);
    border-top: 2px solid rgba(0,0,0,0.1);
    border-bottom: 2px solid rgba(0,0,0,0.1);
    z-index: 9999;
    mix-blend-mode: multiply;
}

/* Enhanced mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

/* Loading states */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== Blog Styles ===== */

/* Blog card hover effects */
.blog-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
    transform: translateY(-6px);
}

/* Blog article prose styles */
.prose {
    color: #2D3748;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose ul {
    list-style: none;
    padding-left: 0;
}

.prose a {
    color: #4C51BF;
    text-decoration: none;
    font-weight: 600;
}

.prose a:hover {
    text-decoration: underline;
}

/* Article content styling */
.prose section {
    margin-bottom: 2.5rem;
}

/* Blog reading progress indicator */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #4C51BF, #38B2AC);
    z-index: 100;
    transition: width 0.1s ease;
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Blog newsletter input focus */
.blog-newsletter input:focus {
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.15);
}

/* Related articles hover effect */
.related-article {
    transition: all 0.3s ease;
}

.related-article:hover {
    transform: translateX(4px);
}

