@font-face {
    font-family: 'GT Pressura';
    src: url('assets/fonts/GT-Pressura-LCGV-Extended-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'GT Pressura';
    src: url('assets/fonts/GT-Pressura-LCGV-Extended-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

:root {
    /* Color Palette derived from PO Aesthetics */
    --color-primary: #1A1A1A; /* Huyền - Black */
    --color-secondary: #F3F1ED; /* Ngà - Ivory / Light Beige */
    --color-accent: #E2A99E; /* Hồng Đào - Peach Pink */
    --color-background: #FAF9F6; /* Off-white for clean contrast */
    --color-text-main: #2C2C2C;
    --color-text-muted: #6B7280;
    --color-border: #E5E0D8;
    --color-card-bg: #FFFFFF;
    
    /* Typography */
    --font-main: 'GT Pressura', 'Inter', sans-serif;
    
    /* Spacing & Utilities */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

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

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

/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Content Area */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 5;
    padding: 1rem 0;
    min-height: 400px;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* --- Common UI Components --- */

.fade-enter {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp var(--transition-smooth) forwards;
}

.fade-exit {
    opacity: 1;
    animation: fadeOutDown var(--transition-fast) forwards;
}

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

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Typography styles */
.title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Progress bar */
.progress-container {
    width: 100%;
    height: 4px;
    background-color: var(--color-secondary);
    border-radius: 2px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--color-primary);
    transition: width var(--transition-smooth);
}

/* Quiz Options container */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-card {
    background-color: var(--color-card-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.option-card.selected {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: white;
}

.option-card.selected .option-desc {
    color: rgba(255, 255, 255, 0.8);
}

.option-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.option-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Result Page */
.result-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-badge {
    background-color: var(--color-secondary);
    color: var(--color-text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.result-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.result-image-box {
    width: 250px;
    height: 250px;
    background: transparent;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Navigation Buttons for quiz */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    gap: 1rem;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-main);
    padding: 0.875rem 1.5rem;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
}

.nav-next {
    flex: 1;
}

/* Animations for emoji/image inside result */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.result-item {
    animation: float 4s ease-in-out infinite;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .result-title {
        font-size: 1.875rem;
    }
}
