/* WordPress Climbing Assessment Styles */

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

.climbing-assessment-container {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ff8c00, #ff6b35, #ff4500);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.climbing-header {
    text-align: center;
    background: transparent;
    color: white;
    padding: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.climbing-header h1 {
    color: white;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.climbing-header p {
    color: white;
    font-size: 1.1em;
    opacity: 0.9;
}

.logo-container {
    margin-bottom: 20px;
    text-align: center;
    padding: 20px 30px 10px 30px;
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.flow-logo {
    max-height: 60px;
    max-width: 150px;
    height: auto;
    width: auto;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.flow-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255,255,255,0.7));
}

/* Authentication Styles */
.auth-section {
    background: rgba(255, 255, 255, 0.95);
    margin: 20px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.auth-tab {
    background: none;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.auth-tab.active {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

.auth-tab:hover {
    color: #ff6b35;
}

.auth-panel {
    display: none;
    padding: 20px 0;
}

.auth-panel.active {
    display: block;
}

.auth-panel h3 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.auth-btn {
    background: #ff6b35;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.auth-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.user-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 4px solid #ff6b35;
}

.user-info p {
    margin: 0;
    color: #333;
}

.user-info a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

.user-info a:hover {
    text-decoration: underline;
}

/* Wizard Styles */
.wizard-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 20px;
    overflow: hidden;
}

.wizard-progress {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ff8c00);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #333;
}

.wizard-steps {
    padding: 30px;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.step-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid #ff6b35;
    padding-bottom: 10px;
}

.question-group {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #ff6b35;
}

.question {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.rating-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-option {
    flex: 1;
    min-width: 120px;
}

.rating-option input[type="radio"] {
    display: none;
}

.rating-option label {
    display: block;
    padding: 12px 8px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.rating-option input[type="radio"]:checked + label {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: scale(1.05);
}

.rating-option label:hover {
    border-color: #ff6b35;
    background: #fff5f0;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.wizard-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wizard-btn-primary {
    background: #ff6b35;
    color: white;
}

.wizard-btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.wizard-btn-secondary {
    background: #6c757d;
    color: white;
}

.wizard-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.wizard-btn-success {
    background: #27ae60;
    color: white;
}

.wizard-btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.wizard-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Results Styles */
.results-container {
    background: rgba(255, 255, 255, 0.95);
    margin: 20px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    color: #333;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.score-display {
    background: linear-gradient(135deg, #ff6b35, #ff8c00);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.score-number {
    font-size: 4em;
    font-weight: bold;
    margin-bottom: 10px;
}

.score-label {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.score-max {
    font-size: 1.5em;
    opacity: 0.8;
}

.category-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-score {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #ff6b35;
}

.category-score h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.category-score .score {
    font-size: 2em;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 5px;
}

.category-score .max-score {
    color: #666;
    margin-bottom: 15px;
}

.progress-bar-small {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ff8c00);
    transition: width 0.5s ease;
}

.recommendations {
    background: #e8f4fd;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    margin-bottom: 30px;
}

.recommendations h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.recommendations p {
    color: #34495e;
    line-height: 1.6;
}

.training-plan {
    background: transparent;
    padding: 0;
    border: none;
}

.training-plan h3 {
    display: none; /* Hide the old title since we have a new professional header */
}

.training-plan-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

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

.plan-section h5 {
    color: #ff6b35;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.plan-section ul {
    margin-left: 20px;
    color: #555;
}

.plan-section li {
    margin-bottom: 5px;
}

.save-plan-btn {
    background: #27ae60;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.save-plan-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Dashboard Styles */
.climbing-dashboard {
    background: rgba(255, 255, 255, 0.95);
    margin: 20px;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.dashboard-header h1 {
    color: #333;
    font-size: 2.5em;
}

.dashboard-content {
    display: grid;
    gap: 30px;
}

.dashboard-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #ff6b35;
}

.dashboard-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 10px;
}

.assessments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.assessment-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #ff6b35;
    transition: transform 0.3s ease;
}

.assessment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.assessment-card h3 {
    color: #333;
    margin-bottom: 15px;
}

.assessment-card p {
    margin-bottom: 10px;
    color: #666;
}

.assessment-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.view-assessment,
.view-training-plan {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-assessment {
    background: #3498db;
    color: white;
}

.view-assessment:hover {
    background: #2980b9;
}

.view-training-plan {
    background: #27ae60;
    color: white;
}

.view-training-plan:hover {
    background: #229954;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    margin: 20px;
    border-radius: 15px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Messages */
.climbing-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

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

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

.climbing-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .climbing-assessment-container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .climbing-header {
        padding: 20px;
    }
    
    .climbing-header h1 {
        font-size: 2em;
    }
    
    .rating-group {
        flex-direction: column;
    }
    
    .rating-option {
        min-width: auto;
    }
    
    .wizard-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .wizard-btn {
        width: 100%;
    }
    
    .category-scores {
        grid-template-columns: 1fr;
    }
    
    .assessments-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .assessment-actions {
        flex-direction: column;
    }
}

/* Professional Training Plan Styles */
.program-header {
    background: linear-gradient(135deg, #ff6b35, #ff8c00);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.program-title h3 {
    margin: 0 0 15px 0;
    font-size: 2em;
    font-weight: 700;
}

.program-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    backdrop-filter: blur(10px);
}

.badge.level-beginner { background: rgba(76, 175, 80, 0.8); }
.badge.level-intermediate { background: rgba(255, 152, 0, 0.8); }
.badge.level-advanced { background: rgba(244, 67, 54, 0.8); }

.weekly-program {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.weekly-program h4 {
    color: #ff6b35;
    font-size: 1.5em;
    margin-bottom: 25px;
    text-align: center;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.training-day {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.training-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #ff6b35;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.day-header h5 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.focus-tag {
    background: #ff6b35;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
}

.time-blocks {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.time-block {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #ddd;
    transition: all 0.2s ease;
}

.time-block:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.time-block.warmup { border-left-color: #ff9800; }
.time-block.main { border-left-color: #ff6b35; }
.time-block.accessory { border-left-color: #9c27b0; }
.time-block.cooldown { border-left-color: #4caf50; }

.block-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.block-icon {
    font-size: 1.2em;
}

.block-title {
    font-weight: 600;
    color: #333;
    flex: 1;
}

.block-time {
    background: #e9ecef;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.time-block p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.drills-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.drills-section h4 {
    color: #ff6b35;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.drills-intro {
    color: #666;
    margin-bottom: 25px;
    font-style: italic;
}

.focus-areas {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.focus-areas h4 {
    color: #ff6b35;
    font-size: 1.5em;
    margin-bottom: 25px;
    text-align: center;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.focus-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.focus-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #ff6b35;
}

.focus-card h6 {
    color: #ff6b35;
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.focus-card p {
    margin: 0;
    color: #666;
    line-height: 1.4;
}

/* Legacy plan-section for backward compatibility */
.plan-section {
    background: rgba(255, 255, 255, 0.95);
    margin: 20px 0;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left: 5px solid #ff6b35;
}

.plan-section h5 {
    color: #ff6b35;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 600;
}

.plan-section h6 {
    color: #333;
    font-size: 1.2em;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.session-plan {
    background: rgba(255, 107, 53, 0.1);
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
}

.session-plan h6 {
    color: #ff6b35;
    margin-bottom: 10px;
}

.drill-category {
    background: rgba(255, 140, 0, 0.1);
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border-left: 4px solid #ff8c00;
}

.drill-category h6 {
    color: #ff8c00;
    margin-bottom: 15px;
}

.drill-category ul {
    list-style: none;
    padding: 0;
}

.drill-category li {
    background: white;
    margin: 10px 0;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 3px solid #ff8c00;
}

.drill-category strong {
    color: #ff6b35;
    font-weight: 600;
}

.plan-section ul {
    list-style: none;
    padding: 0;
}

.plan-section li {
    background: white;
    margin: 10px 0;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 3px solid #ff6b35;
}

.plan-section strong {
    color: #ff6b35;
    font-weight: 600;
}

@media (max-width: 768px) {
    .days-grid {
        grid-template-columns: 1fr;
    }
    
    .program-badges {
        justify-content: center;
    }
    
    .day-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .block-header {
        flex-wrap: wrap;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .climbing-header h1 {
        font-size: 1.8em;
    }
    
    .wizard-steps {
        padding: 20px;
    }
    
    .question-group {
        padding: 15px;
    }
    
    .plan-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .session-plan, .drill-category {
        padding: 15px;
    }
    
    .program-header {
        padding: 20px;
    }
    
    .program-title h3 {
        font-size: 1.5em;
    }
    
    .weekly-program, .drills-section, .focus-areas {
        padding: 20px;
    }
    
    .training-day {
        padding: 15px;
    }
    
    .time-block {
        padding: 12px;
    }
}
