/**
 * Frontend CSS for Checkout Friction Analyzer
 * 
 * Styles for the frontend forms, results display, and interactive elements
 * 
 * @package WdmCheckoutFriction
 * @version 1.0.0
 */

/* ==========================================================================
   CHECKOUT FRICTION ANALYZER FORM
   ========================================================================== */

.wdm-checkout-friction-analyzer {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wdm-friction-container {
    padding: 40px 20px;
}

/* Hero Section */
.wdm-friction-hero {
    text-align: center;
    margin-bottom: 50px;
}

.wdm-friction-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.wdm-friction-description {
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.wdm-friction-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.wdm-stat {
    text-align: center;
}

.wdm-stat-number {
    display: block;
    font-weight: 700;
    color: #2563eb;
}

.wdm-stat-label {
    color: #666;
    margin-top: 5px;
}

/* Form Styles */
.wdm-friction-form-container {
    max-width: 600px;
    margin: 0 auto 60px;
    padding: 40px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.wdm-friction-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.wdm-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wdm-form-label {
    font-weight: 600;
    color: #374151;
}

.wdm-form-input,
.wdm-form-select {
    padding: 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.wdm-form-input:focus,
.wdm-form-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wdm-friction-submit {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wdm-friction-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.wdm-friction-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wdm-spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.wdm-spinner-path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

/* Benefits Section */
.wdm-friction-benefits {
    margin-bottom: 60px;
}

.wdm-friction-benefits h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.wdm-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.wdm-benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.wdm-benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.wdm-benefit-item h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
}

.wdm-benefit-item p {
    color: #666;
    line-height: 1.6;
}

/* Social Proof */
.wdm-friction-social-proof {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 60px;
    text-align: center;
}

.wdm-social-proof-content h3 {
    margin-bottom: 30px;
}

.wdm-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.wdm-testimonial p {
    font-style: italic;
    margin-bottom: 10px;
}

.wdm-testimonial-author {
    font-weight: 600;
    opacity: 0.9;
}

/* FAQ Section */
.wdm-friction-faq {
    margin-bottom: 60px;
}

.wdm-friction-faq h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.wdm-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.wdm-faq-item {
    padding: 25px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.wdm-faq-item h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
}

.wdm-faq-item p {
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   RESULTS DISPLAY
   ========================================================================== */

.wdm-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wdm-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.wdm-results-header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.wdm-results-subtitle {
    color: #666;
    margin-bottom: 30px;
}

/* Overall Score Section */
.wdm-overall-score-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.wdm-score-display {
    text-align: center;
}

.wdm-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 20px;
}

.wdm-score-circle.excellent { background: linear-gradient(135deg, #10b981, #059669); }
.wdm-score-circle.good { background: linear-gradient(135deg, #f59e0b, #d97706); }
.wdm-score-circle.poor { background: linear-gradient(135deg, #ef4444, #dc2626); }

.wdm-score-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.wdm-score-label {
    opacity: 0.9;
}

.wdm-score-grade {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
}

.wdm-grade-display {
    text-align: center;
}

.wdm-grade {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 10px;
}

.wdm-grade-description {
    color: #666;
    line-height: 1.4;
}

.wdm-score-summary {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Revenue Impact */
.wdm-revenue-impact {
    margin-bottom: 40px;
}

.wdm-revenue-impact h3 {
    margin-bottom: 20px;
    color: #1a1a1a;
}

.wdm-revenue-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.wdm-revenue-stat {
    text-align: center;
    padding: 20px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.wdm-stat-label {
    display: block;
    color: #666;
    margin-bottom: 5px;
}

.wdm-stat-value {
    display: block;
    font-weight: 700;
    color: #dc2626;
}

/* Category Breakdown */
.wdm-category-breakdown {
    margin-bottom: 40px;
}

.wdm-category-breakdown h3 {
    margin-bottom: 20px;
    color: #1a1a1a;
}

.wdm-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.wdm-category-card {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.wdm-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wdm-category-name {
    font-weight: 600;
    color: #1a1a1a;
}

.wdm-category-score {
    display: flex;
    align-items: center;
    gap: 5px;
}

.wdm-score {
    font-weight: 700;
    color: #2563eb;
}

.wdm-weight {
    color: #666;
}

.wdm-category-progress {
    margin-bottom: 15px;
}

.wdm-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.wdm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #f59e0b, #10b981);
    transition: width 0.3s ease;
}

.wdm-progress-fill.excellent { background: #10b981; }
.wdm-progress-fill.good { background: #f59e0b; }
.wdm-progress-fill.poor { background: #dc2626; }

.wdm-category-issues {
    margin-bottom: 15px;
}

.wdm-category-issues h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.wdm-category-issues ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wdm-category-issues li {
    padding: 5px 0;
    color: #666;
}

.wdm-category-issues li:before {
    content: "•";
    color: #dc2626;
    font-weight: bold;
    margin-right: 8px;
}

.wdm-category-benchmark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 4px;
}

.wdm-benchmark-label {
    color: #666;
}

.wdm-benchmark-score {
    font-weight: 600;
    color: #1a1a1a;
}

/* Critical Issues */
.wdm-critical-issues {
    margin-bottom: 40px;
}

.wdm-critical-issues h2 {
    margin-bottom: 20px;
    color: #1a1a1a;
}

.wdm-issues-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wdm-issue-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.wdm-issue-number {
    width: 40px;
    height: 40px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.wdm-issue-content h4 {
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.wdm-issue-impact,
.wdm-issue-recommendation {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.4;
}

.wdm-issue-impact strong,
.wdm-issue-recommendation strong {
    color: #1a1a1a;
}

/* Recommendations */
.wdm-recommendations {
    margin-bottom: 40px;
}

.wdm-recommendations h2 {
    margin-bottom: 20px;
    color: #1a1a1a;
}

.wdm-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.wdm-priority-group {
    padding: 25px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.wdm-priority-group h3 {
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.wdm-priority-timeline {
    display: inline-block;
    padding: 4px 12px;
    background: #2563eb;
    color: white;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.wdm-recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wdm-recommendations-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #666;
    line-height: 1.4;
}

.wdm-recommendations-list li:last-child {
    border-bottom: none;
}

.wdm-recommendations-list li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    margin-right: 10px;
}

/* Action Buttons */
.wdm-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.wdm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wdm-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.wdm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.wdm-btn-secondary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.wdm-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.wdm-btn-outline {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.wdm-btn-outline:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

/* Social Proof */
.wdm-social-proof {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
}

.wdm-social-proof h3 {
    margin-bottom: 30px;
}

.wdm-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.wdm-testimonial p {
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.6;
}

.wdm-testimonial cite {
    font-weight: 600;
    opacity: 0.9;
}

/* No Results State */
.wdm-no-results {
    text-align: center;
    padding: 60px 20px;
}

.wdm-no-results-icon {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

.wdm-no-results h2 {
    color: #1a1a1a;
    margin-bottom: 15px;
}

.wdm-no-results p {
    color: #666;
    margin-bottom: 20px;
}

.wdm-no-results ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 30px;
    color: #666;
}

.wdm-no-results-actions {
    margin-top: 30px;
}

/* ==========================================================================
   INTERACTIVE QUIZ
   ========================================================================== */

.wdm-interactive-quiz {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 40px;
}

.wdm-quiz-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    text-align: center;
}

.wdm-quiz-header h3 {
    margin: 0 0 10px 0;
}

.wdm-quiz-header p {
    margin: 0;
    opacity: 0.9;
}

.wdm-quiz-progress {
    background: #f8fafc;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
}

.wdm-quiz-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.wdm-quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.wdm-quiz-progress-text {
    text-align: center;
    font-weight: 600;
    color: #374151;
}

.wdm-quiz-form {
    padding: 30px;
}

.wdm-quiz-section {
    display: none;
}

.wdm-quiz-section:first-child {
    display: block;
}

.wdm-quiz-section-header {
    margin-bottom: 30px;
    text-align: center;
}

.wdm-quiz-section-header h4 {
    color: #1a1a1a;
    margin-bottom: 10px;
}

.wdm-quiz-section-header p {
    color: #666;
    line-height: 1.6;
}

.wdm-quiz-question {
    margin-bottom: 25px;
}

.wdm-quiz-question-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.wdm-required {
    color: #dc2626;
}

.wdm-quiz-input,
.wdm-quiz-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.wdm-quiz-input:focus,
.wdm-quiz-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wdm-quiz-radio-group,
.wdm-quiz-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wdm-quiz-radio-label,
.wdm-quiz-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wdm-quiz-radio-label:hover,
.wdm-quiz-checkbox-label:hover {
    border-color: #667eea;
    background: #f8fafc;
}

.wdm-quiz-radio-label input:checked + .wdm-quiz-radio-text,
.wdm-quiz-checkbox-label input:checked + .wdm-quiz-checkbox-text {
    color: #667eea;
    font-weight: 600;
}

.wdm-quiz-radio-text,
.wdm-quiz-checkbox-text {
    flex: 1;
    color: #374151;
}

.wdm-quiz-section-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.wdm-quiz-prev {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wdm-quiz-prev:hover {
    background: #4b5563;
}

.wdm-quiz-next,
.wdm-quiz-complete {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wdm-quiz-next:hover,
.wdm-quiz-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.wdm-quiz-summary {
    padding: 30px;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 20px;
}

.wdm-quiz-summary-content {
    margin-bottom: 20px;
}

.wdm-quiz-summary-content ul {
    list-style: none;
    padding: 0;
}

.wdm-quiz-summary-content li {
    margin-bottom: 15px;
}

.wdm-quiz-summary-content strong {
    color: #1a1a1a;
}

.wdm-quiz-edit {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
}

.wdm-quiz-continue {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .wdm-friction-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .wdm-friction-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .wdm-score-display {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wdm-impact-numbers {
        grid-template-columns: 1fr;
    }
    
    .wdm-benefits-grid,
    .wdm-faq-grid {
        grid-template-columns: 1fr;
    }
    
    .wdm-recommendations-tabs {
        flex-direction: column;
    }
    
    .wdm-friction-form-container {
        padding: 30px 20px;
    }
    
    .wdm-overall-score-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wdm-revenue-stats {
        grid-template-columns: 1fr;
    }
    
    .wdm-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .wdm-recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .wdm-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .wdm-testimonials {
        grid-template-columns: 1fr;
    }
    
    .wdm-issue-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .wdm-quiz-section-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .wdm-quiz-radio-label,
    .wdm-quiz-checkbox-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    /* Mobile Navigation Fixes */
    .wdm-results-tabs .wdm-tab-buttons {
        flex-direction: column;
        border-bottom: none;
        border-right: 2px solid #e5e7eb;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .wdm-results-tabs .wdm-tab-btn {
        border-bottom: none;
        border-right: 3px solid transparent;
        text-align: left;
        padding: 12px 15px;
        width: 100%;
    }
    
    .wdm-results-tabs .wdm-tab-btn.active {
        border-right-color: #2563eb;
    }
    
    /* Mobile Progress Bar Fixes */
    .wdm-progress-steps {
        flex-direction: column;
        gap: 15px;
        margin: 20px 0;
    }
    
    .wdm-progress-steps::before {
        display: none;
    }
    
    .wdm-progress-step {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .wdm-step-icon {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .wdm-step-text {
        text-align: left;
        flex: 1;
    }
    
    /* Mobile Card Fixes */
    .wdm-category-card,
    .wdm-recommendation-item,
    .wdm-issue-item {
        margin: 0 10px 20px 10px;
        width: calc(100% - 20px);
        box-sizing: border-box;
    }
    
    .wdm-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wdm-category-score {
        align-self: flex-end;
    }
    
    /* Mobile Form Fixes */
    .wdm-form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .wdm-form-group {
        width: 100%;
    }
    
    /* Mobile Container Fixes */
    .wdm-container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .wdm-results-container {
        padding: 20px 15px;
    }
    
    /* Mobile Button Fixes */
    .wdm-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .wdm-action-buttons .wdm-btn {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .wdm-friction-container {
        padding: 20px 10px;
    }
    
    .wdm-friction-form-container {
        padding: 20px 15px;
    }
    
    .wdm-score-circle {
        width: 120px;
        height: 120px;
    }
    
    .wdm-score-number {
        font-size: 2rem;
    }
    
    .wdm-grade {
        font-size: 2.5rem;
    }
    
    .wdm-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Extra Small Mobile Fixes */
    .wdm-progress-steps {
        margin: 15px 0;
    }
    
    .wdm-progress-step {
        gap: 10px;
    }
    
    .wdm-step-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .wdm-step-text {
        font-size: 14px;
    }
    
    .wdm-category-card,
    .wdm-recommendation-item,
    .wdm-issue-item {
        margin: 0 5px 15px 5px;
        width: calc(100% - 10px);
        padding: 15px;
    }
    
    .wdm-results-header h1 {
        font-size: 1.8rem;
    }
    
    .wdm-results-header h2 {
        font-size: 1.5rem;
    }
    
    .wdm-overall-score-section {
        gap: 20px;
    }
    
    .wdm-score-display {
        gap: 20px;
    }
}

/* Error and Success Messages */
.wdm-error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.wdm-success-message {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

/* Progress Steps */
.wdm-progress-steps {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.wdm-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.wdm-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.wdm-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.wdm-progress-step.active .wdm-step-icon {
    background: #2563eb;
    color: white;
}

.wdm-progress-step.completed .wdm-step-icon {
    background: #10b981;
    color: white;
}

.wdm-step-text {
    text-align: center;
    color: #6b7280;
    transition: color 0.3s ease;
    }

.wdm-progress-step.active .wdm-step-text {
    color: #2563eb;
    font-weight: 600;
}

.wdm-progress-step.completed .wdm-step-text {
    color: #10b981;
    font-weight: 600;
}

/* Features Grid */
.wdm-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.wdm-feature {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wdm-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

.wdm-feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.wdm-feature h3 {
    margin-bottom: 15px;
    color: #1a1a1a;
}

.wdm-feature p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Results Tabs */
.wdm-results-tabs {
    margin-top: 40px;
}

.wdm-tab-buttons {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 30px;
}

.wdm-tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.wdm-tab-btn:hover {
    color: #2563eb;
    background: #f8fafc;
}

.wdm-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.wdm-tab-content {
    min-height: 300px;
}

.wdm-tab-panel {
    display: none;
}

.wdm-tab-panel.active {
    display: block;
}

/* Tab Panel Content */
.wdm-summary-content,
.wdm-categories-content,
.wdm-revenue-content,
.wdm-recommendations-content {
    padding: 20px 0;
}

.wdm-critical-issues {
    margin-bottom: 30px;
}

.wdm-critical-issues h3 {
    margin-bottom: 20px;
    color: #1a1a1a;
}

.wdm-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.wdm-stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.wdm-stat-title {
    color: #6b7280;
    margin-bottom: 10px;
}

.wdm-stat-value {
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 5px;
}

.wdm-stat-subtitle {
    color: #9ca3af;
}

/* Categories List */
#categories-list {
    display: grid;
    gap: 15px;
}

.wdm-category-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #2563eb;
}

.wdm-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wdm-category-name {
    font-weight: 600;
    color: #1a1a1a;
}

.wdm-category-score {
    background: #2563eb;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.wdm-category-issues {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wdm-category-issues li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
}

.wdm-category-issues li:last-child {
    border-bottom: none;
}

/* Recommendations List */
#recommendations-list {
    list-style: none;
    padding: 0;
}

.wdm-recommendation-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    border-left: 4px solid #10b981;
}

.wdm-recommendation-item strong {
    color: #10b981;
    display: block;
    margin-bottom: 8px;
}

/* Results Actions */
.wdm-results-actions {
    margin-top: 40px;
    text-align: center;
}

.wdm-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Debug message styling */
.wdm-debug-message {
    background: #e5f3ff;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: #2563eb;
    border: 1px solid #b3d9ff;
} 