/* styles.css - Athletic Development Training System Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

:root {
    --primary-color: #2563eb;
    --success-color: #16a34a;
    --warning-color: #ea580c;
    --error-color: #dc2626;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-tertiary);
    font-size: 1rem;
    font-style: italic;
}

.warning-banner {
    background: var(--warning-color);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
    border-radius: 8px;
}

.card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.progress-tracker {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: -1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.progress-step.active .progress-circle {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.progress-step.completed .progress-circle {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

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

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.option-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.option-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.option-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.template-selector {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.template-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.template-tab {
    padding: 8px 16px;
    border-radius: 6px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.template-tab:hover {
    border-color: var(--primary-color);
}

.template-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn:disabled {
    background: var(--text-tertiary);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.workout-day {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.workout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.workout-title {
    font-size: 1.3rem;
    font-weight: 600;
}

.workout-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.exercise-block {
    background: var(--bg-primary);
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.exercise-category {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.exercise-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.exercise-details {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.substitution-notice {
    background: rgba(234, 88, 12, 0.1);
    color: var(--warning-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

.info-box {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--primary-color);
    padding: 16px;
    margin: 20px 0;
    border-radius: 4px;
}

.info-box h4 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-box ul {
    padding-left: 20px;
    color: var(--text-secondary);
}

.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.week-nav-btn {
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.week-nav-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
}

.week-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-max-effort { background: #dc2626; }
.category-dynamic { background: #ea580c; }
.category-repetition { background: #ca8a04; }
.category-supplemental { background: #2563eb; }
.category-assistance { background: #7c3aed; }
.category-sprint { background: #0891b2; }
.category-jump { background: #059669; }
.category-throw { background: #c026d3; }

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .template-tabs {
        flex-direction: column;
    }
}
