/* WooView - Main Stylesheet */

:root {
    --primary-color: #6B46C1;
    --primary-dark: #553C9A;
    --primary-light: #9333EA;
    --secondary-color: #EC4899;
    --background-color: #F9FAFB;
    --card-background: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0 20px;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Sections */
.section {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

#introSection {
    text-align: center;
}

#introSection h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

#introSection p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #D1D5DB;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

.auto-advance-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-style: italic;
}

/* Question Cards */
.question-card {
    margin-bottom: 30px;
}

.question-card h3 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.question-card p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.answer-option {
    display: block;
    padding: 20px;
    background-color: var(--background-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    border-color: var(--primary-light);
    background-color: #F3F4F6;
}

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

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

.answer-option input[type="radio"]:checked ~ .answer-option,
.answer-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background-color: #EDE9FE;
    animation: selectPulse 0.3s ease-out;
}

@keyframes selectPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.answer-option span {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

/* Results Section */
.fingerprint-display {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.fingerprint-display h3 {
    font-size: 1.5rem;
    font-weight: 400;
}

#fingerprintCode {
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-top: 10px;
}

/* Profile Summary */
.profile-summary {
    background-color: var(--background-color);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.profile-summary h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.profile-summary p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Recommendations */
.recommendations-list h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.recommendation-card {
    display: flex;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.rec-rank {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 50px;
}

.rec-content {
    flex: 1;
}

.rec-content h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.rec-platform {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.rec-synopsis {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.rec-ratings {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.rating-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.rating-label {
    color: var(--text-secondary);
    margin-right: 5px;
}

.rating-value {
    font-weight: 600;
    color: var(--text-primary);
}

.content-rating {
    background-color: var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.rec-reason {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.match-score {
    display: inline-flex;
    align-items: center;
    background-color: var(--success-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.match-label {
    margin-right: 5px;
}

.match-value {
    font-weight: 700;
}

/* Show More Container */
.show-more-container {
    text-align: center;
    margin: 30px 0;
}

/* Preference Adjustment */
.preference-adjust-container {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
}

.preference-adjust-container h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.preference-adjust-container p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.preference-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Results Actions */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

footer .attribution {
    margin-top: 10px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

footer .attribution p {
    margin: 0;
}

footer .attribution a {
    display: inline-block;
}

.tmdb-logo {
    height: 20px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tmdb-logo:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 25px;
    }
    
    .question-card p {
        font-size: 1.1rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-navigation .btn {
        width: 100%;
    }
    
    .recommendation-card {
        flex-direction: column;
    }
    
    .rec-rank {
        margin-bottom: 10px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-actions .btn {
        width: 100%;
    }
}