/* Clean, Poetic, Organic Design */
:root {
    --bg-gradient: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    --text-color: #d4d4aa;
    --header-color: #f7f7f7;
    --subtitle-color: #a8a8a8;
    --creator-color: #7a7a7a;
    --screen-bg: rgba(22, 33, 62, 0.85);
    --screen-border: rgba(212, 212, 170, 0.1);
    --option-bg: rgba(26, 26, 46, 0.6);
    --option-border: rgba(212, 212, 170, 0.2);
    --btn-gradient: linear-gradient(135deg, #4a69bd, #6c5ce7);
    --progress-gradient: linear-gradient(90deg, #4a69bd, #6c5ce7, #a29bfe);
}

[data-theme="light"] {
    --bg-gradient: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    --text-color: #2c3e50;
    --header-color: #2c3e50;
    --subtitle-color: #6c757d;
    --creator-color: #868e96;
    --screen-bg: rgba(255, 255, 255, 0.9);
    --screen-border: rgba(0, 0, 0, 0.1);
    --option-bg: rgba(248, 249, 250, 0.8);
    --option-border: rgba(0, 0, 0, 0.2);
    --btn-gradient: linear-gradient(135deg, #007bff, #6f42c1);
    --progress-gradient: linear-gradient(90deg, #007bff, #6f42c1, #e83e8c);
}

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-gradient);
    min-height: 100vh;
    transition: all 0.3s ease;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.welcome-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--screen-border);
}

.welcome-header h1 {
    font-size: 2.5em;
    color: var(--header-color);
    margin-bottom: 10px;
    font-weight: 300;
}

.welcome-header .subtitle {
    font-size: 1.2em;
    color: var(--subtitle-color);
    font-style: italic;
    margin-bottom: 5px;
}

.welcome-header .creator {
    color: var(--creator-color);
    font-size: 0.9em;
}

#progress-bar {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    height: 8px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

#progress-fill {
    background: var(--progress-gradient);
    height: 100%;
    width: 0%;
    min-width: 50px;
    border-radius: 20px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    white-space: nowrap;
    overflow: visible;
}

#score-display {
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 0.9em;
    color: #ffffff;
    font-weight: 500;
}

.screen {
    display: none;
    background: var(--screen-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    margin-bottom: 20px;
    border: 1px solid var(--screen-border);
    position: relative;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.btn-primary, .btn-secondary {
    background: var(--btn-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 92, 231, 0.4);
    background: linear-gradient(135deg, #5a7bd6, #7c6ce7);
}

.theme-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--btn-gradient);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

#rating-stars {
    text-align: center;
    margin: 30px 0;
}

.star {
    font-size: 2em;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.2s ease;
    filter: grayscale(100%);
}

.star:hover, .star.active {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.option {
    background: var(--option-bg);
    border: 2px solid var(--option-border);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    backdrop-filter: blur(5px);
}

.option:hover {
    border-color: #6c5ce7;
    background: rgba(108, 92, 231, 0.1);
    box-shadow: 0 0 15px rgba(106, 92, 231, 0.2);
}

.option.selected {
    border-color: #a29bfe;
    background: rgba(162, 155, 254, 0.15);
    box-shadow: 0 0 20px rgba(162, 155, 254, 0.3);
}

.option.correct {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.15);
    box-shadow: 0 0 20px rgba(39, 174, 96, 0.3);
}

.option.incorrect {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
}

#you-now-know {
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    color: var(--text-color);
}

#you-now-know h4 {
    color: #3498db;
    margin-bottom: 10px;
    font-size: 1.1em;
}

#level-image {
    width: 100%;
    max-width: 400px;
    height: 225px;
    border-radius: 10px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#current-level-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.story-section, .prompt-section, .benefits-section {
    margin: 20px 0;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.story-section {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
}

.prompt-section {
    background: rgba(155, 89, 182, 0.05);
    border-radius: 12px;
    padding: 0;
    margin: 20px 0;
}

.personal-expression {
    background: rgba(241, 196, 15, 0.1);
    border-left: 4px solid #f1c40f;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px 12px 0 0;
}

.ai-prompt-section {
    background: rgba(155, 89, 182, 0.1);
    border-left: 4px solid #9b59b6;
    padding: 20px;
    border-radius: 0 0 12px 12px;
}

.benefits-section {
    background: rgba(46, 204, 113, 0.1);
    border-left: 4px solid #2ecc71;
}

.story-label, .prompt-label, .benefits-label {
    color: var(--text-color);
    font-size: 1.1em;
    margin-bottom: 12px;
    font-weight: 500;
}

.story-content {
    line-height: 1.7;
    font-size: 1.05em;
    color: var(--text-color);
}

.prompt-box {
    background: rgba(155, 89, 182, 0.2);
    padding: 15px;
    border-radius: 8px;
    font-style: italic;
    font-weight: 500;
    color: var(--text-color);
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.benefit-tag {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.benefit-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

.prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.expression-label {
    color: #f39c12;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 500;
}

.expression-text {
    font-style: italic;
    font-size: 1.1em;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.6;
}

.copy-prompt-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.nav-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: var(--screen-bg);
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--screen-border);
    z-index: 1000;
}

.nav-toggle {
    display: none;
}

.nav-items {
    padding: 60px 20px 20px 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: var(--btn-gradient);
}

.nav-item.active {
    background: rgba(52, 152, 219, 0.2);
    border-left-color: #3498db;
}

.nav-number {
    width: 30px;
    height: 30px;
    background: var(--btn-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.nav-title {
    color: var(--text-color);
    font-size: 0.9em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .benefits-container {
        flex-direction: column;
    }
    
    .benefit-tag {
        text-align: center;
    }
    
    .nav-menu {
        width: 200px;
        position: relative;
        height: auto;
        margin-bottom: 20px;
    }
    
    .container {
        margin-left: 0;
    }
}