/* Header Section */
.header-section {
    text-align: center;
    padding: 4rem 2rem 3rem;
    border-bottom: 3px solid var(--border-color);
    background: linear-gradient(
        135deg,
        rgba(155, 175, 135, 0.03),
        rgba(111, 138, 109, 0.02)
    );
    position: relative;
    overflow: hidden;
}

.page-title {
    font-family: "Playfair Display", serif;
    font-size: 4.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.1em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(
        135deg,
        var(--text-primary),
        var(--accent-primary)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-style: italic;
    letter-spacing: 0.05em;
    max-width: 600px;
    margin: 1rem auto 0;
    position: relative;
    z-index: 2;
}

/* Quiz Section - Newspaper Style */
.quiz-section {
    background: var(--newspaper-light);
    color: var(--newspaper-dark);
    padding: 0;
}


.quiz-container {
    max-width: 1200px;
    margin: 0 auto;
    border-left: 3px solid var(--newspaper-dark);
    border-right: 3px solid var(--newspaper-dark);
    border-bottom: 3px solid var(--newspaper-dark);
    min-height: 600px;
}

/* Floating Particles */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(155, 175, 135, 0.5);
    border-radius: 50%;
    animation: floatParticle 20s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(155, 175, 135, 0.6);
}

.particle-1 { width: 8px; height: 8px; top: 20%; left: 10%; animation-duration: 25s; animation-delay: -5s; }
.particle-2 { width: 10px; height: 10px; top: 60%; left: 80%; animation-duration: 30s; animation-delay: -10s; }
.particle-3 { width: 6px; height: 6px; top: 40%; left: 60%; animation-duration: 35s; animation-delay: -15s; }
.particle-4 { width: 9px; height: 9px; top: 80%; left: 30%; animation-duration: 28s; animation-delay: -8s; }
.particle-5 { width: 8px; height: 8px; top: 30%; left: 90%; animation-duration: 32s; animation-delay: -12s; }
.particle-6 { width: 7px; height: 7px; top: 15%; left: 25%; animation-duration: 27s; animation-delay: -3s; }
.particle-7 { width: 9px; height: 9px; top: 45%; left: 15%; animation-duration: 33s; animation-delay: -7s; }
.particle-8 { width: 5px; height: 5px; top: 70%; left: 45%; animation-duration: 29s; animation-delay: -11s; }
.particle-9 { width: 8px; height: 8px; top: 25%; left: 65%; animation-duration: 31s; animation-delay: -4s; }
.particle-10 { width: 6px; height: 6px; top: 55%; left: 85%; animation-duration: 26s; animation-delay: -9s; }
.particle-11 { width: 7px; height: 7px; top: 35%; left: 5%; animation-duration: 34s; animation-delay: -6s; }
.particle-12 { width: 9px; height: 9px; top: 75%; left: 55%; animation-duration: 28s; animation-delay: -13s; }
.particle-13 { width: 5px; height: 5px; top: 10%; left: 40%; animation-duration: 32s; animation-delay: -2s; }
.particle-14 { width: 8px; height: 8px; top: 50%; left: 75%; animation-duration: 30s; animation-delay: -8s; }
.particle-15 { width: 6px; height: 6px; top: 85%; left: 20%; animation-duration: 35s; animation-delay: -14s; }
.particle-16 { width: 7px; height: 7px; top: 5%; left: 70%; animation-duration: 27s; animation-delay: -1s; }
.particle-17 { width: 9px; height: 9px; top: 65%; left: 35%; animation-duration: 29s; animation-delay: -10s; }
.particle-18 { width: 5px; height: 5px; top: 30%; left: 50%; animation-duration: 33s; animation-delay: -5s; }
.particle-19 { width: 8px; height: 8px; top: 90%; left: 60%; animation-duration: 31s; animation-delay: -12s; }
.particle-20 { width: 6px; height: 6px; top: 12%; left: 85%; animation-duration: 26s; animation-delay: -3s; }
.particle-21 { width: 7px; height: 7px; top: 48%; left: 8%; animation-duration: 34s; animation-delay: -7s; }
.particle-22 { width: 9px; height: 9px; top: 78%; left: 42%; animation-duration: 28s; animation-delay: -11s; }
.particle-23 { width: 5px; height: 5px; top: 22%; left: 28%; animation-duration: 32s; animation-delay: -4s; }
.particle-24 { width: 8px; height: 8px; top: 58%; left: 68%; animation-duration: 30s; animation-delay: -9s; }
.particle-25 { width: 6px; height: 6px; top: 38%; left: 95%; animation-duration: 35s; animation-delay: -6s; }

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(20px, -30px) scale(1.2); opacity: 0.8; }
    50% { transform: translate(-15px, -60px) scale(0.8); opacity: 0.6; }
    75% { transform: translate(30px, -90px) scale(1.1); opacity: 0.9; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 3.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .header-section {
        padding: 3rem 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2.8rem;
    }
    
    .page-subtitle {
        font-size: 0.9rem;
    }
    
    .header-section {
        padding: 2rem 1rem 1.5rem;
    }
}

