/* Fitness Page Specific Styles */

/* Hero Section */
.fitness-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.fitness-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.fitness-hero p {
    font-size: 1.2rem;
    max-width: 700px;
}

/* Introduction Section */
.fitness-intro {
    padding: 3rem 0;
    text-align: center;
    background-color: #f8f9fa;
}

.fitness-intro h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.fitness-intro p {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Fitness Levels Section */
.fitness-levels {
    padding: 3rem 0;
    background-color: white;
}

.fitness-levels h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.level-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.level-btn {
    padding: 0.8rem 1.5rem;
    background-color: #e0e0e0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.level-btn:hover {
    background-color: #d0d0d0;
}

.level-btn.active {
    background-color: #3498db;
    color: white;
}

.level-content {
    display: none;
}

.level-content.active {
    display: block;
}

.level-content h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.level-content p {
    text-align: center;
    color: #555;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.workout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.workout-card {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.workout-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.workout-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.workout-card h4 {
    padding: 1rem 1rem 0;
    color: #2c3e50;
}

.workout-card p {
    padding: 0.5rem 1rem;
    color: #7f8c8d;
}

.workout-card a {
    margin: 0 1rem 1rem;
    display: inline-block;
}

/* Workout Modal */
.workout-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
}

.close-btn:hover {
    color: #2c3e50;
}

#workout-details h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

#workout-details p {
    margin-bottom: 1rem;
    color: #555;
}

.exercise-list {
    margin-top: 1.5rem;
}

.exercise-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.exercise-item:last-child {
    border-bottom: none;
}

.exercise-img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 1rem;
}

.exercise-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.exercise-info p {
    margin-bottom: 0.5rem;
}

/* Fitness Benefits Section */
.fitness-benefits {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

.fitness-benefits h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #7f8c8d;
}

/* Fitness Tracker Section */
.fitness-tracker {
    padding: 3rem 0;
    background-color: white;
}

.fitness-tracker h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.tracker-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tracker-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.tracker-form h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.tracker-stats {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.tracker-stats h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.stat-card h4 {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.stat-card p {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.2rem;
}

.progress-chart {
    width: 100%;
    height: 250px;
    margin-top: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .fitness-hero h1 {
        font-size: 2rem;
    }
    
    .exercise-item {
        flex-direction: column;
    }
    
    .exercise-img {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .tracker-container {
        grid-template-columns: 1fr;
    }
}