/* CoachLytix Landing Page Styles */

/* CSS Variables for Theming */
:root {
    --color-bg: #f9fafb;
    --color-text: #111827;
    --color-subtext: #4b5563;
    --color-primary: #16a34a;
    --color-primary-hover: #15803d;
    --color-accent-bg: #dcfce7;
}

/* Base Styles */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* Button Styles */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.3);
}

/* Dark Theme Variables */
body.theme-dark {
    --color-bg: #111827;
    --color-text: #f9fafb;
    --color-subtext: #9ca3af;
    --color-primary: #10b981;
    --color-primary-hover: #059669;
    --color-accent-bg: #064e3b;
}

/* Feature Card Styles */
.feature-card {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #10b981);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-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);
}

.theme-dark .feature-card {
    background-color: #1f2937;
    border-color: #374151;
}

/* Layout Utilities */
.section-width {
    max-width: 800px;
    margin: 0 auto;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .section-width {
        padding: 0 1rem;
    }
    
    /* Better touch targets for mobile */
    .btn-primary {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Improved form inputs for mobile */
    input[type="text"], 
    input[type="email"] {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px;
    }
    
    /* Better spacing for mobile */
    .feature-card {
        padding: 1rem;
    }
}

/* Form Styles */
.form-input {
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Validation States */
.form-input.valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-input.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-input.valid:focus {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input.invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Error Message Animation */
.error-message {
    animation: slideDown 0.3s ease-out;
}

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

/* Button Loading State */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Lucide Icons Styling */
[data-lucide] {
    transition: all 0.2s ease;
}

.feature-card:hover [data-lucide] {
    transform: scale(1.1);
    color: var(--color-primary-hover);
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Hero Section Enhancements */
.hero-gradient {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #f0fdf4 100%);
}

/* Professional Typography */
.hero-title {
    background: linear-gradient(135deg, #111827 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Trust Indicators */
.trust-indicator {
    transition: all 0.2s ease;
}

.trust-indicator:hover {
    transform: translateY(-1px);
    color: var(--color-primary);
}

/* Decorative Elements */
.decorative-circle {
    animation: float 6s ease-in-out infinite;
}

.decorative-circle:nth-child(2) {
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}
