/* ══════════════════════════════════════════════════════════════════
   CVIČENÍ MODULE — Radim Branding v1.0
   Barvy: teal #5BA8A0, coral #F07D7E, bg #f8fafa
   Pro seniory: velké ikony, jasné instrukce, klidné barvy
   ══════════════════════════════════════════════════════════════════ */

/* ─── MENU ─── */
.exercise-menu {
    padding: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.exercise-menu h2 {
    font-size: 1.5rem;
    color: #2d3748;
    text-align: center;
    margin-bottom: 20px;
}

/* ─── KATEGORIE ─── */
.exercise-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.exercise-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 14px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
}

.exercise-category:hover {
    border-color: #5BA8A0;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(91, 168, 160, 0.18);
}

.exercise-category:active {
    transform: scale(0.97);
}

.exercise-category .category-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.exercise-category .category-name {
    font-weight: 700;
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 4px;
}

.exercise-category .category-desc {
    font-size: 0.8rem;
    color: #a0aec0;
}

/* ─── CVIČENÍ SEZNAM ─── */
.exercise-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.exercise-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.exercise-item:hover {
    border-color: #5BA8A0;
    box-shadow: 0 3px 10px rgba(91, 168, 160, 0.12);
}

.exercise-item.full-width {
    width: 100%;
}

.exercise-item .exercise-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    text-align: center;
}

.exercise-item .exercise-info {
    flex: 1;
}

.exercise-item .exercise-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #2d3748;
    margin-bottom: 2px;
}

.exercise-item .exercise-desc {
    font-size: 0.85rem;
    color: #718096;
}

.exercise-item .exercise-duration {
    font-size: 0.75rem;
    color: #a0aec0;
    margin-top: 2px;
}

.exercise-item .exercise-arrow {
    font-size: 1.2rem;
    color: #cbd5e0;
    flex-shrink: 0;
}

/* ─── BREATHING CIRCLE ─── */
.breathing-exercise {
    text-align: center;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.breathing-header h2 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 8px;
}

.breathing-pattern {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 20px;
}

.breathing-circle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.breathing-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(91,168,160,0.15) 0%, rgba(91,168,160,0.05) 70%);
    border: 4px solid #5BA8A0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 1s ease;
    box-shadow: 0 0 30px rgba(91, 168, 160, 0.15);
}

.breathing-circle.inhale {
    transform: scale(1.25);
    border-color: #48bb78;
    background: radial-gradient(circle, rgba(72,187,120,0.15) 0%, rgba(72,187,120,0.05) 70%);
    box-shadow: 0 0 40px rgba(72, 187, 120, 0.25);
}

.breathing-circle.hold {
    transform: scale(1.25);
    border-color: #ecc94b;
    background: radial-gradient(circle, rgba(236,201,75,0.15) 0%, rgba(236,201,75,0.05) 70%);
    box-shadow: 0 0 40px rgba(236, 201, 75, 0.2);
}

.breathing-circle.exhale {
    transform: scale(1);
    border-color: #5BA8A0;
    background: radial-gradient(circle, rgba(91,168,160,0.15) 0%, rgba(91,168,160,0.05) 70%);
    box-shadow: 0 0 30px rgba(91, 168, 160, 0.15);
}

.breathing-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}

.breathing-timer {
    font-size: 2.5rem;
    font-weight: 800;
    color: #5BA8A0;
}

/* ─── PROGRESS ─── */
.breathing-progress {
    margin-bottom: 16px;
}

.breathing-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.breathing-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5BA8A0, #48bb78);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ─── CONTROLS ─── */
.breathing-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.breathing-controls button {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.breathing-controls .primary {
    background: linear-gradient(135deg, #5BA8A0, #4A9690);
    color: white;
}

.breathing-controls .primary:hover {
    box-shadow: 0 4px 12px rgba(91, 168, 160, 0.3);
}

.breathing-controls .secondary {
    background: white;
    color: #e53e3e;
    border: 2px solid #fed7d7;
}

.breathing-controls .secondary:hover {
    background: #fff5f5;
}

/* ─── DOKONČENÍ ─── */
.exercise-complete {
    text-align: center;
    padding: 30px 20px;
}

.complete-emoji {
    font-size: 4rem;
    margin-bottom: 12px;
}

.complete-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 16px 0;
    flex-wrap: wrap;
}

.complete-stat {
    background: #f0fdfa;
    border: 1px solid #b2dfdb;
    border-radius: 12px;
    padding: 12px 20px;
    text-align: center;
}

.complete-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5BA8A0;
}

.complete-stat .stat-label {
    font-size: 0.75rem;
    color: #718096;
}

.complete-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ─── STATISTIKY ─── */
.exercise-stats-view {
    padding: 16px;
}

.exercise-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.exercise-stat-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.exercise-stat-card .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.exercise-stat-card .stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
}

.exercise-stat-card .stat-label {
    font-size: 0.7rem;
    color: #a0aec0;
}

/* ─── BREAKDOWN ─── */
.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

/* ─── MUSIC DURING EXERCISE ─── */
.exercise-music-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f0f9ff;
    border: 1px solid #bee3f8;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #2d3748;
    cursor: pointer;
}

.exercise-music-toggle:hover {
    background: #ebf8ff;
}

.exercise-music-toggle .music-icon {
    font-size: 1.2rem;
}

/* ─── MOBILE ─── */
@media (max-width: 1024px) {
    .exercise-menu { padding: 10px; }
    .exercise-categories { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .exercise-category { padding: 14px 10px; }
    .exercise-category .category-icon { font-size: 2rem; }
    .exercise-category .category-name { font-size: 0.9rem; }
    .exercise-item { padding: 12px 14px; }
    .breathing-circle { width: 160px; height: 160px; }
    .breathing-text { font-size: 1.2rem; }
    .breathing-timer { font-size: 2rem; }
    .breathing-controls { flex-direction: column; align-items: center; }
    .breathing-controls button { width: 100%; max-width: 250px; }
    .complete-actions { flex-direction: column; align-items: center; }
    .exercise-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
