/* Kuu Faas — moon phase page */

.kuufaas-page .kuufaas-subtitle {
    text-align: center;
    color: #666;
    margin: 4px 0 24px;
}

.kuufaas-page .kuufaas-lore-intro {
    max-width: 520px;
    margin: 0 auto 24px;
    text-align: justify;
    text-align-last: left;   /* don't stretch the final short line */
    hyphens: auto;
    line-height: 1.6;
    font-size: 13.5px;
    color: #777;
    font-style: italic;
}

.kuufaas-wrap {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.kuufaas-datenav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
}

.kuufaas-datenav-arrow {
    background: #f8f9fa;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    color: #4a90e2;
    cursor: pointer;
    line-height: 1;
}

.kuufaas-datenav-arrow:hover { background: #eef2f7; }

.kuufaas-datenav-center {
    position: relative;
    min-width: 200px;
}

.kuufaas-datenav-label {
    font-size: 15px;
    color: #333;
    cursor: pointer;
    text-transform: capitalize;
}

.kuufaas-datenav-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.kuufaas-datenav-today {
    background: none;
    border: 1px solid #4a90e2;
    color: #4a90e2;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    position: absolute;
    right: 0;
}

.kuufaas-datenav-today:hover { background: #f0f6fd; }

@media (max-width: 600px) {
    .kuufaas-datenav-today { position: static; margin-left: 4px; }
}

/* Dark navy "sky card" on the light theme — makes the moon pop */
.kuufaas-moon-card {
    background: linear-gradient(180deg, #0c1524 0%, #16233c 100%);
    border-radius: 16px;
    padding: 32px 24px 24px;
    box-shadow: 0 4px 24px rgba(16, 27, 45, 0.25);
}

.kuufaas-moon {
    width: min(80vw, 320px);
    height: auto;
    display: block;
    margin: 0 auto;
}

.kuufaas-sky { fill: #101b2d; }
.kuufaas-dark-limb { fill: #1c2940; }
.kuufaas-lit {
    fill: #f2efe4;
    filter: drop-shadow(0 0 18px rgba(242, 239, 228, 0.25));
}

.kuufaas-phase-name {
    margin-top: 20px;
    font-size: 22px;
    font-weight: 300;
    color: #f2efe4;
    letter-spacing: 0.5px;
}

.kuufaas-phase-meta {
    margin-top: 8px;
    font-size: 14px;
    color: #9fb0cc;
}

.kuufaas-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.kuufaas-badge-soft {
    background: rgba(242, 200, 150, 0.18);
    color: #f2c896;
    border: 1px solid rgba(242, 200, 150, 0.35);
}

.kuufaas-badge-hard {
    background: rgba(150, 200, 242, 0.18);
    color: #a8c8f2;
    border: 1px solid rgba(150, 200, 242, 0.35);
}

.kuufaas-location {
    margin-top: 14px;
    font-size: 15px;
    color: #666;
}

.kuufaas-riseset {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.kuufaas-riseset-item {
    flex: 1;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 14px 10px;
}

.kuufaas-riseset-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}

.kuufaas-riseset-time {
    display: block;
    font-size: 20px;
    font-weight: 500;
    color: #333;
}

.kuufaas-nextphases {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kuufaas-nextphase-item {
    font-size: 14px;
    color: #666;
}

.kuufaas-nextphase-item span:first-child {
    color: #333;
}

/* Per-phase explanatory text */
.kuufaas-phase-text {
    margin-top: 24px;
    text-align: justify;
    text-align-last: left;   /* don't stretch the final short line */
    hyphens: auto;
    line-height: 1.6;
    color: #333;
}

.kuufaas-no-location {
    margin-top: 32px;
    color: #666;
}

.kuufaas-no-location button {
    margin-top: 12px;
    padding: 10px 22px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.kuufaas-no-location button:hover { background: #3a7bc8; }

.kuufaas-error {
    text-align: center;
    color: #c0392b;
    margin-top: 32px;
}

@media (max-width: 600px) {
    .kuufaas-moon-card { padding: 24px 16px 20px; }
    .kuufaas-phase-name { font-size: 19px; }
    .kuufaas-riseset-time { font-size: 18px; }
}
