/*
    mamboDanceLessonStyles.css
    TNT | Math Mambo Saga — Classroom Lesson Mode
    Deep-black disco palette with tricolor accents.
    Requires CSS custom properties from ../styles/tnt-base-styles.css.
*/

/* ── Body ── */
body { background: #050508; }

/* ── Hero ── */
#hero {
    min-height: 34vh;
    background:
        linear-gradient(135deg, rgba(5,5,25,0.42) 0%, rgba(20,8,50,0.38) 100%),
        url('../../images/discoDanceFloor.webp') center / cover no-repeat;
    padding: 3.5rem 1rem 2.5rem;
}

/* ── Spark bar ── */
.spark-bar {
    background: #0c080f;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.4rem;
    border-bottom: 1px solid rgba(230,159,77,0.28);
}
.spark-bar a { color: var(--tnt-amber); font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.spark-bar a:hover { text-decoration: underline; color: #ffc261; }
.spark-bar span { color: rgba(255,255,255,0.42); font-size: 0.80rem; margin-left: auto; }

/* ── Game section ── */
#gameSection { background: #070509; padding: 2rem 0 4rem; }

/* ── About details ── */
#gameSection details summary {
    color: var(--tnt-amber); font-style: italic; font-weight: 600;
    cursor: pointer; list-style: none; padding: 0.4rem 0;
}
#gameSection details summary::before       { content: "\25B6\00a0"; font-style: normal; font-size: 0.75em; }
#gameSection details[open] summary::before { content: "\25BC\00a0"; }
#gameSection details .about-body {
    margin-top: 0.5rem; padding-left: 0.75rem;
    border-left: 3px solid var(--tnt-amber);
    color: rgba(255,255,255,0.70); font-size: 0.9rem; line-height: 1.65;
}

/* ── Game card ── */
.game-card {
    background: #110d1c;
    border: 1px solid rgba(100,180,255,0.18);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.70);
}

/* ── Canvas wrapper ── */
#myCanvas { border-radius: 10px; overflow: hidden; display: inline-block; }
#myCanvas canvas { border-radius: 10px; display: block; }

/* ── Status message ── */
#msgPara {
    text-align: center;
    min-height: 1.6rem;
    margin: 0.55rem 0 0;
    font-size: 0.9rem;
    color: var(--tnt-amber);
    font-weight: 600;
}

/* ── Controls headings ── */
.ctrl-heading {
    font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--tnt-amber); margin-bottom: 0.6rem;
}
.ctrl-hr { border-color: rgba(255,255,255,0.10); margin: 0.9rem 0; }

/* ── Primary action button (Place Dancer) ── */
#placeDancerBtn {
    width: 100%; padding: 0.65rem 1rem; border-radius: 8px;
    font-size: 1rem; font-weight: 700; border: none;
    cursor: pointer; transition: filter 0.15s;
    background: var(--tnt-amber); color: #0f0a1e;
}
#placeDancerBtn:hover:not(:disabled) { filter: brightness(1.12); }
#placeDancerBtn:disabled {
    background: rgba(230,159,77,0.28);
    color: rgba(0,0,0,0.35);
    cursor: not-allowed;
}

/* ── Secondary buttons ── */
.btn-secondary-ctrl {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: #1e1530; border: 1px solid rgba(230,159,77,0.30);
    color: rgba(255,255,255,0.70); border-radius: 7px;
    padding: 5px 14px; font-size: 0.84rem;
    cursor: pointer; transition: all 0.15s; text-decoration: none;
}
.btn-secondary-ctrl:hover { border-color: var(--tnt-amber); color: var(--tnt-amber); }

/* ── Sliders ── */
.slider-group { margin-bottom: 0.9rem; }
.slider-group label {
    display: block; font-size: 0.78rem;
    color: rgba(255,255,255,0.52); margin-bottom: 3px; text-align: center;
}

/* ── Stats ── */
.stat-row {
    display: flex; justify-content: space-between;
    font-size: 0.80rem; color: rgba(255,255,255,0.50); margin-bottom: 0.25rem;
}
.stat-row span:last-child { color: rgba(230,159,77,0.85); font-weight: 600; }

/* ── Save button ── */
#saveBtn {
    width: 100%; margin-top: 0.6rem; padding: 5px 0;
    background: #1a2a1a; border: 1px solid rgba(39,174,96,0.40);
    color: #27AE60; border-radius: 7px; font-size: 0.84rem;
    cursor: pointer; transition: all 0.15s;
}
#saveBtn:hover { background: rgba(39,174,96,0.18); border-color: #27AE60; }

/* ── Dice legend card ── */
.lesson-legend-card {
    background: #0e0a18;
    border: 1px solid rgba(230,159,77,0.22);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.dice-row {
    display: flex; align-items: center; gap: 0.55rem;
    margin-bottom: 0.7rem; font-size: 0.9rem;
}
.dice-row:last-child { margin-bottom: 0; }
.dice-faces  { font-size: 1.45rem; letter-spacing: 3px; min-width: 3.5rem; }
.dice-range  { color: rgba(255,255,255,0.50); font-size: 0.78rem; min-width: 2.3rem; }
.dice-arrow  { color: var(--tnt-amber); font-size: 1rem; font-weight: 700; }
.dice-light  { color: rgba(255,255,255,0.82); font-size: 0.88rem; }

/* ── How to play card ── */
.lesson-steps-card {
    background: #0e0a18;
    border: 1px solid rgba(100,180,255,0.14);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}
.lesson-steps {
    margin: 0.4rem 0 0; padding-left: 1.25rem;
    font-size: 0.82rem; color: rgba(255,255,255,0.58); line-height: 1.7;
}
.lesson-steps li { margin-bottom: 0.2rem; }

/* ── Color legend dots (shared with main app) ── */
.legend-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.dot-red   { background: #ff4515; box-shadow: 0 0 6px #ff4515; }
.dot-green { background: #2ade7b; box-shadow: 0 0 6px #2ade7b; }
.dot-blue  { background: #2bc8ff; box-shadow: 0 0 6px #2bc8ff; }
