/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode Colors */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --dark-text: #1f2937;
    --medium-text: #4b5563;
    --light-text: #6b7280;
    --background: #ffffff;
    --light-bg: #f9fafb;
    --lighter-bg: #f3f4f6;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #34d399;
    --accent-color: #fbbf24;
    --dark-text: #f9fafb;
    --medium-text: #d1d5db;
    --light-text: #9ca3af;
    --background: #0f172a;
    --light-bg: #1e293b;
    --lighter-bg: #334155;
    --border-color: #475569;
    --card-bg: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Automatic dark mode based on system preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary-color: #3b82f6;
        --primary-dark: #2563eb;
        --secondary-color: #34d399;
        --accent-color: #fbbf24;
        --dark-text: #f9fafb;
        --medium-text: #d1d5db;
        --light-text: #9ca3af;
        --background: #0f172a;
        --light-bg: #1e293b;
        --lighter-bg: #334155;
        --border-color: #475569;
        --card-bg: #1e293b;
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    }
}

/* Typography Base */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--dark-text);
    background-color: var(--background);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--background);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
}

.nav-link {
    padding: var(--spacing-xs) var(--spacing-sm);
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    background-color: var(--lighter-bg);
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: var(--spacing-xs) 0;
    min-width: 150px;
    display: none;
    list-style: none;
    margin-top: var(--spacing-xs);
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-link {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    text-decoration: none;
    color: var(--dark-text);
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.dropdown-link:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: calc(var(--spacing-xxl) + 60px) 0 var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--background) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--medium-text);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.hero-description {
    margin-bottom: var(--spacing-xl);
}

.hero-description p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
    color: var(--medium-text);
}

.cta-box {
    background: var(--light-bg);
    padding: var(--spacing-lg);
    border-radius: 16px;
    margin-bottom: var(--spacing-xl);
    border-left: 4px solid var(--primary-color);
}

.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-text);
}

.cta-box p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.highlight {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
    padding: var(--spacing-xxl) 0;
    margin-top: 60px;
}

.section:first-of-type {
    margin-top: 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    color: var(--dark-text);
    letter-spacing: -0.5px;
}

/* Instruction Cards */
.instruction-card {
    background: var(--background);
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.instruction-card h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--dark-text);
}

.content-box {
    font-size: 1.125rem;
    line-height: 1.8;
}

.content-box p {
    margin-bottom: var(--spacing-sm);
    color: var(--medium-text);
}

.important-note {
    background: var(--light-bg);
    padding: var(--spacing-md);
    border-radius: 12px;
    margin: var(--spacing-md) 0;
    border-left: 4px solid var(--primary-color);
}

.important-note ul {
    margin-left: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.important-note li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.8;
    color: var(--dark-text);
}

.warning-box {
    background: #fef2f2;
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.warning-box p {
    color: #dc2626;
    font-size: 1.125rem;
    line-height: 1.6;
}

.tips-box {
    background: var(--lighter-bg);
    padding: var(--spacing-md);
    border-radius: 12px;
    margin: var(--spacing-md) 0;
}

.tips-box h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-text);
}

.tips-box ul {
    margin-left: var(--spacing-md);
}

.tips-box li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.8;
    color: var(--medium-text);
}

.note {
    font-style: italic;
    color: var(--light-text);
    margin-top: var(--spacing-md);
}

/* Rest Times */
.rest-times {
    background: var(--lighter-bg);
    padding: var(--spacing-lg);
    border-radius: 12px;
}

.rest-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.rest-item:last-child {
    border-bottom: none;
}

.rest-label {
    font-size: 1.125rem;
    color: var(--medium-text);
}

