/* Base Styles */
:root {
    --primary-color: #8B4D6B;
    --primary-light: #B8728D;
    --primary-dark: #6B3A52;
    --accent-color: #D4A574;
    --accent-light: #E8C9A8;
    --text-dark: #2D2D2D;
    --text-light: #666666;
    --background: #FDF9F7;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(139, 77, 107, 0.15);
    --shadow-hover: 0 8px 30px rgba(139, 77, 107, 0.25);
    --radius: 16px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

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

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.header .tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Screens */
.screen {
    display: none;
    animation: fadeIn 0.4s ease;
}

.screen.active {
    display: block;
}

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

/* Intro Screen */
.intro-content {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.intro-content h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.intro-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.intro-content .highlight {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 30px;
}

.credibility {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
}

.credibility p {
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Quiz Screen */
.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-header h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.quiz-header p {
    color: var(--text-light);
}

.face-shapes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.face-shape-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 3px solid transparent;
}

.face-shape-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.face-shape-card h3 {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin: 15px 0 10px;
}

.face-shape-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Face Shape Icons */
.shape-icon {
    width: 80px;
    height: 100px;
    margin: 0 auto;
    border: 3px solid var(--primary-color);
    position: relative;
}

.shape-icon.oval {
    border-radius: 50%;
    height: 100px;
    width: 70px;
}

.shape-icon.round {
    border-radius: 50%;
    width: 85px;
    height: 85px;
}

.shape-icon.oblong {
    border-radius: 40%;
    width: 60px;
    height: 110px;
}

.shape-icon.heart {
    width: 0;
    height: 0;
    border: none;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-top: 70px solid transparent;
    position: relative;
}

.shape-icon.heart::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -40px;
    width: 80px;
    height: 60px;
    background: transparent;
    border: 3px solid var(--primary-color);
    border-radius: 50px 50px 0 0;
}

.shape-icon.heart::after {
    content: '';
    position: absolute;
    top: -45px;
    left: -25px;
    width: 50px;
    height: 50px;
    border-left: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    transform: rotate(-45deg);
}

.shape-icon.square {
    border-radius: 10px;
    width: 80px;
    height: 90px;
}

/* Results Screen */
.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.face-shape-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
}

.results-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.results-content h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.results-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.bang-styles {
    margin: 25px 0;
}

.bang-style {
    background: var(--background);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
}

.bang-style h4 {
    color: var(--primary-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
}

.bang-style p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.pro-tip {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    padding: 20px 25px;
    border-radius: var(--radius-sm);
    margin-top: 25px;
}

.pro-tip strong {
    color: var(--primary-dark);
}

/* Bang Brush Section */
.bang-brush-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    text-align: center;
}

.bang-brush-section h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.brush-info p {
    font-size: 1.05rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 20px;
}

.brush-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 25px 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.brush-benefits li {
    padding: 8px 0;
    font-size: 1rem;
}

.bang-brush-section .btn-primary {
    background: var(--white);
    color: var(--primary-dark);
    margin-top: 15px;
}

.bang-brush-section .btn-primary:hover {
    background: var(--accent-light);
}

/* Story Callout */
.story-callout {
    background: var(--white);
    padding: 30px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    text-align: center;
    border-left: 4px solid var(--accent-color);
}

.story-callout em {
    font-size: 1.15rem;
    color: var(--text-dark);
    line-height: 1.7;
    display: block;
    margin-bottom: 15px;
}

.story-callout .attribution {
    color: var(--primary-color);
    font-weight: 600;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(139, 77, 107, 0.2);
}

.footer p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.social-links a:hover {
    color: var(--primary-dark);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .intro-content {
        padding: 30px 25px;
    }
    
    .intro-content h2 {
        font-size: 1.5rem;
    }
    
    .face-shapes {
        grid-template-columns: 1fr;
    }
    
    .results-content,
    .bang-brush-section,
    .story-callout {
        padding: 25px 20px;
    }
    
    .brush-benefits {
        grid-template-columns: 1fr;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-actions button {
        width: 100%;
    }
}

/* Animations */
.face-shape-card {
    animation: slideUp 0.5s ease backwards;
}

.face-shape-card:nth-child(1) { animation-delay: 0.1s; }
.face-shape-card:nth-child(2) { animation-delay: 0.2s; }
.face-shape-card:nth-child(3) { animation-delay: 0.3s; }
.face-shape-card:nth-child(4) { animation-delay: 0.4s; }
.face-shape-card:nth-child(5) { animation-delay: 0.5s; }

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