/* =====================
   CARD BASE
   ===================== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    transition: .2s;
    position: relative;
}

/* =====================
   CONTINUE / FOCAL CARD
   ===================== */
.continue-card {
    background: var(--moss);
    border-radius: 10px;
    padding: 22px 22px 18px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    animation: cardIn 0.6s ease both;
}

.continue-card::before {
    content: '';
    position: absolute;
    right: -20px; top: -20px;
    width: 140px; height: 140px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='70' rx='8' ry='30' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='2'/%3E%3Cellipse cx='50' cy='70' rx='8' ry='30' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='2' transform='rotate(40 50 70)'/%3E%3Cellipse cx='50' cy='70' rx='8' ry='30' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='2' transform='rotate(80 50 70)'/%3E%3Cellipse cx='50' cy='70' rx='8' ry='30' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='2' transform='rotate(120 50 70)'/%3E%3C/svg%3E") center/contain no-repeat;
    pointer-events: none;
}

.continue-label {
    font-size: 0.6rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--color-text-on-structure); margin-bottom: 6px;
}

.continue-title {
    font-family: var(--font-title), var(--font-arabic);
    font-size: 1.4rem; font-weight: 700;
    color: #e8f0e0; margin-bottom: 2px;
}

.continue-sub {
    font-size: 0.72rem; color: var(--color-text-on-structure);
    font-style: italic; margin-bottom: 14px;
}

.growth-bar-wrap {
    display: flex; align-items: center;
    gap: 10px; margin-bottom: 16px;
}

.growth-bar {
    flex: 1; height: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 99px; overflow: hidden;
}

.growth-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sprout), var(--sun));
    border-radius: 99px;
    animation: growFill 1.2s ease-out both 0.4s;
}

.growth-pct {
    font-size: 0.7rem; color: var(--color-text-on-structure);
    font-family: var(--font-mono); min-width: 30px;
}

.continue-actions { display: flex; gap: 8px; }

.continue-card .btn-continue-primary,
.continue-card .btn-continue-ghost {
    flex: 1;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 12px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: all 0.2s;
}

.continue-card .btn-continue-primary:hover,
.continue-card .btn-continue-ghost:hover {
    background: rgba(255,255,255,0.25);
}

/* Ghost variant on light backgrounds (summary, conflict) */
.summary-actions .btn-continue-primary,
.summary-actions .btn-continue-ghost,
.conflict-actions .btn-continue-primary,
.conflict-actions .btn-continue-ghost {
    flex: 1;
    background: var(--action);
    color: var(--action-text);
    border: none;
    border-radius: 10px;
    padding: 12px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: all 0.2s;
}

.summary-actions .btn-continue-primary:hover,
.summary-actions .btn-continue-ghost:hover,
.conflict-actions .btn-continue-primary:hover,
.conflict-actions .btn-continue-ghost:hover {
    filter: brightness(1.1);
}

/* =====================
   GARDEN PROGRESS
   ===================== */
.garden-progress {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 10px;
}

.gp-top {
    display: flex; align-items: baseline;
    justify-content: space-between; margin-bottom: 10px;
}

.gp-title {
    font-family: var(--font-title);
    font-size: 0.95rem; font-weight: 700; color: var(--text);
}

.gp-fraction { font-size: 0.72rem; font-family: var(--font-mono); color: var(--muted); }

.gp-bar-wrap {
    display: flex; gap: 2px; height: 8px;
    border-radius: 99px; overflow: hidden; margin-bottom: 10px;
}

.gp-segment {
    flex: 1; height: 100%;
    background: rgba(61,92,46,0.1); overflow: hidden;
}

body.dark-mode .gp-segment { background: rgba(141,184,122,0.1); }
.gp-segment:first-child { border-radius: 99px 0 0 99px; }
.gp-segment:last-child  { border-radius: 0 99px 99px 0; }

.gp-segment-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--fern), var(--sprout));
}

.gp-bottom { display: flex; justify-content: space-between; align-items: center; }
.gp-status { font-size: 0.68rem; font-style: italic; color: var(--muted); }
.gp-pct {
    font-family: var(--font-title);
    font-size: 1.4rem; font-weight: 700;
    color: var(--action); line-height: 1;
}

/* =====================
   NEEDS WATER
   ===================== */
.needs-water {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 1rem;
    width: 100%;
}

.nw-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 12px;
}

.nw-title {
    font-size: 0.70rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted);
}

.nw-count { font-size: 0.70rem; font-family: var(--font-mono); color: var(--muted); opacity: 0.7; }

.word-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.word-pill {
    font-family: var(--font-arabic); font-size: 1.3rem;
    background: rgba(184,92,40,0.07);
    border: 1px solid rgba(184,92,40,0.18);
    border-radius: 99px; padding: 5px 14px;
    color: var(--text); cursor: pointer; transition: all 0.18s;
}

.word-pill:hover { background: rgba(184,92,40,0.13); transform: translateY(-1px); }