.rest-time {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Warm-up Section */
.warmup-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.warmup-instruction {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: var(--spacing-lg);
}

.video-placeholder {
    background: var(--lighter-bg);
    padding: var(--spacing-xl);
    border-radius: 16px;
    margin-bottom: var(--spacing-lg);
    border: 2px dashed var(--border-color);
}

.video-placeholder p {
    font-size: 1.25rem;
    color: var(--medium-text);
}

/* Abs Section */
.abs-intro {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.important-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Workout Card */
.workout-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

/* Fix for Abs & Core workout list */
.workout-card .exercise-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.workout-card .exercise-item input[type="checkbox"] {
    flex-shrink: 0;
}

.workout-card .exercise-name {
    flex: 1;
}

.workout-card .exercise-sets {
    flex-shrink: 0;
}

/* Exercise List */
.exercise-list {
    list-style: none;
    padding: 0;
}

/* Enhanced Checkbox Styling */
.exercise-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary-color);
    border-radius: 6px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.exercise-item input[type="checkbox"]:checked {
    transform: scale(1.1);
}

.exercise-item input[type="checkbox"]:hover {
    transform: scale(1.15);
}

.exercise-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--spacing-md) var(--spacing-xs);
    border-bottom: 1px solid var(--border-color);
    font-size: 1.125rem;
    min-height: 48px;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.exercise-item:hover {
    background-color: var(--lighter-bg);
    border-radius: 8px;
}

.exercise-item:last-child {
    border-bottom: none;
}

.exercise-name {
    flex: 1;
    color: var(--dark-text);
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

/* Ensure exercise name spans are inline */
.exercise-name span {
    display: inline;
}

.exercise-name a {
    color: var(--primary-color);
    transition: all 0.3s ease;
    display: inline-block;
    margin-left: 4px;
}

/* Consistent inline icon alignment next to exercise names */
.exercise-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    vertical-align: middle;
}

.exercise-icon,
.gif-button {
    width: 28px;
    height: 28px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}

/* Nudge emoji icons to optical center */
.exercise-icon:hover,
.gif-button:hover {
    transform: scale(1.12);
}

.exercise-name a:hover {
    color: var(--primary-dark);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.exercise-sets {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.25rem;
    min-width: 70px;
    text-align: center;
    white-space: nowrap;
    padding: 6px 10px;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Week Sections */
.week-section {
    scroll-margin-top: 80px;
}

.week-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
    letter-spacing: -1px;
    position: relative;
    padding-bottom: var(--spacing-md);
}

.week-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

/* Week Progress Badge */
.week-progress-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg, var(--primary-color) var(--progress-angle, 0deg), var(--lighter-bg) var(--progress-angle, 0deg));
    margin-bottom: var(--spacing-md);
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.week-progress-badge:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.week-progress-badge::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--background);
}

.week-progress-badge span {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.week-progress-badge[style*="360deg"] span {
    color: var(--secondary-color);
}

.day-card {
    background: var(--background);
    border-radius: 16px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: visible;
}

.day-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Rest Timer Sticky Reminder */
.rest-timer-reminder {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 70px;
    z-index: 10;
}

.rest-timer-reminder .timer-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.rest-timer-reminder .timer-text {
    flex-shrink: 0;
    white-space: nowrap;
}

.rest-timer-reminder .timer-value {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.813rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Completion Badge */
.completion-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    animation: bounceIn 0.6s ease;
    z-index: 5;
}

/* Completed day card styling */
.day-card.completed {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--background), var(--light-bg));
}

.day-card.completed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent);
    pointer-events: none;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    position: absolute;
    animation: confetti-fall 3s linear forwards;
    z-index: 9999;
}

.confetti:nth-child(odd) {
    background: var(--secondary-color);
}

.confetti:nth-child(3n) {
    background: var(--accent-color);
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(720deg);
        opacity: 0;
    }
}

/* Celebration overlay */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9998;
}

.day-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

.day-card .exercise-list {
    counter-reset: exercise-counter;
}

.day-card .exercise-item {
    counter-increment: exercise-counter;
    position: relative;
    padding-left: 40px;
    display: flex;
    align-items: center;
}

