/* ---- Basic Setup & Theming ---- */
:root {
    --bg-color: #1a1a2e;
    --container-color: #16213e;
    --primary-color: #0f3460;
    --secondary-color: #e94560;
    --text-color: #dcdcdc;
    --text-light: #ffffff;
    --border-color: #0f3460;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

/* ---- Ad Placeholders ---- */
.ad-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background-color: var(--container-color);
    border: 2px dashed var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-style: italic;
    opacity: 0.5;
}

/* ---- Main App Container ---- */
.app-container {
    background-color: var(--container-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 1.5rem 2rem;
    width: 100%;
    max-width: 600px;
    text-align: center;
    border: 1px solid var(--border-color);
    margin: 1rem 0;
}

header h1 {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    min-height: 100px; /* Prevents layout shift */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Options ---- */
.options-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.or-divider {
    font-weight: 700;
    color: var(--secondary-color);
}

.option-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
}

.option-btn:hover {
    background-color: #e94560; /* Use secondary color on hover */
    transform: translateY(-3px);
}

/* ---- Results ---- */
.results-container {
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ---- Controls ---- */
.controls-container {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.control-btn {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s;
}

.control-btn:disabled {
    background-color: #555;
    cursor: not-allowed;
    opacity: 0.6;
}

.control-btn:not(:disabled):hover {
    background-color: #c43a51;
}

/* ---- Utility ---- */
.hidden {
    display: none;
}

/* ---- Media Queries for Larger Screens ---- */
@media (min-width: 640px) {
    .options-container {
        flex-direction: row;
        align-items: center;
    }
    .or-divider {
        margin: 0 1rem;
    }
}
header h1 {
    font-size: 2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.2em;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.app-tagline {
    margin-top: 0.25em;
    font-size: 1.2em;
    color: #c0c8de;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0.02em;
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3em;
    }
    .app-tagline {
        font-size: 1em;
    }
}

/* ---- Subpage Lists: Centred Bullets ---- */
.app-container ul {
    list-style-position: inside;
    padding-left: 0;
    text-align: center;
    margin: 1.2em 0 1.2em 0;
}

.app-container ul li {
    display: list-item;
    margin: 0.7em 0;
    text-align: center;
}

/* ---- Accessible, High-Contrast Links ---- */
.app-container a,
.site-footer a {
    color: #ffc300; /* Gold-yellow, strong contrast on navy */
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}

.app-container a:focus,
.app-container a:hover,
.site-footer a:focus,
.site-footer a:hover {
    color: #fff;
    background: #0f3460;
    outline: 2px solid #ffc300;
    border-radius: 4px;
    text-decoration: underline;
}
