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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header */
header {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

/* Navigation Tabs */
nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-button {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: white;
    color: #2c3e50;
}

.tab-button.active {
    background: white;
    color: #2c3e50;
}

/* Main Content */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.tab-content {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-content.active {
    display: block;
}

/* Bio Section */
.bio-content h3 {
    color: #2c3e50;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.bio-content p {
    margin-bottom: 1rem;
}

/* Blog Section */
.blog-post {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.blog-post .date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-post .content {
    line-height: 1.8;
}

/* Workout Section */
.workout-form {
    background: #ecf0f1;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.workout-form h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

button[type="submit"] {
    background: #3498db;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #2980b9;
}

#form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
}

#form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Workout History */
.workout-history {
    margin-top: 2rem;
}

.workout-history h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.workout-item {
    background: #ecf0f1;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.workout-item .date {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.workout-item .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.workout-item .stat {
    color: #555;
}

.workout-item .stat strong {
    color: #2c3e50;
}

.workout-item .notes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #bdc3c7;
    color: #555;
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    main {
        padding: 0 1rem;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .workout-form {
        padding: 1.5rem;
    }
}