.day-card .exercise-item::before {
    content: counter(exercise-counter) ".";
    position: absolute;
    left: 12px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Final Test Section */
.final-test {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.final-test .section-title {
    color: white;
}

.test-content {
    max-width: 900px;
    margin: 0 auto;
}

.test-intro {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.test-intro .lead {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.test-intro p {
    font-size: 1.25rem;
    opacity: 0.95;
}

.test-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.test-card h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

.test-list {
    list-style: none;
}

.test-item {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.test-item:last-child {
    border-bottom: none;
}

.test-exercise {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.test-note {
    font-size: 1.125rem;
    opacity: 0.9;
}

.results-box {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark-text);
    padding: var(--spacing-lg);
    border-radius: 16px;
    text-align: center;
}

.results-box h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.results-box p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.congrats {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: var(--spacing-md);
}

/* Footer */
.footer {
    background: var(--dark-text);
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
    margin-top: var(--spacing-xxl);
}

.footer p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Typography adjustments */
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .week-title {
        font-size: 2.5rem;
    }
    
    /* Navigation Mobile */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        background: var(--light-bg);
        margin-left: var(--spacing-md);
    }
    
    /* Week Grid Mobile */
    .week-grid {
        grid-template-columns: 1fr;
    }
    
    /* Day Cards Mobile */
    .day-card {
        margin-bottom: var(--spacing-md);
    }
    
    /* Exercise Items Mobile - Fixed Layout */
    .exercise-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 16px 8px !important;
        min-height: 56px !important;
    }
    
    .exercise-item input[type="checkbox"] {
        flex-shrink: 0;
        margin: 0;
        width: 24px !important;
        height: 24px !important;
    }
    
    .exercise-name {
        flex: 1 !important;
        font-size: 1rem !important;
        line-height: 1.3 !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
        display: block !important;
        min-width: 0;
    }
    
    .exercise-sets {
        flex-shrink: 0 !important;
        margin: 0 !important;
        font-size: 1rem !important;
        padding: 4px 8px !important;
        min-width: 60px !important;
    }
    
    /* Day card specific layout */
    .day-card .exercise-item {
        padding-left: 36px !important;
    }
    
    .day-card .exercise-item::before {
        position: absolute !important;
        left: 12px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .instruction-card,
    .workout-card,
    .day-card {
        padding: 16px 12px;
    }
    
    /* Even better mobile layout for small screens */
    .exercise-item {
        display: flex !important;
        gap: 8px !important;
        padding: 14px 8px !important;
        min-height: 50px !important;
    }
    
    .exercise-item input[type="checkbox"] {
        width: 22px !important;
        height: 22px !important;
    }
    
    .exercise-name {
        font-size: 0.95rem !important;
        line-height: 1.35 !important;
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .exercise-sets {
        font-size: 0.95rem !important;
        padding: 4px 8px !important;
        min-width: 55px !important;
    }
    
    /* Adjust day card items */
    .day-card .exercise-item {
        padding-left: 32px !important;
    }
    
    .day-card .exercise-item::before {
        font-size: 0.95rem !important;
        left: 10px !important;
    }
    
    /* Navigation adjustments */
    .brand-text {
        font-size: 1.2rem;
    }
    
    /* Week title smaller on very small screens */
    .week-title {
        font-size: 2rem;
    }
    
    .day-title {
        font-size: 1.3rem;
    }
}

/* Exercise Modal Styles */
.exercise-modal {
    display: flex;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.exercise-modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

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

.exercise-card {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.exercise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.exercise-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
}

.exercise-card h3 {
    font-size: 1rem;
    color: var(--dark-text);
    text-align: center;
    margin: 0;
}

.modal-instruction {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 20px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.no-results p {
    margin: 10px 0;
}

/* Detailed Exercise View */
.exercise-detail {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.detail-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    background: var(--light-bg);
    border-radius: 12px;
    padding: 20px;
}

.exercise-info {
    flex: 1;
    min-width: 300px;
}

.exercise-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.info-section {
    margin-bottom: 15px;
    padding: 10px;
    background: var(--light-bg);
    border-radius: 8px;
}

.info-section strong {
    color: var(--primary-dark);
    display: inline-block;
    margin-bottom: 5px;
}

.instructions ol,
.tips ul {
    margin: 10px 0 0 20px;
}

.instructions li,
.tips li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.back-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--secondary-dark);
    transform: translateX(-5px);
}

/* Loading state */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s ease infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .exercise-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .exercise-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .exercise-card img {
        height: 150px;
    }
    
    .exercise-detail {
        flex-direction: column;
    }
    
    .detail-image {
        max-width: 100%;
    }
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    font-size: 24px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

.sun-icon, .moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

:root:not([data-theme="dark"]) .sun-icon,
[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

:root:not([data-theme="dark"]) .moon-icon,
[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

/* Install Button */
.install-button {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 997;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.install-button:active {
    transform: translateX(-50%) scale(0.95);
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10001;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
    }
    to {
        transform: translateX(-50%) translateY(0);
    }
}

/* Enhanced Mobile Touch Targets */
@media (max-width: 768px) {
    /* Larger checkboxes for exercise tracking - IMPROVED */
    .exercise-item input[type="checkbox"] {
        width: 36px !important;
        height: 36px !important;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        flex-shrink: 0;
        margin-right: 12px !important;
        accent-color: var(--primary-color);
    }
    
    /* Larger exercise items for easier tapping */
    .exercise-item {
        padding: 16px 12px !important;
        min-height: 64px !important;
        touch-action: manipulation;
        gap: 12px !important;
    }
    
    /* Better exercise name layout */
    .exercise-name {
        font-size: 1.05rem !important;
        line-height: 1.4 !important;
        padding-right: 4px !important;
    }
    
    /* Bigger exercise links */
    .exercise-name a {
        padding: 6px;
        margin: -6px;
        display: inline-block;
    }
    
    /* Exercise sets styling */
    .exercise-sets {
        font-size: 1.1rem !important;
        padding: 8px 12px !important;
        background: var(--light-bg);
        border-radius: 8px;
        min-width: 75px !important;
        text-align: center !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }
    
    /* Larger navigation links */
    .nav-link, .dropdown-link {
        padding: 16px 20px !important;
        font-size: 18px !important;
    }
    
    /* Bigger buttons */
    .btn-primary {
        padding: 18px 32px !important;
        font-size: 18px !important;
        min-height: 56px;
    }
    
    /* Improved day cards */
    .day-card {
        padding: 20px 16px !important;
        margin-bottom: 20px !important;
    }
    
    /* Day card exercise adjustments */
    .day-card .exercise-item {
        padding-left: 40px !important;
        position: relative;
    }
    
    .day-card .exercise-item::before {
        left: 16px !important;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Better spacing for mobile */
    .section {
        padding: 40px 0 !important;
    }
    
    .container {
        padding: 0 16px !important;
    }
    
    /* Better hamburger menu touch target */
    .hamburger {
        padding: 12px !important;
        margin: -12px !important;
    }
    
    /* Sticky navigation with better mobile height */
    .navbar {
        min-height: 60px;
    }
    
    .navbar .container {
        padding: 12px 16px !important;
    }
    
    /* Rest timer reminder mobile adjustments */
    .rest-timer-reminder {
        position: static;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 6px;
        padding: 10px 12px;
        font-size: 0.813rem;
    }
    
    .rest-timer-reminder .timer-icon {
        font-size: 1.1rem;
    }
    
    .rest-timer-reminder .timer-text {
        flex-basis: 100%;
        margin-bottom: 4px;
    }
    
    .rest-timer-reminder .timer-value {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    /* Week progress badge mobile */
    .week-progress-badge {
        width: 50px;
        height: 50px;
    }
    
    .week-progress-badge::before {
        width: 40px;
        height: 40px;
    }
    
    .week-progress-badge span {
        font-size: 1rem;
    }
    
    /* Bottom nav mobile adjustments */
    .bottom-nav {
        padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    }
    
    .bottom-nav-item {
        padding: 10px 8px;
    }
    
    .bottom-nav-item .nav-icon {
        font-size: 26px;
    }
    
    .bottom-nav-item .nav-label {
        font-size: 12px;
    }
    
    /* Modal adjustments for mobile */
    .settings-content,
    .progress-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .settings-header,
    .progress-header {
        padding: 16px 20px;
    }
    
    .settings-body,
    .progress-body {
        padding: 20px;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* PWA Standalone Mode Adjustments */
@media all and (display-mode: standalone) {
    /* Add padding for iOS status bar */
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    /* Adjust fixed buttons for home indicator on iPhone X+ */
    .dark-mode-toggle {
        top: calc(80px + env(safe-area-inset-top));
    }
    
    button[style*="bottom"] {
        bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    }
    
    .install-button {
        display: none !important;
    }
}

/* Smooth transitions for theme changes */
body,
.navbar,
.day-card,
.workout-card,
.instruction-card,
.exercise-item,
.hero,
.section {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--medium-text);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 100px;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.bottom-nav-item.active {
    color: var(--primary-color);
    background: var(--lighter-bg);
}

.bottom-nav-item .nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.bottom-nav-item .nav-label {
    font-size: 11px;
    font-weight: 500;
}

/* Progress Badge Counter */
.nav-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.settings-content {
    background: var(--background);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.settings-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-text);
}

.settings-close {
    background: none;
    border: none;
    color: var(--medium-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.settings-close:hover {
    background: var(--light-bg);
    color: var(--dark-text);
}

.settings-body {
    padding: 24px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 16px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.setting-item label {
    font-size: 1rem;
    color: var(--dark-text);
    font-weight: 500;
}

.setting-item select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background);
    color: var(--dark-text);
    font-size: 1rem;
    cursor: pointer;
}

.setting-button {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.setting-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.setting-button.warning {
    background: #ef4444;
}

.setting-button.warning:hover {
    background: #dc2626;
}

.setting-description {
    font-size: 0.875rem;
    color: var(--light-text);
    margin-top: 8px;
    line-height: 1.5;
}

/* Progress Modal */
.progress-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.progress-content {
    background: var(--background);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.progress-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.progress-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.progress-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.progress-body {
    padding: 24px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--medium-text);
    font-weight: 500;
}

.week-progress-list h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 16px;
}

.week-progress-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--light-bg);
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.week-progress-item .week-name {
    font-weight: 600;
    color: var(--dark-text);
}

.week-progress-item .week-percentage {
    font-weight: 700;
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--lighter-bg);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

/* Adjust body padding for bottom nav */
body {
    padding-bottom: 80px;
}

/* Adjust footer margin for bottom nav */
.footer {
    margin-bottom: 80px;
}

/* Print Styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.5;
        padding-bottom: 0;
    }
    
    .navbar,
    .footer,
    .bottom-nav,
    .dark-mode-toggle,
    .install-button,
    .offline-indicator,
    .gif-button {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    .day-card {
        page-break-inside: avoid;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }
}

/* GIF Button Styles */
.gif-button {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    padding: 6px;
    margin-left: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    -webkit-tap-highlight-color: transparent;
}

.gif-button:hover {
    background: var(--lighter-bg);
    transform: scale(1.2);
}

.gif-button:active {
    transform: scale(1.1);
}

.gif-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Exercise GIF Modal */
.exercise-gif-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.exercise-gif-modal.active {
    opacity: 1;
}

.exercise-gif-content {
    background: var(--background);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUpModal 0.3s ease;
}

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

.exercise-gif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.exercise-gif-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.exercise-gif-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.exercise-gif-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.exercise-gif-body {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.gif-container {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.exercise-gif-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.exercise-details {
    color: var(--dark-text);
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.muscle-tags,
.equipment-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.muscle-tag,
.equipment-tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.equipment-tag {
    background: var(--secondary-color);
}

.instructions-list {
    margin: 8px 0 0 20px;
    padding: 0;
}

.instructions-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--medium-text);
}

/* Mobile adjustments for GIF modal */
@media (max-width: 768px) {
    .exercise-gif-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .exercise-gif-header {
        padding: 16px 20px;
    }
    
    .exercise-gif-header h2 {
        font-size: 1.25rem;
    }
    
    .exercise-gif-body {
        padding: 16px;
    }
    
    .gif-container {
        padding: 12px;
        min-height: 200px;
    }
    
    .muscle-tags,
    .equipment-tags {
        gap: 6px;
    }
    
    .muscle-tag,
    .equipment-tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    .gif-button {
        padding: 8px;
        margin-left: 4px;
    }
}