.word-pills-extra {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: 8px; overflow: hidden;
    max-height: 0; opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.word-pills-extra.open { max-height: 600px; opacity: 1; }

.nw-toggle {
    display: flex; align-items: center; gap: 6px;
    margin-top: 12px; cursor: pointer;
    background: none; border: none; padding: 0;
    font-family: var(--font-body); font-size: 0.68rem;
    font-style: italic; color: var(--muted);
    transition: color 0.15s; width: 100%;
}

.nw-toggle:hover { color: var(--text); }
.nw-toggle-line  { flex: 1; height: 1px; background: var(--border); }
.nw-toggle-arrow { font-style: normal; font-size: 0.6rem; transition: transform 0.25s ease; }
.nw-toggle.expanded .nw-toggle-arrow { transform: rotate(180deg); }

/* =====================
   VOICE WARNING
   ===================== */
.voice-warning {
    width: 100%;
    background: rgba(184,92,40,0.07);
    border: 1px solid rgba(184,92,40,0.18);
    border-radius: 10px; padding: 10px 14px;
    font-size: 0.72rem; color: var(--text);
    display: flex; align-items: center;
    justify-content: space-between; gap: 8px;
    margin-bottom: 0.75rem; font-family: var(--font-body);
}

.voice-warning strong { font-weight: 700; }

.voice-warning-dismiss {
    background: none; border: none; cursor: pointer;
    font-size: 0.7rem; color: var(--muted);
    padding: 2px 4px; flex-shrink: 0;
    opacity: 0.6; transition: opacity 0.15s;
}

.voice-warning-dismiss:hover { opacity: 1; }

/* =====================
   LESSON CARDS
   ===================== */
.lesson-card {
    background: var(--card);
    border-radius: 10px;
    padding: 18px 18px 14px;
    border: 1px solid var(--border);
    transition: all 0.25s;
    /* cardIn animation removed — 52 simultaneous animations on home render hurts mobile */
}

.lesson-card:not(.locked):hover {
    transform: translateY(-2px);
}

.lesson-card.locked  { opacity: 0.45; animation: none; }
.lesson-card.custom  { border-left: 3px solid var(--green); }

.lesson-top {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 12px;
}

.lesson-num {
    font-size: 0.75rem; color: var(--muted);
    margin-right: 6px; font-family: var(--font-mono);
}

.lesson-name {
    font-family: var(--font-title), var(--font-arabic);
    font-size: 1rem; font-weight: 700;
    color: var(--text); flex: 1;
}

.lesson-status {
    font-size: 0.72rem; color: var(--muted);
    font-style: italic; white-space: nowrap; padding-left: 8px;
}

.custom-badge { color: var(--green); font-size: 0.9rem; }

.plant-bar-wrap { margin-bottom: 14px; }

.plant-bar {
    height: 4px;
    background: rgba(61,92,46,0.1);
    border-radius: 99px; overflow: visible; position: relative;
}

body.dark-mode .plant-bar { background: rgba(141,184,122,0.1); }

.plant-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--fern), var(--sprout));
    border-radius: 99px; position: relative;
    transition: width 1s ease-out;
}

.plant-fill::after {
    content: '🌱'; position: absolute;
    right: -8px; top: -10px; font-size: 0.9rem;
    transform: translateX(50%);
}

.plant-fill.full::after { content: '🍂'; }

/* =====================
   MODE CIRCLES
   ===================== */
.mode-circles {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 8px 0 0;
    width: 100%;
}

.mode-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 4px 8px;
}

.mode-circle:hover { opacity: 0.85; }
.mode-circle:disabled { opacity: 0.35; cursor: not-allowed; }
.mode-circle:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; border-radius: 10px; }

.mode-circle-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(141,184,122,0.12);
}

.mode-circle-ring--study {
    background: rgba(61,122,74,0.1);
    border: 1px solid var(--border);
}

.mode-circle-icon {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.mode-circle-pct {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.mode-circle-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lesson-actions { display: flex; gap: 8px; }

.btn-harvest {
    flex: 1; background: var(--action); color: var(--action-text);
    border: none; border-radius: 10px; padding: 10px 6px;
    font-size: 0.72rem; font-weight: 700; font-family: var(--font-body);
    cursor: pointer; letter-spacing: 0.04em; transition: all 0.2s;
}

.btn-harvest:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-outline {
    flex: 1; background: transparent; color: var(--outline-text);
    border: 1px solid color-mix(in srgb, var(--outline-text) 30%, transparent);
    border-radius: 10px; padding: 10px 6px;
    font-size: 0.72rem; font-family: var(--font-body); cursor: pointer;
    letter-spacing: 0.04em; transition: all 0.2s;
}

.btn-outline:hover {
    background: color-mix(in srgb, var(--outline-text) 8%, transparent);
    border-color: var(--outline-text);
}

.locked .btn-harvest,
.locked .btn-outline { pointer-events: none; }

.btn-new-category {
    width: 100%; margin-top: 14px; padding: 0.85rem;
    border-radius: 1rem; border: 2px dashed var(--border);
    background: none; color: var(--muted);
    font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: 0.2s;
}

.btn-new-category:hover {
    border-color: var(--green); color: var(--green);
    background: rgba(61,92,46,0.04);
}


