/* ===========================================================================
   RandomMe theme — light almost-lime green with sky-blue splashes.
   Cutesy / childlike: rounded shapes, chunky outlines, (almost) no shadows.
   =========================================================================== */

:root {
    --bg:          #f1f9df;  /* page: very light lime */
    --lime:        #c9e89a;  /* folder tabs */
    --lime-soft:   #e7f4cb;  /* soft panels */
    --outline:     #8cc152;  /* leafy green outline */
    --ink:         #4f6135;  /* soft dark-green text */
    --blue:        #67c4ec;  /* sky blue — the splash */
    --blue-dark:   #3aa6d6;
    --blue-soft:   #e2f4fc;
    --white:       #ffffff;

    --radius:      16px;
    --font: "Comic Sans MS", "Comic Neue", "Segoe UI Rounded", "Chalkboard SE",
            system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    background-color: var(--bg);
    /* subtle polka-dot background for the childlike vibe */
    background-image: radial-gradient(var(--lime) 9%, transparent 10%);
    background-size: 32px 32px;
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.45;
}

/* ---------- header / footer ---------- */

.site-header {
    text-align: center;
    padding: 1.6rem 1rem 0.4rem;
}

.site-title {
    margin: 0;
    font-size: 2.4rem;
    color: var(--outline);
    letter-spacing: 1px;
}

.site-subtitle {
    margin: 0.2rem 0 0;
    color: var(--blue-dark);
    font-size: 1.05rem;
}

.site-footer {
    text-align: center;
    color: var(--ink);
    opacity: 0.75;
    padding: 1.5rem 1rem 2.5rem;
    font-size: 0.9rem;
}

/* ---------- board: two panes side by side ---------- */

.board {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    max-width: 1000px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.pane {
    flex: 1 1 380px;
    max-width: 460px;
}

/* folder tab sitting on top of the pane body */
.pane-tab {
    display: inline-block;
    background: var(--lime);
    border: 3px solid var(--outline);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 0.45rem 1.4rem;
    margin-left: 1.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    position: relative;
    top: 3px;
}

.pane-body {
    background: var(--white);
    border: 3px solid var(--outline);
    border-radius: 0 var(--radius) var(--radius) var(--radius);
    padding: 1.3rem;
}

/* ---------- form bits ---------- */

.field { margin-bottom: 1rem; }

.field-label,
.check span {
    font-weight: 700;
    color: var(--ink);
}

.field-label {
    display: block;
    margin-bottom: 0.35rem;
}

.field-input {
    width: 100%;
    font-family: var(--font);
    font-size: 1.1rem;
    padding: 0.5rem 0.7rem;
    border: 3px solid var(--blue);
    border-radius: var(--radius);
    background: var(--blue-soft);
    color: var(--ink);
    outline: none;
}

.field-input:focus {
    border-color: var(--blue-dark);
    background: var(--white);
}

.checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.check input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--blue);
    cursor: pointer;
}

/* ---------- the generate button ---------- */

.btn {
    width: 100%;
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    background: var(--blue);
    border: 3px solid var(--blue-dark);
    border-radius: var(--radius);
    padding: 0.55rem 1rem;
    cursor: pointer;
}

.btn:hover  { background: var(--blue-dark); }
.btn:active { transform: translateY(2px); }

/* ---------- output area (stays inside the pane) ---------- */

.output {
    margin-top: 1.1rem;
    border: 3px dashed var(--lime);
    border-radius: var(--radius);
    background: var(--lime-soft);
    padding: 0.9rem 1rem;
    max-height: 360px;
    overflow-y: auto;
}

.output-hint,
.result-empty {
    margin: 0;
    text-align: center;
    color: var(--ink);
    opacity: 0.8;
}

.result-caption {
    margin: 0 0 0.6rem;
    text-align: center;
    color: var(--blue-dark);
    font-weight: 700;
}

.result-group { margin-bottom: 0.9rem; }

.result-group-title {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    color: var(--white);
    background: var(--blue);
    border-radius: 10px;
    padding: 0.2rem 0.7rem;
}

.result-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.result-row {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
}

.result-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.6);
}

.result-label { color: var(--ink); }

.result-value {
    font-weight: 700;
    color: var(--blue-dark);
    white-space: nowrap;
}

/* ---------- detail pager (one category at a time) ---------- */

.detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    /* keep the arrows in view while a long category (e.g. Eyes) scrolls */
    position: sticky;
    top: -0.9rem;
    background: var(--lime-soft);
    padding: 0.4rem 0;
    z-index: 1;
}

.detail-heading {
    text-align: center;
    line-height: 1.2;
}

.detail-current-title {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue-dark);
}

.detail-counter {
    display: block;
    font-size: 0.85rem;
    color: var(--ink);
    opacity: 0.75;
}

.detail-arrow {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--white);
    background: var(--blue);
    border: 3px solid var(--blue-dark);
    border-radius: 50%;
    cursor: pointer;
}

.detail-arrow:hover  { background: var(--blue-dark); }
.detail-arrow:active { transform: translateY(2px); }

.detail-slide { display: none; }
.detail-slide.is-active { display: block; }

/* ---------- subtle footer links ---------- */

.footer-links {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: var(--ink);
    opacity: 0.7;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-sep {
    opacity: 0.4;
    margin: 0 0.4rem;
}

/* ---------- simple content pages (Help / Privacy) ---------- */

.page-content {
    max-width: 680px;
    margin: 1.5rem auto 2.5rem;
    padding: 0 1.2rem;
}

.page-content h1 {
    color: var(--outline);
    margin: 0.5rem 0 0.25rem;
}

.page-content h2 {
    color: var(--blue-dark);
    font-size: 1.2rem;
    margin: 1.6rem 0 0.4rem;
}

.page-content p,
.page-content li {
    line-height: 1.7;
}

.page-content ul {
    padding-left: 1.4rem;
}

.page-updated {
    opacity: 0.65;
    font-size: 0.9rem;
    margin-top: 0;
}

.back-link {
    display: inline-block;
    color: var(--blue-dark);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* ---------- small screens: panes stack ---------- */

@media (max-width: 720px) {
    .pane { max-width: 100%; }
}