/* Quiz Header */
.quiz-header {
    background: var(--newspaper-light);
    border-bottom: 3px solid var(--newspaper-dark);
    padding: 2.5rem 2rem 2rem;
}

.quiz-title {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--newspaper-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    border-bottom: 2px solid var(--newspaper-dark);
    padding-bottom: 0.5rem;
}

/* Progress Bar */
.progress-section {
    padding: 2rem;
    background: var(--newspaper-light);
    border-bottom: 2px solid var(--newspaper-dark);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(13, 13, 13, 0.1);
    border: 2px solid var(--newspaper-dark);
    margin-bottom: 1rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    width: 30%;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 700;
    color: var(--newspaper-dark);
    text-align: center;
    display: block;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Question Card */
.question-section {
    padding: 3rem 2rem;
    background: var(--newspaper-light);
}

.question-card {
    border: 3px solid var(--newspaper-dark);
    background: var(--newspaper-light);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.question-number {
    font-weight: 700;
    color: var(--accent-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.question-text {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--newspaper-dark);
    margin-bottom: 2rem;
    line-height: 1.4;
    border-bottom: 2px solid var(--newspaper-dark);
    padding-bottom: 1rem;
}

/* Answer Options */
.answer-options {
    margin-bottom: 2rem;
}

.answer-option {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid var(--newspaper-dark);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--newspaper-light);
    position: relative;
}

.answer-option:hover {
    background: rgba(155, 175, 135, 0.1);
    border-color: var(--accent-primary);
}

.answer-option input[type="radio"] {
    display: none;
}

.answer-option input[type="radio"]:checked + .option-text {
    color: var(--accent-primary);
    font-weight: 700;
}

.answer-option input[type="radio"]:checked {
    background: rgba(155, 175, 135, 0.2);
    border-color: var(--accent-primary);
}

.option-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--newspaper-dark);
    flex: 1;
    transition: all 0.3s ease;
}

.option-circle {
    width: 20px;
    height: 20px;
    border: 3px solid var(--newspaper-dark);
    border-radius: 50%;
    margin-left: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.answer-option input[type="radio"]:checked + .option-text + .option-circle {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.answer-option input[type="radio"]:checked + .option-text + .option-circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--newspaper-light);
    border-radius: 50%;
}

