/* Home Workouts Page Styles */

/* Hero Section */
.workout-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../images/home-workout-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.workout-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.workout-hero p {
    font-size: 1.3rem;
    max-width: 700px;
}

/* Filter Section */
.workout-filter {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background-color: #e0e0e0;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: #d0d0d0;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
}

/* Workout Programs */
.workout-programs {
    padding: 3rem 0;
}

.workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.workout-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.workout-card:hover {
    transform: translateY(-5px);
}

.workout-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.workout-info {
    padding: 1.5rem;
}

.workout-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.workout-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.workout-difficulty {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.difficulty-beginner {
    background-color: #d4edda;
    color: #155724;
}

.difficulty-intermediate {
    background-color: #fff3cd;
    color: #856404;
}

.difficulty-advanced {
    background-color: #f8d7da;
    color: #721c24;
}

.workout-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.type-strength {
    background-color: #cce5ff;
    color: #004085;
}

.type-cardio {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Workout Timer */
.workout-timer {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.workout-timer h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.timer-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.timer-display {
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 1rem 0;
    font-family: monospace;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.timer-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-btn {
    background-color: #2ecc71;
    color: white;
}

.start-btn:hover {
    background-color: #27ae60;
}

.pause-btn {
    background-color: #f39c12;
    color: white;
}

.pause-btn:hover {
    background-color: #e67e22;
}

.reset-btn {
    background-color: #e74c3c;
    color: white;
}

.reset-btn:hover {
    background-color: #c0392b;
}

.timer-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
    font-size: 0.9rem;
}

.setting-group input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .workout-hero h1 {
        font-size: 2.2rem;
    }
    
    .filter-options {
        justify-content: flex-start;
    }
    
    .timer-controls {
        flex-wrap: wrap;
    }
    
    .timer-btn {
        width: 60px;
        height: 60px;
    }
}