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

:root {
    /* Modern Fashion Color Palette */
    --primary: #1A1A1A;
    --secondary: #C9A87C;
    --accent: #B17D6B;
    --surface: #FFFFFF;
    --background: #FAFAFA;
    --background-alt: #F5F5F5;

    /* Text Colors */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-tertiary: #767676;
    --text-light: #999999;

    /* Borders */
    --border: #E5E5E5;
    --border-light: #F0F0F0;
    --border-dark: #CCCCCC;

    /* Feedback Colors */
    --success: #5C946E;
    --error: #C17767;
    --warning: #D4A574;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.16);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    min-height: 100vh;
}

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

/* Header and Navigation */
header {
    background-color: var(--surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--surface);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Quiz Container */
.quiz-container {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.quiz-header {
    text-align: center;
    margin-bottom: 3rem;
}

.quiz-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    max-width: 500px;
    height: 6px;
    background-color: var(--border);
    border-radius: 3px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 20%;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Quiz Questions */
.quiz-question {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
}

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

.quiz-question h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.question-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Option Cards */
.option-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card .card-content {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.option-card:hover .card-content {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.option-card input[type="radio"]:checked + .card-content,
.option-card.selected .card-content {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(201, 168, 124, 0.1), rgba(177, 125, 107, 0.1));
    box-shadow: var(--shadow-lg);
}

.option-card input[type="radio"]:checked + .card-content::after,
.option-card.selected .card-content::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.visual-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.option-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.option-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Quiz Navigation */
.quiz-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-back {
    background-color: var(--surface);
    color: var(--primary);
    border: 2px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-back:hover {
    border-color: var(--primary);
    background-color: var(--background-alt);
}

.btn-next {
    background-color: var(--primary);
    color: var(--surface);
    border: 2px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-next:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.loading-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: var(--text-secondary);
}

/* Results Page Styles */
.results-container {
    padding: 3rem 0;
    text-align: center;
}

.results-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.body-type-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 3rem;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: var(--shadow-lg);
}

.body-type-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.body-type-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--secondary);
    text-transform: capitalize;
    margin-bottom: 1rem;
}

.body-type-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.style-tips {
    text-align: left;
    background: var(--background-alt);
    border-radius: 12px;
    padding: 1.5rem;
}

.style-tips h3 {
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.style-tips ul {
    list-style: none;
    padding: 0;
}

.style-tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.style-tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-header h1 {
        font-size: 2rem;
    }

    .quiz-question h2 {
        font-size: 1.5rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .option-card .card-content {
        padding: 1.5rem 1rem;
    }

    .visual-icon {
        font-size: 2.5rem;
    }

    header nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }
}
