/* Decision Test Specific Styles */

/* Game Container */
.game-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: var(--card-bg-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Sections (Intro, Game, Result) */
.test-section {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.test-section.active {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

/* Intro Section */
.intro-icon {
    font-size: 5em;
    color: var(--card-fashion-color); /* Yellowish for warning/speed */
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

.start-btn {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color-dark));
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 700;
    margin-top: 30px;
}

.start-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

/* Game Section */
.timer-bar-container {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.timer-bar {
    height: 100%;
    background-color: #ff4757;
    width: 100%;
    transform-origin: left;
    transition: width 0.1s linear;
}

.question-counter {
    font-size: 0.9em;
    color: var(--footer-text-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

@media (min-width: 600px) {
    .options-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.option-btn {
    background: var(--bg-color);
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.option-btn:hover {
    background: var(--hover-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.option-btn:active {
    transform: scale(0.98);
}

.option-emoji {
    font-size: 2.5em;
}

.option-text {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color);
}

/* Result Section */
.result-score {
    font-size: 4em;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
}

.result-rank {
    font-size: 1.5em;
    font-weight: 700;
    color: #ffaa00; /* Gold */
    margin-bottom: 20px;
}

.result-comment {
    font-size: 1.2em;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    line-height: 1.6;
}

.cta-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.cta-text {
    font-size: 0.95em;
    color: var(--footer-text-color);
    margin-bottom: 15px;
}

.cta-btn {
    display: inline-block;
    background: var(--card-dinner-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
    color: white;
}
