/**
 * Dosha Quiz Result Styles
 * Color Theme: Dark Green & Soothing Purple
 */

:root {
    --primary-green: #2d5f3f;
    --primary-green-hover: #3d7f5f;
    --primary-green-dark: #1d4f2f;
    --accent-purple: #7b68ee;
    --accent-purple-light: #9b88ff;
    --accent-purple-dark: #5b48ce;
}

#dosha-results-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.dosha-results-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
}

.results-header {
    text-align: center;
    font-size: 28px;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-weight: 400;
}

/* Results Content - Two Column Layout */
.results-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Left Column - Dominant Dosha Display */
.dominant-dosha-display {
    flex: 0 0 auto;
    width: 350px;
    text-align: center;
}

.greeting-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.greeting-text span {
    font-weight: 600;
    color: #2c3e50;
}

.dominant-dosha-display h3 {
    font-size: 20px;
    color: #7f8c8d;
    font-weight: 400;
    margin-bottom: 30px;
}

.dosha-icon-container {
    margin: 30px 0;
}

.dosha-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.dominant-dosha-name {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    margin: 20px 0;
    letter-spacing: 2px;
}

/* Right Column - Dosha Breakdown */
.dosha-breakdown {
    flex: 1;
    background: #f8f4ed;
    padding: 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dosha-item {
    margin-bottom: 35px;
}

.dosha-item:last-child {
    margin-bottom: 0;
}

.dosha-item .dosha-name {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.dosha-item .dosha-description {
    font-size: 15px;
    color: #666;
    margin-bottom: 15px;
}

/* Progress Bar */
.progress-bar-container {
    background: #e0e0e0;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    transition: width 1s ease-out;
    width: 0;
    position: relative;
}

.percentage-text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Dosha-specific colors - Green & Purple theme */
.kapha-bar {
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-hover) 100%);
}

.vata-bar {
    background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-purple-light) 100%);
}

.pitta-bar {
    background: linear-gradient(90deg, #8b7ab8 0%, #a89bd1 100%);
}

/* Results Footer */
.results-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
    width: 100%;
}

.btn-save-pdf,
.btn-retake-quiz {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-pdf {
    background: var(--primary-green);
    color: #fff;
    border: 2px solid var(--primary-green);
}

.btn-save-pdf:hover {
    background: var(--primary-green-hover);
    border-color: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 95, 63, 0.3);
}

.btn-retake-quiz {
    background: #fff;
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
}

.btn-retake-quiz:hover {
    background: var(--accent-purple);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 104, 238, 0.3);
}

/* Responsive Design */
@media (max-width: 968px) {
    .results-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .dominant-dosha-display {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dosha-results-container {
        padding: 30px 20px;
    }
    
    .results-header {
        font-size: 24px;
    }
    
    .results-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .dominant-dosha-display {
        width: 100%;
    }
    
    .dosha-icon {
        width: 150px;
        height: 150px;
    }
    
    .dominant-dosha-name {
        font-size: 36px;
    }
    
    .dosha-breakdown {
        padding: 25px 20px;
    }
    
    .dosha-item .dosha-name {
        font-size: 20px;
    }
    
    .progress-bar-container {
        height: 35px;
    }
    
    .percentage-text {
        font-size: 14px;
    }
    
    .results-footer {
        flex-direction: column;
        padding-top: 20px;
    }
    
    .btn-save-pdf,
    .btn-retake-quiz {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dosha-results-container {
        padding: 25px 15px;
    }
    
    .results-header {
        font-size: 20px;
    }
    
    .results-content {
        flex-direction: column;
    }
    
    .dominant-dosha-display {
        width: 100%;
    }
    
    .dosha-icon {
        width: 120px;
        height: 120px;
    }
    
    .dominant-dosha-name {
        font-size: 28px;
    }
    
    .dosha-breakdown {
        padding: 20px 15px;
    }
    
    .dosha-item .dosha-name {
        font-size: 18px;
    }
    
    .dosha-item .dosha-description {
        font-size: 14px;
    }
    
    .progress-bar-container {
        height: 30px;
    }
    
    .btn-save-pdf,
    .btn-retake-quiz {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* Print Styles for PDF */
@media print {
    body * {
        visibility: hidden;
    }
    
    #dosha-results-wrapper,
    #dosha-results-wrapper * {
        visibility: visible;
    }
    
    #dosha-results-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .results-actions {
        display: none !important;
    }
    
    .dosha-results-container {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .progress-bar {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* Animation */
@keyframes progressAnimation {
    from {
        width: 0;
    }
}

.progress-bar {
    animation: progressAnimation 1s ease-out;
}

