/* ════════════════════════════════════════════════════════════════════════════
   RECATOOLS — Water Intake Calculator — style.css
   Tool-specific overrides only.
   Base styles live in /assets/css/tool-page.css.
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Unit toggle pills ──────────────────────────────────────────────────────── */
.unit-toggle {
    display:         flex;
    gap:             0;
    background:      #f0eeea;
    border-radius:   999px;
    padding:         3px;
    width:           fit-content;
    margin-bottom:   1.25rem;
}

.unit-btn {
    border:          none;
    background:      transparent;
    border-radius:   999px;
    padding:         0.375rem 1.1rem;
    font-family:     'IBM Plex Sans', sans-serif;
    font-size:       0.875rem;
    font-weight:     600;
    color:           #64748B;
    cursor:          pointer;
    transition:      background 0.18s, color 0.18s, box-shadow 0.18s;
    line-height:     1;
}

.unit-btn.active {
    background:      #E8472F;
    color:           #fff;
    box-shadow:      0 2px 6px rgba(232,98,42,0.28);
}

.unit-btn:not(.active):hover {
    color:           #0D1B2A;
}

/* ── Weight input row ───────────────────────────────────────────────────────── */
.weight-input-row {
    display:         flex;
    align-items:     center;
    gap:             0.5rem;
    margin-bottom:   1.5rem;
}

.weight-input-wrap {
    position:        relative;
    flex:            1;
    max-width:       220px;
}

.weight-input-wrap input[type="number"] {
    width:           100%;
    padding:         0.7rem 3rem 0.7rem 1rem;
    border:          1.5px solid #E2E4E8;
    border-radius:   10px;
    font-size:       1.125rem;
    font-family:     'IBM Plex Sans', sans-serif;
    font-weight:     600;
    color:           #0D1B2A;
    background:      #fff;
    outline:         none;
    transition:      border-color 0.18s, box-shadow 0.18s;
    -moz-appearance: textfield;
}

.weight-input-wrap input[type="number"]::-webkit-inner-spin-button,
.weight-input-wrap input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.weight-input-wrap input[type="number"]:focus {
    border-color:    #E8472F;
    box-shadow:      0 0 0 3px rgba(232,98,42,0.12);
}

.weight-unit-badge {
    position:        absolute;
    right:           0.85rem;
    top:             50%;
    transform:       translateY(-50%);
    font-size:       0.8125rem;
    font-weight:     700;
    color:           #64748B;
    pointer-events:  none;
}

.field-label {
    display:         block;
    font-size:       0.8125rem;
    font-weight:     700;
    color:           #64748B;
    text-transform:  uppercase;
    letter-spacing:  0.05em;
    margin-bottom:   0.5rem;
}

/* ── Section divider inside tool card ──────────────────────────────────────── */
.tool-card-section {
    margin-bottom:   1.75rem;
}

.tool-card-section:last-child {
    margin-bottom:   0;
}

/* ── Activity cards ─────────────────────────────────────────────────────────── */
.activity-cards {
    display:         grid;
    grid-template-columns: 1fr 1fr;
    gap:             0.625rem;
}

@media (min-width: 600px) {
    .activity-cards {
        grid-template-columns: repeat(5, 1fr);
    }
}

.activity-card {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    gap:             0.35rem;
    padding:         0.75rem 0.5rem;
    background:      #FFFFFF;
    border:          2px solid #E2E4E8;
    border-radius:   12px;
    cursor:          pointer;
    font-family:     'IBM Plex Sans', sans-serif;
    text-align:      center;
    transition:      border-color 0.18s, background 0.18s, box-shadow 0.18s;
    user-select:     none;
    -webkit-user-select: none;
}

.activity-card:hover {
    border-color:    #E8472F;
    background:      #fff5f1;
}

.activity-card.selected {
    border-color:    #E8472F;
    background:      #fff5f1;
    box-shadow:      0 0 0 3px rgba(232,98,42,0.12);
}

.activity-card .ac-icon {
    font-size:       1.5rem;
    line-height:     1;
}

.activity-card .ac-name {
    font-size:       0.75rem;
    font-weight:     700;
    color:           #0D1B2A;
    line-height:     1.2;
}

.activity-card .ac-desc {
    font-size:       0.6875rem;
    color:           #64748B;
    line-height:     1.3;
}

/* ── Climate cards ──────────────────────────────────────────────────────────── */
.climate-cards {
    display:         grid;
    grid-template-columns: repeat(2, 1fr);
    gap:             0.625rem;
}

