/* screens.css - Individual screen styles with enhanced question type support */

/* Home Screen */
.hero-section {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B9D, #E91E63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: heartBeat 2s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-content {
    text-align: left;
    margin: 0 auto;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Landing Screen */
.landing-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FF6B9D, #E91E63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: heartBeat 2s ease-in-out infinite;
}

.landing-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* User Info Screen */
.user-info-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.input-group {
    margin-bottom: 30px;
    text-align: left;
}

.input-label {
    display: block;
    font-weight: 500;
    color: #555;
    margin-bottom: 10px;
    font-size: 1rem;
}

.user-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8f0;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.user-input:focus {
    outline: none;
    border-color: #FF6B9D;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
    background: white;
}

/* Quiz Screen */
.quiz-header {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e1e8f0;
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #FF6B9D, #E91E63);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.question-number {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.question-instruction {
    margin-bottom: 15px;
    font-style: italic;
    color: #666;
    text-align: center;
    font-size: 0.95rem;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

/* Base Answer Option Styles */
.answer-option {
    padding: 15px 20px;
    border: 2px solid #e1e8f0;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.answer-option:hover {
    border-color: #FF6B9D;
    background: rgba(255, 107, 157, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
}

.answer-option.selected {
    border-color: #FF6B9D;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(233, 30, 99, 0.1));
    color: #FF6B9D;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
}

.answer-option.selected::after {
    content: '💕';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    animation: heartPulse 1s ease-in-out;
}

/* Single Choice Specific Styles */
.answer-option.single-choice.selected::after {
    content: '💕';
}

/* Multiple Choice Specific Styles */
.answer-option.multiple-choice {
    display: flex;
    align-items: center;
    gap: 12px;
}

.answer-option.multiple-choice .checkbox {
    font-size: 1.2rem;
    color: #FF6B9D;
    font-weight: bold;
    min-width: 20px;
}

.answer-option.multiple-choice .option-text {
    flex: 1;
}

.answer-option.multiple-choice.selected::after {
    display: none;
    /* Hide heart for multiple choice as we have checkbox */
}

.answer-option.multiple-choice:hover .checkbox {
    transform: scale(1.1);
}

/* Rating Container Styles */
.rating-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.rating-option {
    padding: 12px 16px;
    border: 2px solid #e1e8f0;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    min-width: 60px;
    font-weight: 500;
    position: relative;
}

.rating-option:hover {
    border-color: #FF6B9D;
    background: rgba(255, 107, 157, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 157, 0.1);
}

.rating-option.selected {
    border-color: #FF6B9D;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(233, 30, 99, 0.1));
    color: #FF6B9D;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
}

.rating-option.selected::after {
    content: '⭐';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.8rem;
    animation: bounceIn 0.5s ease-out;
}

/* Text Input Styles */
.text-input-container {
    margin: 20px 0;
}

.text-answer-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8f0;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    resize: vertical;
    min-height: 100px;
}

.text-answer-input:focus {
    outline: none;
    border-color: #FF6B9D;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
    background: white;
}

.text-answer-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Character counter for text inputs */
.text-input-container::after {
    content: attr(data-count) " characters";
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* Boolean Question Styles */
.answer-option.boolean {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    min-height: 60px;
}

.answer-option.boolean.selected {
    font-weight: 600;
}

/* Question Type Indicators */
.question-type-indicator {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 10px;
    opacity: 0.7;
}

.question-type-indicator.single-choice {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.question-type-indicator.multiple-choice {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.question-type-indicator.rating {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.question-type-indicator.text {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.question-type-indicator.boolean {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

/* Thank You Screen */
.thank-you-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    animation: celebration 2s ease-in-out;
}

.thank-you-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Enhanced Loading States */
.question-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex-direction: column;
    gap: 15px;
}

.question-loading .loading {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 107, 157, 0.3);
    border-top-color: #FF6B9D;
}

.question-loading-text {
    color: #666;
    font-style: italic;
}

/* Error States */
.question-error {
    text-align: center;
    padding: 30px;
    color: #FF6B9D;
    background: rgba(255, 107, 157, 0.05);
    border: 1px solid rgba(255, 107, 157, 0.2);
    border-radius: 15px;
    margin: 20px 0;
}

.question-error-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.question-error-message {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.question-error-action {
    background: #FF6B9D;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.question-error-action:hover {
    background: #E91E63;
    transform: translateY(-2px);
}

/* Accessibility Enhancements */
.answer-option:focus {
    outline: 2px solid #FF6B9D;
    outline-offset: 2px;
}

.rating-option:focus {
    outline: 2px solid #FF6B9D;
    outline-offset: 2px;
}

.text-answer-input:focus {
    outline: none;
    /* Custom focus styles applied */
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Question validation feedback */
.question-validation {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.question-validation.error {
    background: rgba(255, 107, 157, 0.1);
    color: #FF6B9D;
    border: 1px solid rgba(255, 107, 157, 0.3);
    display: block;
}

.question-validation.success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
    display: block;
}

/* Animation for question transitions */
.question-transition-enter {
    opacity: 0;
    transform: translateX(50px);
}

.question-transition-enter-active {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease-out;
}

.question-transition-exit {
    opacity: 1;
    transform: translateX(0);
}

.question-transition-exit-active {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.3s ease-out;
}