/* 
 * DARIA SUMMARY STYLES
 * This file contains two sets of styles:
 * 1. Styles for standalone summary pages (.summary-page)
 * 2. Styles for embedded summaries in the quiz app (.quiz-summary)
 */

/* ===== STANDALONE SUMMARY PAGE STYLES ===== */
.summary-page {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.summary-page h1,
.summary-page h2,
.summary-page h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.summary-page h1 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
}

.summary-page h2 {
    font-size: 1.8em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.summary-page h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
}

.summary-page p {
    margin-bottom: 16px;
}

.summary-page table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.summary-page th,
.summary-page td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.summary-page th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.summary-page tr:last-child td {
    border-bottom: none;
}

.summary-page tr:nth-child(even) {
    background-color: #f9f9f9;
}

.summary-page tr:nth-child(odd) {
    background-color: #ffffff;
}

@media screen and (max-width: 768px) {
    .summary-page table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .summary-page th,
    .summary-page td {
        padding: 8px;
        font-size: 0.9em;
    }
}

.summary-page .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.summary-page .text-center {
    text-align: center;
}

.summary-page .highlight {
    font-weight: bold;
    color: #2c3e50;
}

.summary-page ul,
.summary-page ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.summary-page ul {
    list-style-type: disc;
}

.summary-page ol {
    list-style-type: decimal;
}

.summary-page .section {
    margin-bottom: 60px;
}

/* Enhanced styles for standalone summary pages */
.summary-page {
    font-family: 'Arial', sans-serif;
    color: #34495e;
    line-height: 1.7;
    background-color: #f9f9f9;
}

.summary-page .container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.summary-page h1 {
    font-size: 2.5rem;
    color: #182947;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.summary-page h2 {
    font-size: 2rem;
    color: #006666;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 500;
}

.summary-page h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

.summary-page p {
    font-size: 1.1rem;
    color: #555555;
}

.summary-page .section {
    margin-bottom: 60px;
}

/* DARIA Header styles */
.summary-page .daria-header {
    background-color: #182947;
    padding: 20px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.summary-page .logo-container {
    flex: 0 0 auto;
    margin-right: 20px;
}

.summary-page .daria-logo {
    height: 60px;
    width: auto;
}

.summary-page .white-heading {
    color: #ffffff;
    margin: 0;
    flex: 1;
    text-align: left;
    font-size: 2.2em;
    font-weight: 600;
}

/* Print styles */
@media print {
    .summary-page {
        background-color: #fff;
        color: #000;
    }

    .summary-page .container {
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .summary-page a {
        color: #000 !important;
        text-decoration: none !important;
    }
}

/* ===== EMBEDDED QUIZ SUMMARY STYLES ===== */
/* These styles are prefixed with .quiz-summary to avoid conflicts */

.quiz-summary {
    font-size: 0.95rem;
    line-height: 1.5;
    color: inherit;
}

.quiz-summary h1,
.quiz-summary h2,
.quiz-summary h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: inherit;
}

.quiz-summary h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.quiz-summary h2 {
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.quiz-summary h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #006666;
    padding-bottom: 0.3rem;
    border-bottom: 1px dashed rgba(0, 102, 102, 0.2);
    display: inline-block;
}

.quiz-summary p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.quiz-summary table {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.quiz-summary th,
.quiz-summary td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
}

.quiz-summary th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.quiz-summary tr:last-child td {
    border-bottom: none;
}

.quiz-summary ul,
.quiz-summary ol {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.quiz-summary li {
    margin-bottom: 0.5rem;
}

.quiz-summary .section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

/* Hide the DARIA header in the embedded summary */
.quiz-summary .daria-header {
    display: none;
}

/* Make images responsive */
.quiz-summary img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

/* Responsive adjustments for small screens */
@media (max-width: 640px) {
    .quiz-summary {
        font-size: 0.9rem;
    }
    
    .quiz-summary h1 {
        font-size: 1.3rem;
    }
    
    .quiz-summary h2 {
        font-size: 1.2rem;
    }
    
    .quiz-summary h3 {
        font-size: 1rem;
    }
    
    .quiz-summary table {
        font-size: 0.8rem;
    }
}