/* ============================================
   RESULTS PAGE STYLES
   ============================================ */

/* Container and Layout */
.results-main {
    min-height: 80vh;
    padding: 40px 20px;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading and Error States */
.loading-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
}

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

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

.error-state {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.error-state ul {
    text-align: left;
    max-width: 400px;
    margin: 20px auto;
}

/* Results Header */
.results-header {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.results-header h1 {
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 30px;
}

/* Scores Display */
.scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.score {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.score.red {
    border-color: #e74c3c;
    background: #fee;
}

.score.amber {
    border-color: #f39c12;
    background: #fef5e7;
}

.score.green {
    border-color: #27ae60;
    background: #eafaf1;
}

.score label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.score span {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.badge.red {
    background: #e74c3c;
    color: white;
}

.badge.amber {
    background: #f39c12;
    color: white;
}

.badge.green {
    background: #27ae60;
    color: white;
}

.constraint-label {
    font-size: 1.2em;
    text-align: center;
    margin-top: 20px;
    color: #34495e;
}

.constraint-label strong {
    color: #e74c3c;
}

/* Content Sections */
.results-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.results-content section {
    margin-bottom: 50px;
}

.results-content section:last-child {
    margin-bottom: 0;
}

.results-content h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.results-content h3 {
    color: #34495e;
    font-size: 1.3em;
    margin: 20px 0 10px;
}

.results-content p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.results-content strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Feelings Check Box */
.feelings-check {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.feelings-check ul {
    margin: 15px 0;
    padding-left: 25px;
}

.feelings-check li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Good News Callout */
.good-news {
    background: #eafaf1;
    border-left: 4px solid #27ae60;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    font-weight: 500;
}

/* Two Column Layout */
.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.column {
    padding: 25px;
    border-radius: 8px;
}

.column.bad {
    background: #fee;
    border: 2px solid #e74c3c;
}

.column.good {
    background: #eafaf1;
    border: 2px solid #27ae60;
}

.column h3 {
    margin-top: 0;
    font-size: 1.1em;
}

.column ul {
    margin: 15px 0;
    padding-left: 25px;
}

.column li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Exercise Box */
.exercise-box {
    background: #e8f4f8;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
}

.exercise-box h3 {
    color: #2c3e50;
    margin-top: 0;
}

.exercise-box .example {
    font-style: italic;
    color: #7f8c8d;
    margin-top: 15px;
}

/* CTA Grid */
.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.cta-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cta-card:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.cta-card.highlight {
    border-color: #3498db;
    background: #f0f8ff;
    border-width: 3px;
}

.cta-card h3 {
    color: #2c3e50;
    font-size: 1.2em;
    margin: 0 0 15px 0;
}

.cta-card p {
    flex-grow: 1;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.cta-card .price {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
    margin: 10px 0;
}

.cta-card .spots {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
    margin: 10px 0;
}

.cta-card .reassurance {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
}

/* Questions Section */
.questions {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 40px;
}

.questions a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.questions a:hover {
    text-decoration: underline;
}

/* Footer */
.results-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: white;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.footer-section p {
    line-height: 1.6;
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer-section a {
    color: #ffffff;  /* NOW WHITE */
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Header Nav */
.results-header-nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
    margin-bottom: 40px;
}

.results-header-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    color: #2c3e50;
    font-size: 1.5em;
    margin: 0;
}

.results-header-nav nav a {
    color: #7f8c8d;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.results-header-nav nav a:hover {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .results-header {
        padding: 25px;
    }
    
    .results-content {
        padding: 25px;
    }
    
    .results-header h1 {
        font-size: 1.5em;
    }
    
    .scores {
        grid-template-columns: 1fr;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
    }
    
    .two-columns {
        grid-template-columns: 1fr;
    }
    
    .results-header-nav .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .results-header-nav nav {
        display: flex;
        gap: 15px;
    }
    
    .results-header-nav nav a {
        margin-left: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .results-header-nav,
    .results-footer,
    .cta-grid,
    .btn,
    .back-to-top {
        display: none;
    }
    
    .results-main {
        background: white;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.5);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}
