/* Yakov's Design System - Centralized Styles */

/* 1. Global Font Loading */
@font-face {
    font-family: 'OpenDyslexic';
    src: url('https://cdn.jsdelivr.net/gh/antijingoist/opendyslexic@master/compiled/OpenDyslexic-Regular.otf') format('opentype');
}

/* 2. Base Typography & Reset */
* {
    font-family: 'OpenDyslexic', Arial, sans-serif;
    box-sizing: border-box;
}

body {
    font-size: 24px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 3. Global Activity Background (Replaces inline gradients) */
body.activity-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

/* 4. Standard Containers */
.container, .activity-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* 5. Headers */
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 3px solid #003366;
}

h1 {
    font-size: 3em;
    color: #003366;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 2em;
    color: #003366;
    margin-bottom: 15px;
}

/* 6. Buttons (Standardized) */
button, .btn {
    font-family: 'OpenDyslexic', sans-serif;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    transition: all 0.2s;
    font-weight: bold;
}

/* Navigation Buttons (Back / Settings) */
.btn-nav {
    background-color: #6c757d;
    color: white;
    padding: 12px 24px;
    font-size: 1.2em;
}

.btn-nav:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

/* Primary Action Buttons (Save / Start / Next) */
.btn-primary {
    background-color: #003366;
    color: white;
    padding: 15px 40px;
    font-size: 1.5em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-color: #004488;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Delete / Remove Buttons */
.btn-danger {
    background-color: #dc3545;
    color: white;
}

/* 7. Focus Box (Specific to Progress Page) */
.focus-box {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: 5px solid #FF8C00;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
}

.focus-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.focus-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    min-height: 80px;
    align-items: center;
    background: rgba(255,255,255,0.3);
    padding: 15px;
    border-radius: 15px;
}

.focus-skill-badge {
    background: white;
    border: 3px solid #003366;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 24px;
    font-weight: bold;
    color: #003366;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
}

/* 8. Collapsible Categories */
.main-category {
    background: white;
    border: 4px solid #003366;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
}

.category-header:hover {
    background-color: #f0f4f8;
}

.category-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s;
    opacity: 1;
}

.category-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
}

.arrow {
    transition: transform 0.3s;
    font-size: 1.5em;
    color: #003366;
}

.category-header.collapsed .arrow {
    transform: rotate(-90deg);
}

/* 9. Skill Cards */
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
}

.skill-card {
    background: white;
    border: 2px solid #dee2e6;
    border-left: 6px solid #28a745;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.skill-card:hover {
    transform: translateX(5px);
    border-color: #003366;
    background-color: #f8f9fa;
}

.skill-checkbox {
    width: 25px;
    height: 25px;
    cursor: pointer;
}

.skill-label {
    font-size: 20px;
    font-weight: bold;
    color: #444;
    cursor: pointer;
}

input:checked + .skill-label {
    color: #003366;
}