/* Custom CSS for AutoVue AI Landing Page */

:root {
    --primary-cream: #F6F1E9;
    --primary-yellow: #FFD93D;
    --primary-orange: #FF9A00;
    --primary-brown: #4F200D;
    --accent-light-yellow: #fff3a0;
    --accent-light-orange: #ffb84d;
    --neutral-brown: #8b4513;
    --light-brown: #a0522d;
    --bg-white: #ffffff;
    --bg-cream: #F6F1E9;
    --bg-light: #faf8f4;
    --border-cream: #e8dcc0;
    --text-dark: #4F200D;
    --text-medium: #8b4513;
    --text-light: #a0522d;
    --shadow-elegant: rgba(79, 32, 13, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 50%, var(--bg-white) 100%);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-orange);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

.particle:nth-child(2n) {
    background: var(--accent-teal);
    animation-duration: 8s;
    animation-delay: -2s;
    width: 1px;
    height: 1px;
}

.particle:nth-child(3n) {
    background: var(--primary-orange);
    animation-duration: 10s;
    animation-delay: -4s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(4n) {
    background: var(--light-gray);
    animation-duration: 7s;
    animation-delay: -1s;
    opacity: 0.2;
}

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

/* Hero section */
.hero-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.logo-section {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 20;
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-yellow));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px var(--shadow-elegant);
}

.logo-text {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-medium);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Search section */
.search-section {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.search-card {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 16px var(--shadow-elegant);
}

.search-input-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-box {
    width: 100%;
    padding: 1.5rem 4rem 1.5rem 1.5rem;
    font-size: 1.2rem;
    border: 2px solid var(--border-cream);
    border-radius: 4px;
    background: var(--bg-white);
    color: var(--text-dark);
    outline: none;
    transition: all 0.3s ease;
    resize: none;
    min-height: 60px;
}

.search-box:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.search-box::placeholder {
    color: var(--text-light);
}

.discover-icon-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-yellow));
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px var(--shadow-elegant);
}

.discover-icon-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px var(--shadow-elegant);
}

.discover-icon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* Suggestions */
.suggestions {
    margin: 0;
}

.suggestions-title {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.suggestions-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.suggestions-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.suggestions-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Scroll fade effect */
.suggestions-container::before,
.suggestions-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.suggestions-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-white) 0%, transparent 100%);
    opacity: 0;
}

.suggestions-container::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-white) 0%, transparent 100%);
}

.suggestions-container.scroll-left::before {
    opacity: 1;
}

.suggestions-container.scroll-right::after {
    opacity: 1;
}

.suggestion-btn {
    padding: 0.75rem 1rem;
    background: var(--bg-cream);
    border: 1px solid var(--border-cream);
    border-radius: 4px;
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.suggestion-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-elegant);
}


/* Trust badge */
.trust-badge {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.trust-icon {
    width: 16px;
    height: 16px;
    background: var(--accent-teal);
    border-radius: 50%;
    display: inline-block;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px var(--shadow-elegant);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.modal-subtitle {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-input {
    padding: 1rem;
    border: 2px solid var(--border-cream);
    border-radius: 4px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.modal-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.modal-input::placeholder {
    color: var(--text-light);
}

.modal-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-yellow));
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px var(--shadow-elegant);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-elegant);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--light-gray);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--text-medium);
    transform: scale(1.1);
}

/* Error message */
.error-message {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: left;
}

/* Loading spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    display: none;
    margin: 0 auto;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .logo-section {
        position: static;
        margin-bottom: 2rem;
        justify-content: center;
    }
    
    .hero-container {
        padding: 1rem;
        min-height: auto;
    }
    
    .suggestions-container {
        padding: 0 1rem;
    }
    
    .suggestions-grid {
        justify-content: flex-start;
        padding: 0.5rem 0;
    }
    
    .suggestion-btn {
        min-width: 140px;
        font-size: 0.85rem;
        padding: 0.65rem 0.9rem;
    }
    
    .modal {
        padding: 2rem;
        margin: 1rem;
    }
}

/* Error message styles */
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 0.375rem;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
}
