/* Wake Fresh - Sleep Cycle Calculator */

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0d1117;
    min-height: 100vh;
    color: #c9d1d9;
    line-height: 1.7;
}

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

/* Header */
header {
    text-align: center;
    padding: 24px 0 16px;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #f0f6fc;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.95rem;
    color: #7d8590;
    margin-top: 4px;
}

/* Calculator Section */
.calculator {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 20px 24px 24px;
    text-align: center;
}

.calc-intro {
    font-size: 0.9rem;
    color: #8b949e;
    margin-bottom: 16px;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #c9d1d9;
}

input[type="time"] {
    font-size: 1.25rem;
    padding: 10px 16px;
    border: 1px solid #30363d;
    border-radius: 6px;
    background: #0d1117;
    color: #f0f6fc;
    text-align: center;
    width: 160px;
}

input[type="time"]:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}

button {
    background: #238636;
    color: #fff;
    border: none;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

button:hover {
    background: #2ea043;
}

button:active {
    background: #238636;
}

/* Results Section */
.results {
    margin-top: 16px;
}

.results h2 {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7d8590;
    margin-bottom: 8px;
    padding-left: 4px;
}

.result-card {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-card:hover {
    border-color: #30363d;
}

.result-card.cycles-6 {
    border-left: 3px solid #7ee787;
}

.result-card.cycles-5 {
    border-left: 3px solid #58a6ff;
}

.result-card.cycles-4 {
    border-left: 3px solid #d29922;
}

.result-card.cycles-3 {
    border-left: 3px solid #f85149;
}

.bedtime {
    font-size: 1rem;
    font-weight: 600;
    color: #f0f6fc;
    font-variant-numeric: tabular-nums;
}

.cycle-info {
    text-align: right;
}

.cycles {
    font-size: 0.8rem;
    color: #8b949e;
}

.hours {
    font-size: 0.75rem;
    color: #6e7681;
}

.recommendation {
    font-size: 0.7rem;
    color: #7ee787;
}

/* Info Section */
.info {
    margin-top: 32px;
    padding: 20px;
    border: 1px solid #21262d;
    border-radius: 8px;
    background: #161b22;
}

.info h2 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #c9d1d9;
}

.info p {
    font-size: 0.875rem;
    color: #8b949e;
}

.info p + p {
    margin-top: 8px;
}

/* Ad Slots */
.ad-slot {
    min-height: 10px;
    margin: 12px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 16px 0 12px;
    color: #484f58;
    font-size: 0.75rem;
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    header {
        padding: 16px 0 12px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .calculator {
        padding: 16px;
    }

    input[type="time"] {
        font-size: 1.1rem;
        width: 140px;
    }

    button {
        width: 100%;
        padding: 10px;
    }

    .result-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .cycle-info {
        text-align: left;
    }
}
