/* ============================================
   FitPath — Program Detail Page Styles
   ============================================ */

/* --- Program Hero --- */
.program-hero {
    padding: 120px 0 60px;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}
.back-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    transition: gap 0.2s;
}
.back-link:hover { text-decoration: underline; }

.program-hero-content { max-width: 800px; }
.program-tags-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ptag {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}
.ptag.fire { background: #FFE8DD; color: var(--primary-dark); }
.ptag.level { background: #E8F0FE; color: #1A73E8; }
.ptag.cat { background: #E8F5E9; color: #2E7D32; }

.program-hero h1 {
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 16px;
}
.program-hero-desc {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}
.program-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.meta-icon { font-size: 28px; }
.meta-value { display: block; font-size: 16px; font-weight: 700; }
.meta-label { font-size: 12px; color: var(--text-light); }

.program-stats-bar {
    display: flex;
    align-items: center;
    gap: 24px;
}
.pstat-num { display: block; font-size: 18px; font-weight: 700; }
.pstat-label { font-size: 13px; color: var(--text-light); }
.pstat-divider { width: 1px; height: 32px; background: rgba(0,0,0,0.1); }

/* --- Schedule --- */
.schedule-section {
    padding: 60px 0 100px;
}
.schedule-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}
.schedule-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 40px;
}

/* Week Tabs */
.week-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.week-tab {
    padding: 10px 24px;
    border: 2px solid #eee;
    border-radius: 100px;
    background: white;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}
.week-tab:hover { border-color: var(--primary); color: var(--primary); }
.week-tab.active { background: var(--primary); border-color: var(--primary); color: white; }

.week-content { display: none; }
.week-content.active { display: block; animation: fadeIn 0.3s ease; }

/* Day Cards */
.day-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.day-card:hover { box-shadow: var(--shadow-md); }

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}
.day-header > div {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.day-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
}
.rest-badge {
    background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
}
.day-header strong { font-size: 17px; }
.day-meta { font-size: 13px; color: var(--text-light); }
.arrow {
    font-size: 14px;
    color: var(--text-light);
    transition: transform 0.2s;
}

.day-body {
    display: none;
    padding: 0 24px 24px;
    border-top: 1px solid #f0f0f0;
}

/* Rest Day */
.day-card.rest { border-left: 4px solid var(--accent); }
.day-card.rest .day-header { cursor: default; }
.day-rest-body {
    padding: 0 24px 24px;
}
.day-rest-body p { margin-bottom: 12px; color: var(--text-light); }
.day-rest-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
}
.day-rest-body li {
    padding: 6px 0;
    font-size: 15px;
}
.rest-note {
    font-weight: 600;
    color: var(--accent) !important;
    font-size: 15px;
}

/* Warmup / Cooldown Blocks */
.block {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin: 16px 0;
}
.block.warmup { background: #FFF8E1; }
.block.cooldown { background: #E8F5E9; }
.block h4 { font-size: 15px; margin-bottom: 6px; }
.block p { font-size: 14px; color: var(--text-light); margin: 0; }

/* Exercise */
.ex {
    border: 1px solid #f0f0f0;
    border-radius: var(--radius-md);
    margin: 12px 0;
    overflow: hidden;
}
.ex-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}
.ex-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.ex-top h4 { font-size: 16px; margin-bottom: 2px; }
.ex-top p { font-size: 13px; color: var(--text-light); margin: 0; }

.ex-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}
.ex-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.ex-tips {
    padding: 14px 20px;
    background: var(--bg-warm);
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
}

/* Week Notice (for weeks 2-4) */
.week-notice {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    max-width: 700px;
    margin: 0 auto;
}
.week-notice h3 {
    font-size: 24px;
    margin-bottom: 16px;
}
.week-notice p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.7;
}
.week-notice ul {
    padding-left: 20px;
    margin-bottom: 16px;
}
.week-notice li {
    font-size: 15px;
    padding: 4px 0;
    color: var(--text);
}
.week-tip {
    background: var(--bg-warm);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark);
    margin-top: 16px;
}

/* --- Nutrition --- */
.nutrition-section {
    padding: 60px 0 100px;
    background: var(--bg-warm);
}
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.nutrition-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}
.nutrition-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.nutrition-card h4 {
    font-size: 17px;
    margin-bottom: 8px;
}
.nutrition-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .program-hero h1 { font-size: 30px; }
    .program-meta-grid { grid-template-columns: repeat(2, 1fr); }
    .program-stats-bar { flex-wrap: wrap; gap: 16px; }
    .week-tabs { gap: 6px; }
    .week-tab { padding: 8px 16px; font-size: 13px; }
    .nutrition-grid { grid-template-columns: 1fr; }
    .week-notice { padding: 24px; }
    .day-header > div { gap: 8px; }
}
