/* Virtual Interior Designer - Styles */

/* CSS Variables for Color Theme */
:root {
    --color-primary: #2B1F1A;          /* Deep Espresso */
    --color-secondary: #F3EFEA;        /* Soft Linen */
    --color-accent: #B08D57;           /* Aged Bronze */
    --color-accent-soft: #C7BEB4;      /* Clay Taupe */
    --color-background: #FBF9F6;       /* Warm Ivory */
    --color-text: #2A2623;             /* Rich Charcoal */
    --color-text-muted: #8B857E;       /* Weathered Gray */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Enhanced Design Variables */
    --gradient-primary: linear-gradient(135deg, #2B1F1A 0%, #3D2E26 100%);
    --gradient-accent: linear-gradient(135deg, #B08D57 0%, #C7A76E 100%);
    --gradient-hero: linear-gradient(180deg, #FBF9F6 0%, #F3EFEA 100%);

    --shadow-sm: 0 1px 2px 0 rgba(43, 31, 26, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(43, 31, 26, 0.1), 0 2px 4px -1px rgba(43, 31, 26, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(43, 31, 26, 0.1), 0 4px 6px -2px rgba(43, 31, 26, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(43, 31, 26, 0.1), 0 10px 10px -5px rgba(43, 31, 26, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(43, 31, 26, 0.25);
    --shadow-glow: 0 0 20px rgba(176, 141, 87, 0.15);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--gradient-primary);
    color: var(--color-secondary);
    padding: 24px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(176, 141, 87, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.logo h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-secondary);
}

.tagline {
    font-size: 14px;
    color: var(--color-accent);
    font-weight: 400;
}

/* Hero Section */
.hero {
    padding: 70px 0 90px;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(176, 141, 87, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(43, 31, 26, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    animation: slideUp 0.8s ease-out;
}

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

.hero-subtitle {
    font-size: 21px;
    color: var(--color-text-muted);
    margin-bottom: 54px;
    line-height: 1.6;
    animation: slideUp 0.8s ease-out 0.1s both;
}

/* Upload Section */
.upload-section {
    margin-bottom: 50px;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.upload-zone {
    border: 3px dashed var(--color-accent-soft);
    border-radius: var(--radius-2xl);
    padding: 70px 50px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(176, 141, 87, 0.02), rgba(176, 141, 87, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--color-accent);
    background: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.upload-zone:hover::before {
    opacity: 1;
}

.upload-icon {
    color: var(--color-accent);
    margin-bottom: 24px;
    transition: var(--transition-bounce);
}

.upload-zone:hover .upload-icon {
    transform: scale(1.1) translateY(-5px);
}

.upload-zone h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.upload-zone p {
    color: var(--color-text-muted);
    margin-bottom: 14px;
    font-size: 17px;
}

.file-types {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Image Preview */
.image-preview {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 3px solid rgba(176, 141, 87, 0.15);
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
    object-fit: cover;
}

.change-image-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--color-primary);
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: var(--transition-bounce);
}

.change-image-btn:hover {
    background: var(--gradient-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 141, 87, 0.4);
}

/* Prompt Section */
.prompt-section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    border: 1px solid rgba(176, 141, 87, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out 0.3s both;
}

.prompt-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 0.8;
}

.section-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.01em;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 14px;
    margin-bottom: 36px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px;
    background: var(--color-secondary);
    border-radius: var(--radius-xl);
}

.tab-btn {
    background-color: transparent;
    color: var(--color-text);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-bounce);
    font-size: 16px;
    position: relative;
}

.tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-btn:hover {
    background: rgba(176, 141, 87, 0.1);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 12px rgba(176, 141, 87, 0.3);
    transform: translateY(-2px);
}

.tab-btn.active span {
    position: relative;
    z-index: 1;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.prompt-input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid var(--color-accent-soft);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-text);
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
    box-shadow: var(--shadow-sm);
}

.prompt-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.12), var(--shadow-md);
    transform: translateY(-1px);
}

/* Inspiration Upload */
.inspiration-zone {
    border: 2px dashed var(--color-accent-soft);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.inspiration-zone:hover {
    border-color: var(--color-accent);
    background-color: var(--color-secondary);
}

.inspiration-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.inspiration-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* Auto Decision */
.auto-decision {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-muted);
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 20px 48px;
    border-radius: var(--radius-xl);
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 36px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(176, 141, 87, 0.35);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-button:hover::before {
    opacity: 1;
}

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

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(176, 141, 87, 0.45);
}

.cta-button span,
.cta-button svg {
    position: relative;
    z-index: 1;
}

.cta-button:disabled {
    background: var(--color-accent-soft);
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.cta-button:disabled::after,
.cta-button:disabled::before {
    display: none;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 70px 24px;
    background: linear-gradient(135deg, rgba(176, 141, 87, 0.03), rgba(176, 141, 87, 0.06));
    border-radius: var(--radius-2xl);
    border: 2px solid rgba(176, 141, 87, 0.1);
}

.loading-spinner {
    width: 68px;
    height: 68px;
    border: 5px solid var(--color-accent-soft);
    border-top-color: var(--color-accent);
    border-right-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin: 0 auto 28px;
    box-shadow: 0 4px 12px rgba(176, 141, 87, 0.2);
}

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

.loading-state h3 {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.loading-state p {
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 90px 0;
    background: linear-gradient(180deg, white 0%, #FAF8F5 100%);
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 54px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 36px;
}

.feature-card {
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--radius-xl);
    background: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(176, 141, 87, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    transition: var(--transition-bounce);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.feature-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 15.5px;
}

/* How It Works */
.how-it-works {
    padding: 90px 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(176, 141, 87, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    margin-top: 54px;
    position: relative;
    z-index: 1;
}

.step {
    text-align: center;
}

.step-number {
    width: 72px;
    height: 72px;
    background: var(--gradient-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 24px;
    box-shadow: 0 8px 20px rgba(176, 141, 87, 0.3);
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-accent);
    opacity: 0.2;
    z-index: -1;
}

.step h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
}

.step p {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 15.5px;
}

/* SEO Content */
.seo-content {
    padding: 80px 0;
    background-color: white;
}

.seo-content article {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.seo-content h3 {
    font-size: 24px;
    color: var(--color-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.seo-content p {
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.8;
}

.seo-content ul {
    list-style-position: inside;
    margin-bottom: 24px;
}

.seo-content li {
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 32px 0;
    text-align: center;
}

.footer-note {
    color: var(--color-accent-soft);
    margin-top: 8px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .upload-zone {
        padding: 40px 24px;
    }

    .prompt-section {
        padding: 24px;
    }

    .section-heading {
        font-size: 28px;
    }

    .tab-navigation {
        flex-direction: column;
    }

    .tab-btn {
        width: 100%;
    }
}

/* Room Type Section */
.room-type-section {
    margin-bottom: 32px;
}

.input-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.room-type-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--color-accent-soft);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-text);
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.room-type-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.12), var(--shadow-md);
    transform: translateY(-1px);
}

.room-type-select option {
    padding: 10px;
}

.room-type-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--color-accent-soft);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-text);
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    margin-top: 12px;
}

.room-type-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.12), var(--shadow-md);
    transform: translateY(-1px);
}

