/**
 * Quiz Results Styles
 * Un regard intérieur
 */

body.results-page {
    background: linear-gradient(135deg, #F8F9FA 0%, #E8ECEF 100%);
    min-height: 100vh;
}

.results-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Header */
.results-header {
    padding: 1.5rem 0;
    text-align: center;
}

.results-header .quiz-logo img {
    height: 40px;
}

/* Main Result */
.results-main {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.results-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--quiz-primary), var(--profile-color), var(--quiz-secondary));
}

.result-announcement {
    margin-bottom: 1.5rem;
}

.result-label {
    display: block;
    font-size: 0.9rem;
    color: var(--quiz-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.profile-icon {
    font-size: 4rem;
    color: var(--profile-color);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.profile-tagline {
    font-size: 1.1rem;
    color: var(--quiz-text);
    max-width: 400px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

/* Score Breakdown */
.score-breakdown {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--quiz-border);
    text-align: left;
}

.score-breakdown h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--quiz-text);
}

.score-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.score-bar-item {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.score-bar-item.main-profile {
    opacity: 1;
}

.score-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.score-bar-name {
    font-size: 0.875rem;
    color: var(--quiz-text);
}

.score-bar-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--quiz-text-muted);
}

.score-bar-track {
    height: 8px;
    background: #f1f3f5;
    border-radius: 4px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Description Sections */
.results-description {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.description-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--quiz-text);
    margin-bottom: 2rem;
    text-align: justify;
}

.profile-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--quiz-border);
}

.profile-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.profile-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.traits-list {
    margin: 0;
    padding-left: 1.5rem;
}

.traits-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.advice-quote {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(162, 155, 254, 0.05));
    border-left: 4px solid var(--profile-color);
    padding: 1.25rem 1.5rem;
    margin: 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--quiz-text);
    line-height: 1.6;
}

/* Actions */
.results-actions {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-results {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.btn-download {
    background: linear-gradient(135deg, var(--quiz-primary), var(--quiz-secondary));
    color: white;
    border: none;
    width: 100%;
    max-width: 350px;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
    color: white;
}

.share-section {
    margin: 2rem 0;
}

.share-section h4 {
    font-size: 0.9rem;
    color: var(--quiz-text-muted);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.btn-share:hover {
    transform: translateY(-3px);
    color: white;
}

.btn-facebook { background: #1877F2; }
.btn-twitter { background: #000; }
.btn-linkedin { background: #0A66C2; }
.btn-whatsapp { background: #25D366; }
.btn-copy { background: var(--quiz-text-muted); }

.btn-retake {
    font-size: 0.9rem;
}

/* Special Offer Modal */
.special-offer-modal {
    border: none;
    border-radius: 1.5rem;
    overflow: hidden;
}

.special-offer-modal .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    padding: 1rem;
}

.special-offer-modal .modal-body {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.offer-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.offer-title {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.offer-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.offer-countdown {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    min-width: 50px;
}

.countdown-label {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.countdown-separator {
    font-size: 1.5rem;
    font-weight: 700;
    padding-top: 0.5rem;
}

.promo-code-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.promo-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.promo-code {
    font-size: 1.5rem;
    font-weight: 700;
    background: white;
    color: #667eea;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
}

.btn-offer {
    background: white;
    color: #667eea;
    border: none;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 50px;
}

.btn-offer:hover {
    background: #f8f9fa;
    color: #667eea;
    transform: translateY(-2px);
}

/* Offer Banner */
.offer-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #667eea, #764ba2);
    color: white;
    padding: 0.75rem 1rem;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.offer-banner-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.offer-banner-text {
    font-size: 0.9rem;
}

.offer-banner-text code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

.offer-banner-timer {
    font-weight: 600;
}

/* Footer */
.results-footer {
    text-align: center;
    padding: 1rem 0;
    color: var(--quiz-text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 576px) {
    .results-main {
        padding: 2rem 1.5rem;
    }

    .profile-name {
        font-size: 1.75rem;
    }

    .profile-icon {
        font-size: 3rem;
    }

    .results-description {
        padding: 1.5rem;
    }

    .offer-title {
        font-size: 3rem;
    }

    .countdown-value {
        font-size: 1.25rem;
        min-width: 40px;
        padding: 0.375rem 0.5rem;
    }

    .promo-code {
        font-size: 1.25rem;
    }

    .offer-banner-content {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
}
