/* GENO_BYTE — light blue × warm orange theme */

/* Palette */
:root {
    --page-top: #dcebf9;      /* soft light blue   */
    --page-bottom: #f7efe2;   /* warm sand (mix)   */
    --card: #fdfeff;          /* near-white blue   */
    --mist: #c9dcee;          /* blue-gray borders */
    --inset: #eef5fc;         /* light blue inset  */
    --ink: #334155;           /* slate text        */
}

/* Page: light blue blending into warm sand */
.bg-page {
    background: linear-gradient(165deg, var(--page-top) 0%, var(--page-bottom) 100%);
    background-attachment: fixed;
}
.bg-card  { background-color: var(--card); }
.bg-inset { background-color: var(--inset); }
.border-mist { border-color: var(--mist); }
.shadow-soft { box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08); }

/* DNA base colors (readable on light blue) */
.dna-a { color: #e11d48; } /* Adenine  – rose    */
.dna-c { color: #0284c7; } /* Cytosine – sky     */
.dna-g { color: #059669; } /* Guanine  – emerald */
.dna-t { color: #d97706; } /* Thymine  – amber   */

/* Input / output boxes */
.field {
    background: var(--card);
    border: 1px solid var(--mist);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--ink);
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.output-box {
    background: var(--inset);
    border: 1px solid var(--mist);
    border-radius: 0.75rem;
    padding: 0.65rem 1rem;
    word-break: break-word;
}

/* Preset buttons (data weight card) */
.preset-btn {
    padding: 0.65rem 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--mist);
    background: #f0f6fc;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.preset-btn:hover {
    background: #e3eefa;
    border-color: #f97316;
}

/* Poll vote buttons */
.vote-btn {
    padding: 0.6rem 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--mist);
    background: #f0f6fc;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.vote-btn:hover {
    border-color: #f97316;
}

/* Small header action button (Copy) */
.mini-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid var(--mist);
    background: #f0f6fc;
    color: var(--ink);
    transition: background 0.15s ease;
}
.mini-btn:hover { background: #e3eefa; }

/* Poll result bars */
.poll-bar {
    height: 0.5rem;
    width: 0%;
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* DNA helix banner — blue-to-warm glow */
#helix-box {
    height: 170px;
    background: radial-gradient(circle at 50% 45%, #eaf3fc 0%, #f5edde 100%);
}
@media (max-width: 380px) {
    #helix-box { height: 140px; }
}
#helixCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Hide number input spinners (cleaner on phones) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Never allow horizontal page scroll on phones */
html, body {
    overflow-x: hidden;
}

/* Background particle canvas — sits behind everything, never blocks taps */
#bg-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Pulsing dot next to the LIVE poll badge */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-radius: 50%;
    background-color: #22c55e;
    vertical-align: middle;
    animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.75); }
}
