/* CarMatch AI Off-White with Red Accents Theme - Custom Styles */

/* Base Body Styles for Light Theme */
body {
    background-color: var(--bg-off-white);
    color: var(--text-black);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base container styles */
.container, .main-content {
    background-color: var(--bg-off-white);
    color: var(--text-black);
}

/* Header and Navigation */
.navbar, .header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

/* Content sections */
.section, .content-section {
    background-color: var(--bg-white);
    color: var(--text-black);
}

/* CSS Variables for Off-White Red Accent Theme */
:root {
  --primary-red: #DC2626;
  --primary-red-dark: #B91C1C;
  --primary-red-light: #EF4444;
  --accent-red: #F87171;
  --dark-red: #991B1B;
  --bg-white: #FFFFFF;
  --bg-off-white: #FAFAFA;
  --bg-light-gray: #F5F5F5;
  --text-black: #000000;
  --text-gray: #4B5563;
  --text-gray-light: #6B7280;
  --border-light: #E5E7EB;
  --border-gray: #D1D5DB;
}

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

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Red Theme Specific Styles */
.gradient-text-red {
  background: linear-gradient(135deg, #DC2626 0%, #F87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-red-primary {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: white;
  transition: all 0.3s ease;
}

.btn-red-primary:hover {
  background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.bg-off-white-gradient {
  background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 50%, #F5F5F5 100%);
}

.glass-effect-light {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.card-light {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #000000;
  transition: all 0.3s ease;
}

.card-light:hover {
  border-color: #DC2626;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.15);
}

/* Utility Classes */
.text-red-primary { color: #DC2626; }
.text-red-light { color: #F87171; }
.text-black { color: #000000; }
.text-gray { color: #4B5563; }
.bg-white { background-color: #FFFFFF; }
.bg-off-white { background-color: #FAFAFA; }
.bg-light-gray { background-color: #F5F5F5; }
.bg-red-primary { background-color: #DC2626; }
.bg-red-dark { background-color: #B91C1C; }
.border-red-primary { border-color: #DC2626; }
.border-light { border-color: #E5E7EB; }

/* Floating elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Pulse animation for CTA buttons */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Gradient animations - Updated for Red Theme */
.animated-gradient {
    background: linear-gradient(-45deg, #DC2626, #F87171, #B91C1C, #EF4444);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

/* Enhanced glass morphism - Light Theme */
.glass-morphism {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.18);
    box-shadow: 0 8px 32px 0 rgba(220, 38, 38, 0.1);
}

/* Chat bubble animations */
.chat-bubble-enter {
    animation: slideInLeft 0.3s ease-out;
}

.chat-bubble-enter-right {
    animation: slideInRight 0.3s ease-out;
}

/* Loading animations - Red Theme */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #DC2626;
    animation: loadingDot 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15);
}

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

/* Custom scrollbar - Light Theme */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #B91C1C, #991B1B);
}

/* Form input animations - Red Theme */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.15);
}

/* Button ripple effect - Red Theme */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::before {
    width: 300px;
    height: 300px;
}

/* Notification styles - Light Theme */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: #FFFFFF;
    border: 1px solid #DC2626;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    color: #000000;
}

.notification.show {
    transform: translateX(0);
}

/* Success state - Red Theme */
.success-checkmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #DC2626;
    stroke-miterlimit: 10;
    margin: 10% auto;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #DC2626;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .mobile-slide-up {
        animation: slideUp 0.3s ease-out;
    }
    
    @keyframes slideUp {
        from {
            transform: translateY(100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* Accessibility improvements - Red Theme */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem 1.5rem;
    background: #DC2626;
    color: white;
    text-decoration: none;
}

.skip-to-content:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
}

/* High contrast mode support - Light Theme */
@media (prefers-contrast: high) {
    .glass-effect {
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid #DC2626;
        color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000000;
        background: #FFFFFF;
    }
}