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

/* ---- Dashboard ---- */
.dashboard-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    padding-top: 16px;
}

.dashboard-greeting {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Progress Ring */
.progress-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid var(--border-subtle);
}

.progress-ring-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
}

.progress-ring {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: var(--bg-elevated);
    stroke-width: 12;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--accent-blue);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 377;
    transition: stroke-dashoffset 1s ease;
}

.progress-center {
    position: absolute;
    text-align: center;
}

.progress-percent {
    font-size: 36px;
    font-weight: 700;
}

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

.progress-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title {
    font-size: 17px;
    font-weight: 600;
}

.section-action {
    font-size: 13px;
    color: var(--accent-blue);
    cursor: pointer;
}

/* Schedule Items */
.schedule-item {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 10px;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 14px;
}

.schedule-item.completed {
    opacity: 0.6;
}

.schedule-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    color: white;
}

.schedule-checkbox.checked {
    background: var(--accent-green);
    border-color: var(--accent-green);
}

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

.schedule-subject {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.schedule-detail {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-progress {
    font-size: 12px;
    color: var(--accent-blue, #4A90D9);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.schedule-time {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
    flex-shrink: 0;
}

.schedule-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-icon:active {
    opacity: 0.7;
}

.btn-start {
    background: var(--accent-blue);
    color: white;
}

.btn-log {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

/* Streak Banner */
.streak-banner {
    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);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.streak-icon {
    font-size: 28px;
}

.streak-info { flex: 1; }

.streak-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-gold);
}

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


/* ============================================
   Dashboard Plan Checklist
   ============================================ */

.plan-checklist {
    margin-bottom: 20px;
}

.schedule-item.partial .schedule-checkbox {
    border-color: var(--accent-blue);
}

.schedule-item.completed .schedule-subject {
    text-decoration: line-through;
    color: var(--text-secondary);
}


/* ---- Phase 10: Dashboard Review Nudge ---- */
.review-nudge {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent-blue);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.review-nudge:active { transform: scale(0.98); }
.nudge-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.nudge-header-icon { font-size: 16px; }
.nudge-header-text { flex: 1; font-size: 14px; font-weight: 600; }
.nudge-arrow { font-size: 18px; color: var(--text-tertiary); }

.nudge-items { display: flex; flex-direction: column; gap: 6px; }
.nudge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.nudge-icon { font-size: 14px; }
.nudge-title { flex: 1; font-weight: 500; }
.nudge-urgency {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}
.nudge-urgency.nudge-today { background: rgba(74,144,217,0.15); color: var(--accent-blue); }
.nudge-urgency.nudge-overdue { background: rgba(255,69,58,0.12); color: var(--accent-red); }


/* ---- Phase 11: Dashboard Chazara Schedule Items ---- */

.schedule-item-chazara {
    cursor: pointer;
    border-left: 3px solid var(--accent-blue, #007AFF);
}

.schedule-item-chazara:active {
    transform: scale(0.98);
    opacity: 0.8;
}

.schedule-checkbox-chazara {
    font-size: 16px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ---- Phase 14: Intelligence Nudge Cards ---- */
.nudge-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.nudge-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: 12px;
    border-left: 3px solid var(--border);
    position: relative;
}

.nudge-card-high {
    border-left-color: var(--accent-red, #FF453A);
    background: color-mix(in srgb, var(--accent-red, #FF453A) 5%, var(--card-bg));
}

.nudge-card-medium {
    border-left-color: var(--accent-orange, #FF9F0A);
}

.nudge-card-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.nudge-card-body {
    flex: 1;
    min-width: 0;
}

.nudge-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.nudge-card-msg {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.nudge-card-dismiss {
    background: none;
    border: none;
    color: var(--text-tertiary, #666);
    font-size: 14px;
    padding: 4px 6px;
    cursor: pointer;
    opacity: 0.5;
    flex-shrink: 0;
    line-height: 1;
    border-radius: 50%;
}

.nudge-card-dismiss:hover,
.nudge-card-dismiss:active {
    opacity: 1;
    background: var(--bg-secondary, rgba(0,0,0,0.05));
}


/* ============================================
   v41: Skeleton Loading States
   ============================================ */

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, rgba(255,255,255,0.06) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skeleton-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
}

.skeleton-stat {
    height: 20px;
    width: 40px;
    margin: 0 auto 4px;
}

.skeleton-stat-label {
    height: 11px;
    width: 60px;
    margin: 0 auto;
}

.skeleton-session {
    height: 64px;
    margin-bottom: 10px;
    border-radius: 16px;
}

.skeleton-streak {
    height: 52px;
    border-radius: 14px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.skeleton-plan {
    height: 68px;
    border-radius: 16px;
    margin-bottom: 10px;
}


/* ============================================
   v41: Pull-to-Refresh
   ============================================ */

.ptr-indicator {
    text-align: center;
    height: 0;
    overflow: hidden;
    transition: height 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 13px;
    gap: 8px;
}

.ptr-indicator.pulling {
    height: 50px;
}

.ptr-indicator.refreshing {
    height: 50px;
}

.ptr-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-light);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ============================================
   v42: View Transitions (moved to base.css)
   ============================================ */


/* ============================================
   v41: Enhanced Touch Feedback
   ============================================ */

.nav-item:active {
    transform: scale(0.92);
    transition: transform 0.1s ease;
}

.session-tappable:active {
    transform: scale(0.98);
    background: var(--bg-elevated);
    transition: all 0.1s ease;
}

.fab:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

.btn-primary:active,
.btn-secondary:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

.schedule-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}