.room-type-input::placeholder {
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    font-size: 19px;
    color: var(--color-text-muted);
    margin-top: -40px;
    margin-bottom: 48px;
    line-height: 1.7;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Icons - SVG styling */
.feature-icon svg {
    color: var(--color-accent);
}

/* FAQ Section */
.faq-section {
    padding: 90px 0;
    background: linear-gradient(180deg, #FAF8F5 0%, var(--color-secondary) 100%);
}

.faq-container {
    max-width: 920px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius-xl);
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(176, 141, 87, 0.15);
    transform: translateX(4px);
}

.faq-question {
    width: 100%;
    padding: 26px;
    background: none;
    border: none;
    text-align: left;
    font-size: 19px;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    transition: color 0.3s ease;
    position: relative;
}

.faq-question:hover {
    color: var(--color-accent);
}

.faq-question span {
    line-height: 1.4;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--color-accent);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 800px;
    padding: 0 24px 24px;
}

.faq-answer p {
    color: var(--color-text);
    line-height: 1.8;
    margin: 0;
}

.faq-answer a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.faq-answer a:hover {
    color: #9a7a4a;
    text-decoration: underline;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .section-subtitle {
        font-size: 16px;
        margin-top: -24px;
    }

    .faq-question {
        font-size: 16px;
        padding: 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
}
