/* Sleep Calculator - Clean & Simple */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0d1b2a;
    color: #ffffff;
    min-height: 100vh;
}

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

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
}

.zzz {
    font-size: 0.8rem;
    color: #6b8cae;
    line-height: 1;
    margin-right: -5px;
    margin-top: -20px;
}

.moon {
    font-size: 3rem;
    margin-right: 10px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 400;
}

h1 em {
    font-style: italic;
    font-weight: 300;
}

.stars {
    font-size: 0.8rem;
    color: #6b8cae;
    line-height: 1.2;
    text-align: left;
    margin-left: 5px;
    margin-top: -15px;
}

/* Main */
main {
    text-align: center;
    padding: 20px 0;
}

main h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 25px;
}

/* Time Picker */
.time-picker {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #3d5a73;
    border-radius: 12px;
    padding: 15px 30px;
    margin: 0 auto 25px;
    max-width: 350px;
}

.picker-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 50px;
}

.picker-item {
    font-size: 1.5rem;
    padding: 5px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
}

.picker-item.dim {
    color: #4a6580;
    font-size: 1.1rem;
}

.picker-item.selected {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 600;
}

.picker-item:hover:not(.selected) {
    color: #8ab4d4;
}

/* Buttons */
.calc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    background: #d4c5a9;
    color: #1a2a3a;
    border: 2px solid #b8a987;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 10px 0;
}

.calc-btn:hover {
    background: #e5d6ba;
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2rem;
}

.or-text {
    color: #8ab4d4;
    font-size: 1.1rem;
    margin: 30px 0 15px;
}

/* Results */
.results {
    text-align: center;
    padding: 30px 0;
    animation: fadeIn 0.4s ease;
}

.results.hidden {
    display: none;
}

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

.results h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 25px;
}

.times-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.time-option {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid #3d5a73;
    border-radius: 12px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-option:hover {
    border-color: #8ab4d4;
    background: rgba(255, 255, 255, 0.12);
}

.time-option.recommended {
    border-color: #7cb87c;
    background: rgba(124, 184, 124, 0.15);
}

.time-option .time {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.time-option .info {
    font-size: 0.85rem;
    color: #8ab4d4;
}

.time-option .badge {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    background: #7cb87c;
    color: #1a2a3a;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.note {
    color: #6b8cae;
    font-size: 0.9rem;
    margin: 20px 0;
}

.back-btn {
    padding: 10px 25px;
    font-size: 0.95rem;
    background: transparent;
    color: #8ab4d4;
    border: 1px solid #3d5a73;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover {
    border-color: #8ab4d4;
    color: #ffffff;
}

/* FAQ Section */
.faq-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #1f3a52;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
    color: #8ab4d4;
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.open {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 20px 15px;
    color: #8ab4d4;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: #4a6580;
    font-size: 0.85rem;
}

footer a {
    color: #6b8cae;
    text-decoration: none;
}

footer a:hover {
    color: #8ab4d4;
}

/* Mobile */
@media (max-width: 500px) {
    h1 {
        font-size: 2rem;
    }

    .time-picker {
        padding: 15px 20px;
    }

    .picker-item.selected {
        font-size: 1.6rem;
    }

    .calc-btn {
        width: 100%;
        max-width: 300px;
    }

    .time-option {
        min-width: 120px;
        padding: 15px 20px;
    }
}
