/* Brand Colors */
:root {
    --primary-color: #6A1B9A;
    --secondary-color: #9C27B0;
    --highlight-color: #4b1463;
    --success-color: #34A853;
    --danger-color: #EA4335;
    --background-color: #FFFFFF;
    --text-color: #333333;
    --border-radius: 16px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    padding: 2rem;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Side - Questions Section */
.questions-section {
    padding: 2rem;
    background: var(--background-color);
}

.questions-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.questions-header p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.progress-indicator {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.questions-container {
    margin-bottom: 3rem;
}

.question-pair {
    margin-bottom: 3rem;
}

.question {
    background: white;
    border: 2px solid #F5F5F5;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.question.answered {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.05), rgba(156, 39, 176, 0.05));
}

.question.blurred {
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    opacity: 0.6;
}

.question h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Radio Button Styles */
.radio-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--secondary-color);
    background: rgba(156, 39, 176, 0.05);
}

.radio-option input[type="radio"] {
    margin-right: 1rem;
    accent-color: var(--primary-color);
}

.radio-option.selected {
    border-color: var(--primary-color);
    background: rgba(106, 27, 154, 0.1);
}

/* Slider Styles */
.slider-container {
    padding: 1rem 0;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #E0E0E0;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.slider-value {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1rem;
}

/* Emoji Styles */
.emoji-options {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.emoji-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.emoji-option:hover {
    border-color: var(--secondary-color);
    background: rgba(156, 39, 176, 0.05);
}

.emoji-option.selected {
    border-color: var(--primary-color);
    background: rgba(106, 27, 154, 0.1);
}

.emoji-option .emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.emoji-option .label {
    font-size: 0.9rem;
    text-align: center;
}

/* Button Styles */
.navigation-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--highlight-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #4CAF50);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 168, 83, 0.3);
}

/* Right Side - Results Section */
.results-section {
    background: #FAFAFA;
    border-radius: var(--border-radius);
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.results-panel {
    padding: 2rem;
}

.results-placeholder h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.placeholder-text {
    color: var(--text-color);
    opacity: 0.6;
}

.score-circle {
    position: relative;
    margin: 2rem auto;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.score-label {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.7;
}

.depression-level h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.depression-level p {
    text-align: center;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.blog-suggestions h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-link {
    display: block;
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: white;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.blog-link:hover {
    border-color: var(--primary-color);
    background: rgba(106, 27, 154, 0.05);
    transform: translateY(-2px);
}

.share-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #E0E0E0;
}

.share-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.share-btn {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.instagram { background: #E4405F; }
.share-btn.linkedin { background: #0A66C2; }
.share-btn.reddit { background: #FF4500; }
.share-btn.skype { background: #00AFF0; }

.download-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #E0E0E0;
}

.download-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-download {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: linear-gradient(135deg, var(--highlight-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.3);
}

.blog-card {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.1);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(106, 27, 154, 0.2);
}

.blog-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.blog-card p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.blog-card .read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.blog-card .read-more:hover {
    border-bottom-color: var(--primary-color);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    font-weight: 600;
}

.toast.show {
    transform: translateX(0);
}

.progress-chart {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #E0E0E0;
}

.progress-chart h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        grid-template-areas: 
            "questions"
            "results";
    }
    
    .questions-section {
        grid-area: questions;
    }
    
    .results-section {
        grid-area: results;
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .questions-section {
        padding: 1rem;
    }
    
    .questions-header h1 {
        font-size: 2rem;
    }
    
    .emoji-options {
        flex-wrap: wrap;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .radio-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .radio-options {
        gap: 0.5rem;
    }
    
    .emoji-option {
        min-width: 60px;
        padding: 0.8rem;
    }
    
    .emoji-option .emoji {
        font-size: 1.5rem;
    }
}