@media (min-width: 600px) {
    .climate-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.climate-card {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    gap:             0.35rem;
    padding:         0.75rem 0.5rem;
    background:      #FFFFFF;
    border:          2px solid #E2E4E8;
    border-radius:   12px;
    cursor:          pointer;
    font-family:     'IBM Plex Sans', sans-serif;
    text-align:      center;
    transition:      border-color 0.18s, background 0.18s, box-shadow 0.18s;
    user-select:     none;
    -webkit-user-select: none;
}

.climate-card:hover {
    border-color:    #2b7fe8;
    background:      #f0f6ff;
}

.climate-card.selected {
    border-color:    #2b7fe8;
    background:      #f0f6ff;
    box-shadow:      0 0 0 3px rgba(43,127,232,0.12);
}

.climate-card .cc-icon {
    font-size:       1.5rem;
    line-height:     1;
}

.climate-card .cc-name {
    font-size:       0.75rem;
    font-weight:     700;
    color:           #0D1B2A;
    line-height:     1.2;
}

.climate-card .cc-desc {
    font-size:       0.6875rem;
    color:           #64748B;
    line-height:     1.3;
}

/* ── Pregnancy / breastfeeding toggles ─────────────────────────────────────── */
.toggle-row {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             1rem;
    padding:         0.75rem 1rem;
    background:      #FFFFFF;
    border-radius:   10px;
    margin-bottom:   0.5rem;
}

.toggle-row:last-child {
    margin-bottom:   0;
}

.toggle-label {
    font-size:       0.9375rem;
    font-weight:     600;
    color:           #0D1B2A;
}

.toggle-sublabel {
    display:         block;
    font-size:       0.75rem;
    color:           #64748B;
    font-weight:     400;
    margin-top:      0.125rem;
}

/* Toggle switch */
.toggle-switch {
    position:        relative;
    display:         inline-block;
    width:           44px;
    height:          24px;
    flex-shrink:     0;
}

.toggle-switch input {
    opacity:         0;
    width:           0;
    height:          0;
    position:        absolute;
}

.toggle-slider {
    position:        absolute;
    inset:           0;
    background:      #d1cfc9;
    border-radius:   999px;
    cursor:          pointer;
    transition:      background 0.2s;
}

.toggle-slider::before {
    content:         '';
    position:        absolute;
    width:           18px;
    height:          18px;
    background:      #fff;
    border-radius:   50%;
    left:            3px;
    top:             3px;
    transition:      transform 0.2s;
    box-shadow:      0 1px 3px rgba(0,0,0,0.18);
}

.toggle-switch input:checked + .toggle-slider {
    background:      #E8472F;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform:       translateX(20px);
}

.toggle-switch input:focus-visible + .toggle-slider {
    box-shadow:      0 0 0 3px rgba(232,98,42,0.25);
}

/* ── Calculate button ───────────────────────────────────────────────────────── */
.calculate-btn {
    display:         block;
    width:           100%;
    padding:         0.9rem 1.5rem;
    background:      #E8472F;
    color:           #fff;
    border:          none;
    border-radius:   12px;
    font-family:     'IBM Plex Sans', sans-serif;
    font-size:       1.0625rem;
    font-weight:     700;
    cursor:          pointer;
    transition:      background 0.18s, transform 0.12s, box-shadow 0.18s;
    margin-top:      1.75rem;
    letter-spacing:  0.01em;
}

.calculate-btn:hover {
    background:      #d4541f;
    box-shadow:      0 4px 16px rgba(232,98,42,0.32);
}

.calculate-btn:active {
    transform:       scale(0.98);
}

/* ── Results section ────────────────────────────────────────────────────────── */
.results-wrap {
    margin-top:      2rem;
    border-top:      2px solid #E2E4E8;
    padding-top:     1.75rem;
    animation:       fadeSlideIn 0.35s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Primary result number */
.result-primary {
    text-align:      center;
    margin-bottom:   1.25rem;
}

.result-target-label {
    font-size:       0.8125rem;
    font-weight:     700;
    text-transform:  uppercase;
    letter-spacing:  0.08em;
    color:           #64748B;
    margin-bottom:   0.25rem;
}

.result-number {
    display:         flex;
    align-items:     baseline;
    justify-content: center;
    gap:             0.375rem;
}

.result-litres {
    font-family:     'IBM Plex Serif', Georgia, serif;
    font-size:       4rem;
    font-weight:     400;
    color:           #2b7fe8;
    line-height:     1;
}

.result-unit {
    font-size:       1.5rem;
    font-weight:     600;
    color:           #2b7fe8;
    line-height:     1;
}

.result-cups {
    font-size:       1rem;
    color:           #64748B;
    margin-top:      0.25rem;
}

/* Health disclaimer */
.health-disclaimer {
    display:         flex;
    align-items:     flex-start;
    gap:             0.5rem;
    background:      #fff8f0;
    border:          1px solid #fcdab9;
    border-radius:   10px;
    padding:         0.75rem 1rem;
    font-size:       0.8125rem;
    color:           #7a4a1e;
    margin-bottom:   1.5rem;
    line-height:     1.5;
}

.disclaimer-icon {
    flex-shrink:     0;
    font-size:       1rem;
    margin-top:      0.05rem;
}

/* ── Hydration breakdown bar ────────────────────────────────────────────────── */
.hydration-breakdown {
    margin-bottom:   1.75rem;
}

.breakdown-title {
    font-size:       1rem;
    font-weight:     700;
    color:           #0D1B2A;
    margin-bottom:   0.75rem;
}

.hydration-bar {
    display:         flex;
    height:          40px;
    border-radius:   10px;
    overflow:        hidden;
    border:          1px solid #E2E4E8;
    margin-bottom:   0.75rem;
}

.hydration-bar-food {
    background:      #a8d8a8;
    display:         flex;
    align-items:     center;
    justify-content: center;
    transition:      width 0.5s cubic-bezier(0.4,0,0.2,1);
    min-width:       40px;
}

.hydration-bar-drink {
    background:      #2b7fe8;
    display:         flex;
    align-items:     center;
    justify-content: center;
    transition:      width 0.5s cubic-bezier(0.4,0,0.2,1);
    min-width:       80px;
}

.bar-label {
    font-size:       0.75rem;
    font-weight:     700;
    color:           #fff;
    text-shadow:     0 1px 2px rgba(0,0,0,0.25);
    pointer-events:  none;
}

.breakdown-legend {
    display:         flex;
    flex-wrap:       wrap;
    gap:             0.75rem 1.5rem;
}

.legend-item {
    display:         flex;
    align-items:     center;
    gap:             0.4rem;
    font-size:       0.875rem;
    color:           #0D1B2A;
}

.legend-dot {
    width:           12px;
    height:          12px;
    border-radius:   50%;
    flex-shrink:     0;
}

.dot-food  { background: #a8d8a8; }
.dot-drink { background: #2b7fe8; }

/* ── Hourly schedule grid ───────────────────────────────────────────────────── */
.schedule-wrap {
    margin-bottom:   1.75rem;
}

.schedule-title {
    font-size:       1rem;
    font-weight:     700;
    color:           #0D1B2A;
    margin-bottom:   0.25rem;
}

.schedule-note {
    font-size:       0.8125rem;
    color:           #64748B;
    margin-bottom:   0.875rem;
}

.schedule-grid {
    display:         grid;
    grid-template-columns: repeat(3, 1fr);
    gap:             0.5rem;
}

@media (min-width: 500px) {
    .schedule-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .schedule-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.schedule-item {
    background:      #FFFFFF;
    border:          1px solid #E2E4E8;
    border-radius:   10px;
    padding:         0.6rem 0.5rem;
    text-align:      center;
}

.schedule-time {
    font-size:       0.75rem;
    font-weight:     700;
    color:           #0D1B2A;
    margin-bottom:   0.25rem;
}

.schedule-glasses {
    font-size:       1rem;
    line-height:     1.2;
    min-height:      1.5rem;
    display:         flex;
    align-items:     center;
    justify-content: center;
    gap:             2px;
    flex-wrap:       wrap;
    margin-bottom:   0.25rem;
}

.glass-icon {
    font-size:       1rem;
}

.no-glass {
    color:           #c9c7c2;
    font-size:       0.875rem;
}

.schedule-tip {
    font-size:       0.6rem;
    color:           #64748B;
    line-height:     1.3;
}

/* ── ASEAN callout box ──────────────────────────────────────────────────────── */
.asean-callout {
    display:         flex;
    align-items:     flex-start;
    gap:             0.875rem;
    background:      #e8f4fd;
    border:          1px solid #b3d8f5;
    border-radius:   12px;
    padding:         1rem 1.125rem;
    margin-top:      0.5rem;
}

.asean-callout-icon {
    font-size:       1.75rem;
    flex-shrink:     0;
    line-height:     1;
    margin-top:      0.1rem;
}

.asean-callout-text strong {
    display:         block;
    font-size:       0.9375rem;
    font-weight:     700;
    color:           #0c4a6e;
    margin-bottom:   0.375rem;
}

.asean-callout-text p {
    font-size:       0.875rem;
    color:           #164e63;
    line-height:     1.6;
    margin:          0;
}

/* ── Error message ──────────────────────────────────────────────────────────── */
.error-msg {
    color:           #c0392b;
    background:      #fdf2f2;
    border:          1px solid #f5c6c6;
    border-radius:   8px;
    padding:         0.6rem 0.875rem;
    font-size:       0.875rem;
    margin-top:      0.75rem;
}

/* ── Feedback section ───────────────────────────────────────────────────────── */
.feedback-thanks {
    display:         none;
    margin-top:      0.5rem;
    font-size:       0.875rem;
    color:           #27ae60;
}

.feedback-btn.active {
    background:      #E8472F;
    color:           #fff;
    border-color:    #E8472F;
}

/* ── Pull quote in educational ──────────────────────────────────────────────── */
.pull-quote {
    border-left:     4px solid #E8472F;
    margin:          1.5rem 0;
    padding:         0.875rem 1.25rem;
    background:      #FFF5F2;
    border-radius:   0 10px 10px 0;
}

.pull-quote p {
    font-family:     'IBM Plex Serif', Georgia, serif;
    font-size:       1.125rem;
    font-style:      italic;
    color:           #0D1B2A;
    margin:          0;
    line-height:     1.55;
}

/* cache-buster: 2026-05-24T05:06:05Z */
