/* js-mastery.odsantos.com/day-02-number-guessing-game/style.css */

/* Light Mode Semantic Status Colors */
:root {
    --text-red: #e11d48;         /* Rose 600 */
    --text-green: #059669;       /* Emerald 600 */
    --text-blue: #2563eb;        /* Blue 600 */

    --info-background: #e0f2fe;  /* Sky 100 */
    --correct-background: #d1fae5;/* Emerald 100 */
    --wrong-background: #ffe4e6;  /* Rose 100 */
}

/* Dark Mode Semantic Status Colors */
body.dark-theme {
    --text-red: #fda4af;         /* Soft pastel rose */
    --text-green: #6ee7b7;       /* Soft pastel mint */
    --text-blue: #93c5fd;        /* Soft pastel blue */

    --info-background: rgba(14, 165, 233, 0.2);   /* Soft sky tint */
    --correct-background: rgba(16, 185, 129, 0.2);/* Soft mint tint */
    --wrong-background: rgba(244, 63, 94, 0.2);   /* Soft rose tint */
}

.game-header {
    margin: 0;
    padding: 0;
}

form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.guessField {
    /* Let Bootstrap handle border and radius in input-group */
    flex: 1;
    min-width: 100px;
    font-size: 1rem;
}

sub,
sup {
    font-size: 1.1em;
    margin: 0 .5em;
}

button {
    /* Let Bootstrap handle primary button styles */
    cursor: pointer;
}

.resultParas {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    /* This creates the "smooth" effect */
    transition: all 0.9s ease;
    text-align: center;
}

/* We'll add this class via JS when a guess is made */
.resultParas.visible {
    opacity: 1;
    /* Slightly tighter */
    max-height: 400px;
    padding: 5px 0;
}

.info,
.guesses,
.lastResult,
.lowOrHi,
.remainingGuesses {
    border-radius: 5px;
    /* Reduced padding */
    padding: 5px 0;
    /* Tighter margins than default Bootstrap */
    margin-bottom: 0.5rem;
}

.text-red {
    color: var(--text-red);
}

.text-green {
    color: var(--text-green);
}

.text-blue {
    color: var(--text-blue);
}

.info {
    background-color: var(--info-background);
    border: 1px solid color-mix(in srgb, var(--text-blue) 40%, transparent);
}

.correct {
    background-color: var(--correct-background);
    border: 1px solid color-mix(in srgb, var(--text-green) 40%, transparent);
}

.wrong {
    background-color: var(--wrong-background);
    border: 1px solid color-mix(in srgb, var(--text-red) 40%, transparent);
}
