/* Digital Tourism - Unified Premium Theme */
:root {
    /* Color Palette */
    --primary: #4f46e5;
    /* Indigo 600 */
    --primary-dark: #4338ca;
    /* Indigo 700 */
    --primary-light: #e0e7ff;
    /* Indigo 100 */

    --secondary: #06b6d4;
    /* Cyan 500 */
    --accent: #f59e0b;
    /* Amber 500 */

    --success: #10b981;
    /* Green 500 */
    --success-bg: #ecfdf5;
    /* Green 50 */

    --error: #ef4444;
    /* Red 500 */
    --error-bg: #fef2f2;
    /* Red 50 */

    --background: #f8fafc;
    /* Slate 50 */
    --surface: #ffffff;
    /* White */

    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #64748b;
    /* Slate 500 */

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --radius: 1rem;
}

/* Global Reset */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Header Sections */
.hero-header {
    background: linear-gradient(135deg, var(--text-main) 0%, #1e293b 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: -3rem;
    /* Overlap effect */
    padding-bottom: 5rem;
}

.hero-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.3), transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Card Containers (Quiz & Index) */
.content-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
}

/* Grid for Index */
.grid-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.menu-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-md);
    /* Added shadow */
}

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

.menu-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background 0.3s;
}

.menu-icon svg {
    width: 30px;
    height: 30px;
}

.menu-card:nth-child(2n) .menu-icon {
    background: #ecfeff;
    color: var(--secondary);
}

.menu-card:nth-child(3n) .menu-icon {
    background: #fffbeb;
    color: var(--accent);
}

.menu-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.menu-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: auto;
    /* Push button down */
    line-height: 1.5;
}

.menu-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 0;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    /* Placeholder */
}

.menu-card:hover .menu-btn {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* Quiz Specific Components */
.quiz-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 0 0 2rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-align: center;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-option {
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1.05rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.btn-option:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.btn-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.btn-option.correct {
    border-color: var(--success);
    background: var(--success-bg);
    color: #14532d;
}

.btn-option.wrong {
    border-color: var(--error);
    background: var(--error-bg);
    color: #7f1d1d;
    opacity: 0.7;
}

.btn-option:disabled {
    cursor: default;
}

.feedback-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: #f1f5f9;
    border-left: 5px solid var(--primary);
    animation: fadeIn 0.3s ease;
}

.feedback-title {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Primary Action Button */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

/* Results Section */
.results-container {
    text-align: center;
    padding: 2rem 0;
}

.score-badge {
    display: inline-block;
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.result-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.expert-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: left;
    margin-top: 2rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.float-right {
    float: right;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .content-card {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .btn-option {
        padding: 1rem;
    }
}
