/* ==========================================================================
   HYPERCAL WORKOUT WEEKLY PLANNER & JOURNAL V2 STYLESHEET
   Scoped classes: .hc-workout-*, .hc-week-*, .hc-cal-*, .hc-session-*, .hc-vol-*
   ========================================================================== */

/* Page layout container */
.hc-workout-page {
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

.hc-workout-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

/* ==========================================================================
   WEEK NAVIGATOR V2 — SLEEK TOOLBAR
   ========================================================================== */
.hc-week-nav-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .hc-week-nav-bar {
        padding: 6px 8px;
    }
}

.hc-week-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .hc-week-nav-btn {
        padding: 6px 8px;
        font-size: 0.85rem;
    }
}

.hc-week-nav-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.hc-week-nav-btn:active {
    background: #e2e8f0;
}

.hc-week-date-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    max-width: 100%;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .hc-week-date-trigger {
        padding: 5px 8px;
        font-size: 0.8rem;
        gap: 4px;
    }
}

.hc-week-date-trigger:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #dc2626;
}

.hc-week-date-trigger i.bi-calendar-event {
    color: #dc2626;
    font-size: 0.9rem;
}

.hc-week-current-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 6px;
    background: #fef2f2;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.hc-week-current-link:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* ==========================================================================
   7-DAY WEEK CALENDAR V2 — UNIFIED STRIP
   ========================================================================== */
.hc-week-calendar-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.hc-week-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    width: 100%;
}

@media (max-width: 767.98px) {
    .hc-week-calendar {
        grid-template-columns: repeat(7, 86px);
        min-width: 602px;
        width: max-content;
    }
}

.hc-cal-day {
    padding: 12px 6px;
    text-align: center;
    border-right: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    user-select: none;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 90px;
}

.hc-cal-day:last-child {
    border-right: none;
}

.hc-cal-day:hover {
    background: #f8fafc;
}

.hc-cal-day.is-selected {
    background: #fef2f2 !important;
    box-shadow: inset 0 3px 0 0 #dc2626;
}

.hc-cal-day-name {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 2px;
}

.hc-cal-day.is-selected .hc-cal-day-name {
    color: #dc2626;
}

.hc-cal-day-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 5px;
}

.hc-cal-day.is-selected .hc-cal-day-num {
    color: #dc2626;
}

.hc-cal-today-tag {
    font-size: 0.6rem;
    font-weight: 700;
    color: #dc2626;
    background: #fee2e2;
    padding: 1px 4px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.hc-cal-day-info {
    margin-top: auto;
    width: 100%;
}

.hc-cal-session-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.hc-cal-day.is-selected .hc-cal-session-count {
    color: #991b1b;
}

.hc-cal-session-vol {
    font-size: 0.68rem;
    font-weight: 600;
    color: #dc2626;
    font-family: monospace;
    line-height: 1.2;
}

.hc-cal-rest-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.2;
}

/* ==========================================================================
   SELECTED DAY SECTION HEADER
   ========================================================================= */
.hc-day-header-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.hc-day-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.hc-day-subheading {
    font-size: 0.82rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hc-day-subheading .vol-accent {
    color: #dc2626;
    font-weight: 700;
}

/* ==========================================================================
   WORKOUT SESSION CARD V2
   ========================================================================== */
.hc-session-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease;
}

.hc-session-card:hover {
    border-color: #cbd5e1;
}

.hc-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.hc-session-meta {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hc-session-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
}

.hc-session-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
    transition: color 0.15s ease;
}

.hc-session-title:hover {
    color: #dc2626;
}

.hc-session-muscles {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 10px;
}

.hc-session-note {
    font-size: 0.78rem;
    color: #64748b;
    font-style: italic;
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 2px solid #e2e8f0;
}

/* Metrics Row */
.hc-session-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
}

@media (max-width: 575.98px) {
    .hc-session-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.hc-metric-item {
    text-align: center;
}

@media (min-width: 576px) {
    .hc-metric-item:not(:last-child) {
        border-right: 1px solid #e2e8f0;
    }
}

.hc-metric-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.hc-metric-val.is-vol {
    color: #dc2626;
}

.hc-metric-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
    margin-top: 2px;
}

/* Exercise List */
.hc-session-ex-header {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 6px;
}

.hc-session-ex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.84rem;
}

.hc-session-ex-row:last-child {
    border-bottom: none;
}

.hc-session-ex-name {
    font-weight: 600;
    color: #1e293b;
}

.hc-session-ex-stats {
    font-size: 0.78rem;
    color: #64748b;
    font-family: monospace;
    white-space: nowrap;
}

.hc-session-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #dc2626;
    text-decoration: none;
    margin-top: 10px;
    transition: gap 0.15s ease, color 0.15s ease;
}

.hc-session-cta:hover {
    color: #b91c1c;
    gap: 8px;
}

/* Actions Menu */
.hc-action-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #64748b;
    padding: 4px 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hc-action-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ==========================================================================
   SIDEBAR V2: WEEKLY SUMMARY & VOLUME DISTRIBUTION
   ========================================================================== */
.hc-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.hc-sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.hc-side-stat-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
}

.hc-side-stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.hc-side-stat-lbl {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
    margin-top: 2px;
}

/* Horizontal Volume Distribution Bar Rows */
.hc-vol-row {
    display: flex;
    align-items: center;
    padding: 4px 0;
    cursor: pointer;
    transition: background 0.12s ease;
    border-radius: 4px;
}

.hc-vol-row:hover {
    background: #f8fafc;
}

.hc-vol-day-lbl {
    width: 28px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    text-align: left;
    flex-shrink: 0;
}

.hc-vol-day-lbl.is-selected {
    color: #dc2626;
}

.hc-vol-bar-track {
    flex-grow: 1;
    height: 7px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 8px;
}

.hc-vol-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: #94a3b8;
    transition: width 0.3s ease;
}

.hc-vol-bar-fill.is-selected {
    background: #dc2626;
}

.hc-vol-day-val {
    width: 68px;
    font-size: 0.72rem;
    font-family: monospace;
    color: #64748b;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

.hc-vol-day-val.is-selected {
    color: #dc2626;
    font-weight: 700;
}
