
/* =========================
   기본 설정
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 30px 15px;
    background-color: #f5f3eb;
    font-family: Arial, sans-serif;
    color: #3f4940;
}

button,
textarea {
    font-family: inherit;
}

/* =========================
   전체 레이아웃
========================= */

.app-container {
    max-width: 850px;
    margin: 0 auto;
}

/* =========================
   헤더
========================= */

.header {
    margin-bottom: 25px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 13px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background-color: #e3ebe0;
    color: #587c60;
    font-size: 25px;
}

.logo h1 {
    margin: 0 0 7px;
    color: #496b52;
    font-size: 25px;
}

.logo p {
    margin: 0;
    color: #89918a;
    font-size: 13px;
}

/* =========================
   상단 메뉴
========================= */

.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    margin-bottom: 25px;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(65, 85, 66, 0.05);
}

.nav-button {
    flex: 1;
    min-width: 90px;
    padding: 12px 10px;
    border: none;
    border-radius: 9px;
    background-color: transparent;
    color: #6d796e;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.nav-button:hover {
    background-color: #eef2eb;
    color: #496b52;
}

.nav-button.active {
    background-color: #587c60;
    color: white;
    font-weight: bold;
}

/* =========================
   화면 전환
========================= */

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* =========================
   공통 카드
========================= */

.card {
    background-color: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(65, 85, 66, 0.06);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #496b52;
    font-size: 18px;
}

/* =========================
   페이지 제목
========================= */

.page-heading {
    margin-bottom: 22px;
}

.page-heading h2 {
    margin: 0 0 8px;
    color: #496b52;
    font-size: 25px;
}

.page-heading p {
    margin: 0;
    color: #89918a;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   메인 화면
========================= */

.welcome {
    margin-bottom: 22px;
}

.welcome p {
    color: #89918a;
    font-size: 14px;
}

.welcome h2 {
    color: #496b52;
    font-size: 24px;
    margin: 8px 0;
}

/* =========================
   말씀 카드
========================= */

.verse-card {
    text-align: center;
    background-color: #faf7ed;
    border: 1px solid #eee8d8;
}

.section-label {
    color: #8ba58e;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.verse-card h3 {
    margin-top: 12px;
}

.verse-text {
    margin: 18px 0;
    color: #4c5149;
    font-size: 20px;
    line-height: 1.9;
    word-break: keep-all;
}

.verse-reference {
    margin-bottom: 0;
    color: #78917a;
    font-size: 14px;
}

/* =========================
   기록 현황
========================= */

.status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f7f8f5;
    border-radius: 10px;
    font-size: 14px;
}

.status-badge {
    padding: 7px 13px;
    border-radius: 20px;
    background-color: #eeeeea;
    color: #858b84;
    font-size: 12px;
}

/* =========================
   버튼
========================= */

.primary-button {
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background-color: #587c60;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease,
                transform 0.2s ease;
}

.primary-button:hover {
    background-color: #42664b;
    transform: translateY(-2px);
}

.secondary-button {
    width: 100%;
    padding: 14px;
    border: 1px solid #dce5d8;
    border-radius: 10px;
    background-color: #edf2ea;
    color: #496b52;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.secondary-button:hover {
    background-color: #e1eadf;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-group button {
    flex: 1;
}

.full-button {
    width: 100%;
    margin-top: 5px;
}

.start-card {
    background-color: #f0f3ed;
    border: 1px solid #e3eade;
}

.start-card p {
    color: #89918a;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================
   입력 영역
========================= */

.large-textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #e1e5de;
    border-radius: 10px;
    background-color: #fafbf8;
    color: #3f4940;
    font-size: 14px;
    line-height: 1.8;
    resize: vertical;
}

.large-textarea:focus {
    outline: none;
    border-color: #8ba58e;
    box-shadow: 0 0 5px rgba(88, 124, 96, 0.15);
}

.help-text {
    margin-top: -8px;
    margin-bottom: 15px;
    color: #929991;
    font-size: 13px;
    line-height: 1.6;
}

/* =========================
   묵상 질문
========================= */

.question-item {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: #f7f8f5;
    color: #505950;
    font-size: 14px;
    line-height: 1.7;
}

.question-item span {
    color: #587c60;
    font-weight: bold;
    margin-right: 5px;
}

/* =========================
   나의 기록
========================= */

.record-item {
    padding: 18px;
    margin-bottom: 13px;
    border-radius: 11px;
    background-color: #f8f8f4;
    border-left: 4px solid #8ba58e;
}

.record-date {
    margin-bottom: 12px;
    color: #587c60;
    font-size: 14px;
    font-weight: bold;
}

.record-item p {
    margin: 8px 0;
    color: #596159;
    font-size: 13px;
    line-height: 1.7;
    word-break: keep-all;
}

.record-item strong {
    color: #496b52;
}

/* =========================
   달력
========================= */

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    margin: 0;
}

.calendar-arrow {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 9px;
    background-color: #edf2ea;
    color: #587c60;
    font-size: 24px;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.weekday {
    padding: 10px 0;
    color: #718174;
    font-size: 13px;
    font-weight: bold;
}

.weekday.sunday {
    color: #c17b75;
}

.weekday.saturday {
    color: #7290ad;
}

.calendar-day {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #505950;
    font-size: 14px;
}

.calendar-day.today {
    background-color: #e7efe4;
    color: #496b52;
    font-weight: bold;
}

.calendar-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #89918a;
    font-size: 12px;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #8ba58e;
}

.empty-message {
    text-align: center;
    padding: 25px 10px;
    color: #a0a49e;
    font-size: 14px;
    line-height: 1.7;
}

/* =========================
   설정
========================= */

.setting-item,
.setting-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5px;
    border-bottom: 1px solid #edf0e9;
    color: #505950;
    font-size: 14px;
}

.setting-item:last-child,
.setting-menu:last-child {
    border-bottom: none;
}

.setting-value {
    color: #929991;
    font-size: 13px;
}

.setting-menu span:last-child {
    color: #78917a;
    font-size: 20px;
}

/* =========================
   하단
========================= */

footer {
    padding: 25px 0 10px;
    text-align: center;
    color: #999f98;
    font-size: 13px;
}

/* =========================
   모바일 화면
========================= */

@media (max-width: 600px) {

    body {
        padding: 18px 12px;
    }

    .logo h1 {
        font-size: 21px;
    }

    .navigation {
        gap: 5px;
        padding: 9px;
    }

    .nav-button {
        min-width: 28%;
        padding: 11px 5px;
        font-size: 13px;
    }

    .card {
        padding: 19px;
        border-radius: 14px;
    }

    .verse-text {
        font-size: 17px;
    }

    .button-group {
        flex-direction: column;
    }

    .calendar-day {
        min-height: 42px;
        font-size: 12px;
    }

    .page-heading h2 {
        font-size: 22px;
    }
}
