/* Netflix Style Redesign */
:root {
    --bg-color: #141414;
    --card-bg: #1M1M1M;
    --primary-red: #E50914;
    --text-color: #FFFFFF;
    --text-secondary: #AAAAAA;
    --font-title: 'Bebas Neue', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

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

body {
    font-family: var(--font-body), sans-serif;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.9));
    color: var(--text-color);
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    padding: 20px 5vw;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
}

.logo {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--primary-red);
    text-transform: uppercase;
}

#app {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

/* View Transitions */
.view {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
}
.view.active {
    display: flex;
}

/* Hero Section */
.hero-content {
    max-width: 550px;
}
.main-title {
    font-family: var(--font-title);
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Card */
.card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

#progress {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.question {
    font-size: 1.8rem;
    margin-bottom: 30px;
    line-height: 1.4;
    font-weight: 700;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    display: block;
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s;
    font-family: var(--font-body);
}
.btn:hover {
    transform: scale(1.1);
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--text-color);
}
.btn-primary:hover {
    background-color: #f6121d;
}

.btn-ans {
    background: #333;
    color: white;
    border: 1px solid #555;
}
.btn-ans:hover {
    background: #4d4d4d;
}

/* Loading Animation */
.loader {
    width: 60px;
    height: 60px;
    border: 4px solid #333;
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
.loading-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

/* Result */
.result-title {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.result-score {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 15px;
    font-family: var(--font-title);
}
#res-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}
#retry-btn {
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}
#retry-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .main-title {
        font-size: 3.5rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .question {
        font-size: 1.4rem;
    }
    .card {
        padding: 30px;
    }
    .btn-group {
        flex-direction: column;
    }
}