/* Tufte-inspired styles for Dev Compass */

:root {
    --bg-color: #fffff8;
    --text-color: #111111;
    --accent-color: #1a1a1a;
    --border-color: #e9ecef;
    --success-color: #2e7d32;
    --max-width: 800px;
    --input-bg: #f8f8f0;
    --option-hover: #f5f5f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16pt;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
}

.main-content {
    background: var(--bg-color);
}

.content-section {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    letter-spacing: 0.02em;
}

h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    letter-spacing: 0.02em;
}

h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.narrative {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.hidden {
    display: none;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
    background: var(--border-color);
    height: 8px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    display: block;
    margin-top: 0.5rem;
    font-style: italic;
    font-size: 0.9em;
    color: var(--accent-color);
}

/* Question Container */
.question-container {
    margin-bottom: 2rem;
}

.question-text {
    margin-bottom: 2rem;
    font-size: 1.3em;
    line-height: 1.5;
}

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

.option {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option:hover {
    background-color: var(--option-hover);
}

.option input[type="radio"] {
    margin: 0;
    transform: scale(1.2);
    flex-shrink: 0;
    margin-top: 0.1rem; /* Slight adjustment to align with first line of text */
}

.option-label {
    cursor: pointer;
    font-size: 1em;
    line-height: 1.5;
    flex: 1;
    margin: 0;
}

/* Buttons */
.next-button, .restart-button {
    background: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1em;
    font-family: inherit;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.next-button:hover:not(:disabled), .restart-button:hover {
    background: #333333;
}

.next-button:disabled {
    background: var(--border-color);
    color: #999999;
    cursor: not-allowed;
}

/* Results Section */
.compass-container {
    text-align: center;
    margin: 2rem 0;
}

.compass-container svg {
    max-width: 100%;
    height: auto;
}

.axis-label {
    font-size: 14px;
    fill: var(--accent-color);
    font-weight: 600;
}

.quadrant-label {
    font-size: 11px;
    fill: #666666;
    font-style: italic;
}

.position-label {
    font-size: 14px;
    fill: var(--accent-color);
    font-weight: 600;
}

.results-text {
    margin: 2rem 0;
}

.philosophy-description {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 2rem; 
    padding: 1.5rem;
    background: var(--input-bg);
    font-style: italic;
}

.score-breakdown {
    margin: 2rem 0;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.score-item:last-child {
    border-bottom: none;
}

.score-label {
    font-weight: 400;
    font-size: 1em;
}

.score-value {
    font-weight: 600;
    color: var(--accent-color);
}

.restart-button {
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .question-text {
        font-size: 1.2em;
    }
    
    .compass-container svg {
        width: 100%;
        max-width: 350px;
    }
    
    .score-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .next-button, .restart-button {
        display: none;
    }
    
    .progress-container {
        display: none;
    }
    
    #quiz-section {
        display: none;
    }
    
    #results-section {
        display: block !important;
    }
} 