/* Fitness Influencer Platform Styles */
/* Save as: assets/style.css in your plugin directory */

/* Challenge Container */
.fitness-challenge-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.challenge-header {
    text-align: center;
    margin-bottom: 50px;
}

.challenge-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 800;
}

.challenge-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.challenge-image img {
    width: 100%;
    height: auto;
    display: block;
}

.challenge-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.meta-item {
    background: #f5f5f5;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1rem;
}

.meta-item.prize {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.challenge-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Challenge Categories */
.challenge-categories {
    margin: 50px 0;
}

.challenge-categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.category-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.category-card h3 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

/* Challenge Features */
.challenge-features {
    background: #f9f9f9;
    padding: 50px 40px;
    border-radius: 15px;
    margin: 40px 0;
}

.challenge-features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.challenge-features ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.challenge-features li {
    padding: 15px 20px 15px 50px;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    position: relative;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.challenge-features li:before {
    content: "✓";
    position: absolute;
    left: 20px;
    color: #667eea;
    font-weight: bold;
    font-size: 1.3rem;
}

/* Call to Action */
.challenge-cta {
    text-align: center;
    margin-top: 60px;
}

.btn-join {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 60px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    color: white;
}

/* Programs Grid */
.fitness-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.program-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.program-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.program-content {
    padding: 30px;
}

.program-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.program-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.program-meta span {
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.program-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.program-price {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
}

.btn-view {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-view:hover {
    background: #5568d3;
    color: white;
}

/* Submission Form */
.submission-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.submission-form-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

#submission-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

#submission-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#submission-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Leaderboard */
.leaderboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.leaderboard-container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.leaderboard-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.leaderboard-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 20px;
    text-align: left;
}

.leaderboard-table th {
    font-weight: 700;
    font-size: 1.1rem;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.leaderboard-table tbody tr:hover {
    background: #f9f9f9;
}

.leaderboard-table tbody tr:nth-child(1) td:first-child {
    color: #ffd700;
    font-weight: 700;
    font-size: 1.3rem;
}

.leaderboard-table tbody tr:nth-child(2) td:first-child {
    color: #c0c0c0;
    font-weight: 700;
    font-size: 1.2rem;
}

.leaderboard-table tbody tr:nth-child(3) td:first-child {
    color: #cd7f32;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .challenge-header h1 {
        font-size: 2rem;
    }
    
    .challenge-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .challenge-content {
        padding: 25px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .fitness-programs-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-table {
        font-size: 0.9rem;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .challenge-header h1 {
        font-size: 1.5rem;
    }
    
    .btn-join {
        padding: 15px 40px;
        font-size: 1.1rem;
    }
    
    .submission-form-container {
        padding: 20px;
    }
}