/**
 * Breathe for This — State-Aware Pacer CSS
 * Breathflow Connection
 *
 * Imports pacer circle styles from breath-pacer.css (shared)
 */

/* =========================================================
   STATE SELECTOR
   ========================================================= */

.bft-selector {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}

.bft-selector__label {
    font-size: 1.5rem;
    font-weight: 700;
    color: #E8EDF3;
    margin-bottom: 2rem;
}

.bft-selector__hint {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #7A8599;
}

.bft-link {
    color: #56C4E0;
    text-decoration: none;
    border-bottom: 1px solid rgba(86, 196, 224, 0.3);
    transition: border-color 0.2s;
}

.bft-link:hover {
    border-color: #56C4E0;
}

/* Zone groups */
.bft-zone {
    margin-bottom: 1.25rem;
}

.bft-zone__label {
    display: block;
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.bft-zone--ridge .bft-zone__label { color: #d4613f; }
.bft-zone--sealevel .bft-zone__label { color: #dbb050; }
.bft-zone--depths .bft-zone__label { color: #4a8fd4; }

.bft-zone__states {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    justify-content: center;
}

/* State buttons */
.bft-state-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid;
    min-height: 40px;
}

.bft-state-btn--ridge {
    color: #d4613f;
    border-color: rgba(212, 97, 63, 0.25);
}
.bft-state-btn--ridge:hover {
    background: rgba(212, 97, 63, 0.1);
    border-color: rgba(212, 97, 63, 0.5);
}

.bft-state-btn--sealevel {
    color: #dbb050;
    border-color: rgba(219, 176, 80, 0.25);
}
.bft-state-btn--sealevel:hover {
    background: rgba(219, 176, 80, 0.1);
    border-color: rgba(219, 176, 80, 0.5);
}

.bft-state-btn--depths {
    color: #4a8fd4;
    border-color: rgba(74, 143, 212, 0.25);
}
.bft-state-btn--depths:hover {
    background: rgba(74, 143, 212, 0.1);
    border-color: rgba(74, 143, 212, 0.5);
}

/* =========================================================
   CONTEXT BAR (state name + why)
   ========================================================= */

.bft-context {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.bft-change {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7A8599;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color 0.15s;
}

.bft-change:hover {
    color: #E8EDF3;
}

.bft-context__state {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bft-zone-text--ridge { color: #d4613f; }
.bft-zone-text--sealevel { color: #dbb050; }
.bft-zone-text--depths { color: #4a8fd4; }

.bft-context__why {
    font-size: 0.9375rem;
    color: #7A8599;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =========================================================
   SEQUENCE PROGRESS
   ========================================================= */

.bft-seq-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    min-height: 1.5rem;
}

.bft-seq-dot {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    opacity: 0.35;
    transition: opacity 0.3s;
}

.bft-seq-dot.active {
    opacity: 1;
}

.bft-seq-dot.done {
    opacity: 0.5;
}

.bft-seq-dot__num {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: #E8EDF3;
    background: rgba(86, 196, 224, 0.15);
    border: 1px solid rgba(86, 196, 224, 0.3);
    border-radius: 50% !important;
}

.bft-seq-dot.active .bft-seq-dot__num {
    background: rgba(86, 196, 224, 0.3);
    border-color: #56C4E0;
}

.bft-seq-dot.done .bft-seq-dot__num {
    background: rgba(86, 196, 224, 0.08);
    border-color: rgba(86, 196, 224, 0.15);
}

.bft-seq-dot__label {
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7A8599;
}

.bft-seq-dot.active .bft-seq-dot__label {
    color: #E8EDF3;
}

.bft-seq-arrow {
    width: 12px;
    height: 1px;
    background: rgba(86, 196, 224, 0.2);
}

@media (max-width: 480px) {
    .bft-seq-dot__label {
        display: none;
    }
    .bft-seq-progress {
        gap: 0.375rem;
    }
}

/* =========================================================
   CUE TEXT
   ========================================================= */

.bft-cue {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(232, 237, 243, 0.7);
    max-width: 400px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    font-style: italic;
}

/* =========================================================
   ROUND COUNTER & SESSION TIME
   ========================================================= */

.bft-rounds {
    text-align: center;
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7A8599;
    margin-top: 1.25rem;
    min-height: 1rem;
}

.bft-session-time {
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(232, 237, 243, 0.35);
    margin-top: 0.5rem;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   CONTROLS
   ========================================================= */

.bft-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* =========================================================
   DONE SCREEN
   ========================================================= */

.bft-done {
    text-align: center;
    padding: 2rem 0;
}

.bft-done__text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #E8EDF3;
    margin-bottom: 0.75rem;
}

.bft-done__sub {
    font-size: 0.9375rem;
    color: #7A8599;
    max-width: 400px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.bft-done__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* =========================================================
   UTILITY
   ========================================================= */

.hidden {
    display: none !important;
}
