/* ============================================
   Torah Tracker — logger
   Phase 11.5C: Split from app.css
   ============================================ */

/* ---- Timer Fullscreen ---- */
.timer-fullscreen {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.timer-screen-header {
    display: flex;
    justify-content: flex-start;
    padding: 16px 20px 0;
}

.timer-screen-close {
    background: var(--bg-elevated);
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-screen-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px 60px;
}

.timer-screen-subject {
    font-size: 14px;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timer-screen-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    text-align: center;
}

.timer-screen-target {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 50px;
}

.timer-screen-continue {
    font-size: 13px;
    color: var(--accent-blue);
    margin-top: -40px;
    margin-bottom: 40px;
    opacity: 0.85;
}

.timer-display-large {
    font-size: 72px;
    font-weight: 300;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
    margin-bottom: 8px;
    color: var(--accent-blue);
}

.timer-screen-controls {
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.timer-ctrl-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s;
    font-size: 0;
    position: relative;
}

.timer-ctrl-btn:active {
    transform: scale(0.93);
}

/* Pause button — subtle border circle with CSS pause bars */
.timer-ctrl-pause {
    background: rgba(142,142,147,0.12);
    border: 1.5px solid rgba(142,142,147,0.25);
}

.timer-ctrl-pause::before,
.timer-ctrl-pause::after {
    content: '';
    display: block;
    width: 5px;
    height: 22px;
    background: var(--text-secondary);
    border-radius: 2px;
}

.timer-ctrl-pause::after {
    margin-left: 7px;
}

/* When paused, show play triangle instead */
.timer-ctrl-pause.is-playing::before {
    width: 0;
    height: 0;
    background: none;
    border-left: 14px solid var(--text-secondary);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-radius: 0;
    margin-left: 3px;
}

.timer-ctrl-pause.is-playing::after {
    display: none;
}

/* Done button — subtle green circle with CSS checkmark */
.timer-ctrl-done {
    background: rgba(52,199,89,0.15);
    border: 1.5px solid rgba(52,199,89,0.3);
}

.timer-ctrl-done::before {
    content: '';
    display: block;
    width: 12px;
    height: 22px;
    border-bottom: 3px solid var(--accent-green);
    border-right: 3px solid var(--accent-green);
    transform: rotate(45deg);
    margin-top: -6px;
}

.timer-screen-hint {
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-tertiary);
}

/* ---- Hespek Summary ---- */
.hespek-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.hespek-summary-icon { font-size: 28px; }
.hespek-summary-info { flex: 1; }
.hespek-summary-title { font-weight: 600; font-size: 16px; }
.hespek-summary-duration { font-size: 13px; color: var(--accent-green); font-weight: 500; }

/* ---- Active Timer Banner ---- */
.timer-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.15s;
}

.timer-banner:active { transform: scale(0.98); }

.timer-banner.running {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.15), rgba(74, 144, 217, 0.05));
    border: 1px solid rgba(74, 144, 217, 0.3);
}

.timer-banner.paused {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(201, 169, 97, 0.05));
    border: 1px solid rgba(201, 169, 97, 0.3);
}

.timer-banner-pulse {
    position: absolute;
    top: 50%; left: 16px;
    width: 8px; height: 8px;
    border-radius: 50%;
    transform: translateY(-50%);
}

.timer-banner.running .timer-banner-pulse {
    background: var(--accent-blue);
    animation: pulse 2s infinite;
}

.timer-banner.paused .timer-banner-pulse { background: var(--accent-gold); }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateY(-50%) scale(1.3); }
}

.timer-banner-icon { font-size: 24px; margin-left: 16px; }
.timer-banner-info { flex: 1; min-width: 0; }
.timer-banner-title { font-weight: 600; font-size: 15px; }
.timer-banner.running .timer-banner-title { color: var(--accent-blue); }
.timer-banner.paused .timer-banner-title { color: var(--accent-gold); }
.timer-banner-status { font-size: 12px; color: var(--text-secondary); }
.timer-banner-time { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.timer-banner.running .timer-banner-time { color: var(--accent-blue); }
.timer-banner.paused .timer-banner-time { color: var(--accent-gold); }

/* ---- Tappable Sessions ---- */
.session-tappable {
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}

.session-tappable:active {
    transform: scale(0.98);
    background: var(--bg-elevated);
}

.session-edit-hint {
    color: var(--text-tertiary);
    font-size: 14px;
    flex-shrink: 0;
    margin-left: 4px;
    opacity: 0.5;
}

/* ---- Edit Session Delete Button ---- */
.edit-delete-btn {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: rgba(255, 69, 58, 0.1);
    border: 1px solid rgba(255, 69, 58, 0.3);
    border-radius: 14px;
    color: var(--accent-red);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.edit-delete-btn:active { background: rgba(255, 69, 58, 0.2); }

/* ---- Subject Breakdown ---- */
.breakdown-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-subtle);
    margin-top: 16px;
}

.breakdown-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
    gap: 2px;
}

.breakdown-bar-seg {
    min-width: 4px;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.breakdown-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.breakdown-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.breakdown-info {
    flex: 1;
    min-width: 0;
}

.breakdown-label {
    font-size: 14px;
    font-weight: 600;
}

.breakdown-detail {
    font-size: 12px;
    color: var(--text-secondary);
}

.breakdown-chazara {
    color: var(--accent-gold);
    font-weight: 500;
}

.breakdown-pct {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
    min-width: 36px;
    text-align: right;
}

.breakdown-chazara-total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 500;
    text-align: center;
}

/* ---- Shabbat Print Button ---- */
.shabbat-print-btn {
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.12), rgba(201, 169, 97, 0.04));
    border: 1px solid rgba(201, 169, 97, 0.25);
    border-radius: 14px;
    color: var(--accent-gold);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
}

.shabbat-print-btn:active {
    transform: scale(0.98);
    background: rgba(201, 169, 97, 0.2);
}


/* ---- Timer goal reached indicator ---- */
.timer-fullscreen.goal-reached .timer-display-large {
    color: var(--accent-green, #34C759);
}
.timer-fullscreen.goal-reached .timer-screen-hint {
    color: var(--accent-green, #34C759);
}
@keyframes goalFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