/* Navigation Buttons */
.question-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-button {
    background: var(--newspaper-dark);
    color: var(--newspaper-light);
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-button:hover:not(:disabled) {
    background: var(--accent-primary);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Results Section */
.results-section {
    display: none;
    padding: 3rem 2rem;
    background: var(--newspaper-light);
}

.results-section.show {
    display: block;
}

.results-layout {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.results-main {
    flex: 2;
    min-width: 0;
}

.results-sidebar {
    flex: 1;
    min-width: 300px;
}

.results-card {
    border: 3px solid var(--newspaper-dark);
    background: var(--newspaper-light);
    padding: 3rem;
    text-align: center;
}

.results-title {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--newspaper-dark);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 3px solid var(--newspaper-dark);
    padding-bottom: 1rem;
}

/* Compass Visualization */
.compass-container {
    margin: 3rem 0;
    position: relative;
}

.compass-grid {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    position: relative;
    border: 3px solid var(--newspaper-dark);
    background: var(--newspaper-light);
}

.compass-quadrant {
    position: absolute;
    width: 50%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--newspaper-dark);
}

.compass-quadrant.auth-left {
    top: 0;
    left: 0;
    background: rgba(52, 152, 219, 0.1);
}

.compass-quadrant.auth-right {
    top: 0;
    right: 0;
    background: rgba(231, 76, 60, 0.1);
}

.compass-quadrant.lib-left {
    bottom: 0;
    left: 0;
    background: rgba(46, 204, 113, 0.1);
}

.compass-quadrant.lib-right {
    bottom: 0;
    right: 0;
    background: rgba(155, 89, 182, 0.1);
}

.quadrant-label {
    font-weight: 700;
    color: var(--newspaper-dark);
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.2;
}

.compass-center-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.center-line {
    position: absolute;
    background: var(--newspaper-dark);
}

.center-line.horizontal {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.center-line.vertical {
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    transform: translateX(-50%);
}

.compass-point {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border: 3px solid var(--newspaper-dark);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.compass-labels {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.axis-label {
    position: absolute;
    font-weight: 700;
    color: var(--newspaper-dark);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.axis-label.left {
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.axis-label.right {
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.axis-label.top {
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.axis-label.bottom {
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
}

/* Results Summary */
.results-summary {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(13, 13, 13, 0.05);
    border: 2px solid var(--newspaper-dark);
    border-radius: 8px;
}

.quadrant-result {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--newspaper-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.score-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.score-item {
    text-align: center;
}

.score-label {
    display: block;
    font-weight: 600;
    color: var(--newspaper-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

.score-value {
    display: block;
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.retake-button {
    background: var(--newspaper-dark);
    color: var(--newspaper-light);
    border: none;
    padding: 1rem 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px;
}

.retake-button:hover {
    background: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Info Section */
.info-section {
    background: var(--newspaper-light);
    border: 3px solid var(--newspaper-dark);
    padding: 2rem;
    margin-top: 2rem;
}

.info-title {
    font-family: "Playfair Display", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--newspaper-dark);
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--newspaper-dark);
    margin-bottom: 1.5rem;
}

.dimensions-info {
    margin-top: 1.5rem;
}

.dimension {
    margin-bottom: 1.5rem;
}

.dimension h4 {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--newspaper-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dimension p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--newspaper-dark);
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .results-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .results-sidebar {
        min-width: auto;
    }
    
    .compass-grid {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .quiz-container {
        border-left: none;
        border-right: none;
    }
    
    .question-card {
        padding: 2rem;
    }
    
    .question-text {
        font-size: 1.5rem;
    }
    
    .compass-grid {
        width: 300px;
        height: 300px;
    }
    
    .axis-label {
        font-size: 0.9rem;
    }
    
    .axis-label.left,
    .axis-label.right {
        left: -12px;
        right: -12px;
    }
    
    .axis-label.top,
    .axis-label.bottom {
        top: -35px;
        bottom: -35px;
    }
    
    .score-details {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .quiz-header {
        padding: 2rem 1rem 1.5rem;
    }
    
    .quiz-title {
        font-size: 1.5rem;
    }
    
    .question-section {
        padding: 2rem 1rem;
    }
    
    .question-card {
        padding: 1.5rem;
    }
    
    .question-text {
        font-size: 1.3rem;
    }
    
    .answer-option {
        padding: 1rem;
    }
    
    .option-text {
        font-size: 1rem;
    }
    
    .compass-grid {
        width: 250px;
        height: 250px;
    }
    
    .axis-label {
        font-size: 0.8rem;
    }
    
    .axis-label.left,
    .axis-label.right {
        left: -10px;
        right: -10px;
    }
    
    .axis-label.top,
    .axis-label.bottom {
        top: -30px;
        bottom: -30px;
    }
    
    .results-card {
        padding: 2rem;
    }
    
    .results-title {
        font-size: 2rem;
    }
    
    .quadrant-result {
        font-size: 1.5rem;
    }
}
