/**
 * Custom CSS for Open Moove Marketing Website
 *
 * This file contains custom styles and utilities for the www app.
 * Most styling is handled by Tailwind CSS, but this file contains
 * additional animations, gradient utilities, and custom components.
 */

/* ==========================================================================
   Typography
   ========================================================================== */

/* Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   Gradient Utilities
   ========================================================================== */

.gradient-primary {
    background: linear-gradient(to right, #d7317f, #e75a9a, #d7317f);
}

.gradient-primary-button {
    background: linear-gradient(to right, #d7317f, #e75a9a, #d7317f);
}

.gradient-text {
    background: linear-gradient(to right, #d7317f, #e75a9a, #d7317f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Animation Utilities
   ========================================================================== */

/* Fade in animations */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animations for lists */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scale on hover */
.hover-scale {
    transition: transform 0.3s ease-out;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Glow effect */
.glow-effect {
    box-shadow: 0 0 20px rgba(231, 90, 154, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(231, 90, 154, 0.5);
}

/* ==========================================================================
   Background Blobs
   ========================================================================== */

.blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-morph 20s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translate(0, 0) scale(1);
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: translate(30px, -50px) scale(1.1);
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: translate(-40px, 20px) scale(0.9);
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: translate(50px, 10px) scale(1.05);
    }
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

/* ==========================================================================
   Card Styles
   ========================================================================== */

.card {
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Timeline Styles (for How It Works)
   ========================================================================== */

.timeline-line {
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1s ease-out;
}

.timeline-line.visible {
    transform: scaleX(1);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

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

/* Text shadow for better readability on gradients */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Rich Text Content (for Articles)
   ========================================================================== */

.rich-text-content {
    line-height: 1.8;
}

.rich-text-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.rich-text-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.rich-text-content p {
    margin-bottom: 1.25rem;
}

.rich-text-content ul,
.rich-text-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.rich-text-content ul {
    list-style-type: disc;
}

.rich-text-content ol {
    list-style-type: decimal;
}

.rich-text-content li {
    margin-bottom: 0.5rem;
}

.rich-text-content a {
    color: #e75a9a;
    text-decoration: underline;
}

.rich-text-content a:hover {
    color: #d4417f;
}

.rich-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.rich-text-content blockquote {
    border-left: 4px solid #e75a9a;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

.rich-text-content code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Courier New', monospace;
}

.rich-text-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.rich-text-content pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}
