/* Values Finder - Minimal, Clean Styling */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Screens */
.screen {
    display: none;
    width: 100%;
    animation: fadeIn 0.3s ease-in-out;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Start Screen */
#startScreen {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

#startScreen h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.subtitle {
    font-size: 1.3em;
    color: #7f8c8d;
    margin-bottom: 40px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    font-size: 1.2em;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: #ecf0f1;
    color: #34495e;
}

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

/* Progress Bar */
.progress-container {
    margin-bottom: 60px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Comparison Screen */
.comparison-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.value-option {
    flex: 1;
    max-width: 400px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.value-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.value-option.left:hover {
    border: 3px solid #3498db;
}

.value-option.right:hover {
    border: 3px solid #2ecc71;
}

.value-name {
    font-size: 2em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.value-description {
    font-size: 1.1em;
    color: #7f8c8d;
}

.or-divider {
    font-size: 1.5em;
    color: #95a5a6;
    font-weight: 300;
}

/* Break Screen */
#breakScreen {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

#breakScreen h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2c3e50;
}

#breakScreen p {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-bottom: 40px;
}

#breakScreen button {
    margin: 0 10px;
}

/* Results Screen */
#resultsScreen {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

#resultsScreen h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #2c3e50;
}

.core-values-list {
    margin-bottom: 40px;
}

.value-result {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.value-result h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.value-result p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.value-rank {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-right: 15px;
}

/* Personality Screen */
#personalityScreen {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

#personalityScreen h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}

.personality-results {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: left;
}

.personality-trait {
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #34495e;
}

.personality-trait strong {
    color: #2c3e50;
}

#personalityChart {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comparison-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .or-divider {
        transform: rotate(90deg);
        margin: -10px 0;
    }
    
    .value-option {
        max-width: 100%;
        padding: 30px;
    }
    
    #startScreen h1 {
        font-size: 2em;
    }
    
    .value-name {
        font-size: 1.5em;
    }
}

/* Additional Styles */
.info {
    font-size: 1.1em;
    color: #7f8c8d;
    margin: 30px auto;
    max-width: 600px;
    line-height: 1.6;
}

.duration {
    font-size: 0.9em;
    color: #95a5a6;
    margin-top: 20px;
}

.keyboard-hint {
    text-align: center;
    color: #95a5a6;
    font-size: 0.9em;
    margin-top: 40px;
}

.break-info {
    font-size: 1.1em;
    color: #7f8c8d;
    margin: 20px 0 40px;
}

.results-intro, .personality-intro {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.results-actions, .personality-actions {
    text-align: center;
    margin-top: 40px;
}

.results-actions button, .personality-actions button {
    margin: 0 10px;
}

/* Personality Profile Styles */
.personality-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.personality-chart-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#personalityChart {
    max-width: 100%;
    height: auto;
}

.personality-results {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.trait-category {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.trait-category h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.trait-category ul {
    list-style: none;
    padding: 0;
}

.trait-category li {
    color: #34495e;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.trait-category li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Export Modal */
.export-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.export-modal.active {
    display: flex;
}

.export-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.export-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.export-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9em;
}

.export-actions {
    text-align: center;
    margin-top: 20px;
}

/* Animations */
.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .personality-content {
        flex-direction: column;
        align-items: center;
    }
    
    .personality-chart-container,
    .personality-results {
        max-width: 100%;
    }
}