/* ==========================================================================
   Journal Feature — /min-konto/journal/
   Matches the iOS app journaling experience with the site's light theme.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout & Container
   -------------------------------------------------------------------------- */

.journal-app {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 80px;
}

/* --------------------------------------------------------------------------
   Sub-tabs (Journaling / Min rytme)
   -------------------------------------------------------------------------- */

.journal-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--color-white);
    border-radius: 5px;
    padding: 4px;
    border: 1px solid var(--color-lines);
}

.journal-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.journal-tab:hover {
    background: var(--color-sand);
}

.journal-tab--active {
    background: var(--color-action);
    color: var(--color-white);
    font-weight: 600;
}

.journal-tab--active:hover {
    background: var(--color-action);
}

/* --------------------------------------------------------------------------
   Date Header
   -------------------------------------------------------------------------- */

.journal-date-header {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-secondary, #8B7D6B);
    margin-bottom: 24px;
    text-transform: capitalize;
}

/* --------------------------------------------------------------------------
   Section Titles
   -------------------------------------------------------------------------- */

.journal-section {
    margin-bottom: 32px;
}

.journal-section__title {
    font-family: var(--font-accent);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-chokolade);
    margin: 0 0 16px;
}

/* --------------------------------------------------------------------------
   Quick Taps
   -------------------------------------------------------------------------- */

.quicktap-block {
    margin-bottom: 24px;
}

.quicktap-block__label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 12px;
}

/* Mood Selector (1-7 circles) */
.mood-selector__track {
    padding: 4px 0;
}

.mood-selector__options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.mood-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-lines);
    background: var(--color-white);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary, #8B7D6B);
    position: relative;
}

.mood-option:hover {
    transform: scale(1.1);
}

.mood-option--selected {
    border-color: transparent;
    color: var(--color-white);
    transform: scale(1.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Mood gradient colors */
.mood-option[data-value="1"] { --mood-color: #6B8EC7; }
.mood-option[data-value="2"] { --mood-color: #7BA3C5; }
.mood-option[data-value="3"] { --mood-color: #93B8B8; }
.mood-option[data-value="4"] { --mood-color: #C9C48C; }
.mood-option[data-value="5"] { --mood-color: #D4A96A; }
.mood-option[data-value="6"] { --mood-color: #D4926A; }
.mood-option[data-value="7"] { --mood-color: #C97B50; }

.mood-option--selected {
    background: var(--mood-color);
    border-color: var(--mood-color);
}

/* Energy Selector (1-5 bars) */
.energy-selector {
    padding: 4px 0;
}

.energy-selector__bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    height: 60px;
}

.energy-bar {
    width: 40px;
    border-radius: 5px 5px 0 0;
    background: var(--color-lines);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.energy-bar:hover {
    opacity: 0.8;
}

.energy-bar[data-value="1"] { height: 20%; }
.energy-bar[data-value="2"] { height: 40%; }
.energy-bar[data-value="3"] { height: 60%; }
.energy-bar[data-value="4"] { height: 80%; }
.energy-bar[data-value="5"] { height: 100%; }

.energy-bar--selected {
    background: var(--color-action);
}

.energy-bar--filled {
    background: var(--color-action);
    opacity: 0.5;
}

.energy-bar--selected {
    opacity: 1;
}

/* Body State Chips */
.body-state-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.body-state-chip {
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid var(--color-lines);
    background: var(--color-white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.body-state-chip:hover {
    background: var(--color-sand);
}

.body-state-chip--selected {
    background: var(--color-action);
    color: var(--color-white);
    border-color: var(--color-action);
}

.body-state-chip--selected:hover {
    background: var(--color-action);
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Journal Cards (grid)
   -------------------------------------------------------------------------- */

.journal-cards-scroll {
    /* No horizontal scroll — wrapping grid instead */
}

.journal-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.journal-card {
    min-height: 220px;
    border-radius: 5px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.journal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.journal-card__icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.journal-card__name {
    font-family: var(--font-accent);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.journal-card__description {
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.85;
    flex: 1;
}

.journal-card__time {
    font-family: var(--font-body);
    font-size: 12px;
    opacity: 0.7;
    margin-top: auto;
}

/* Card color variants */
.journal-card--morning {
    background: linear-gradient(145deg, #E9C48C, #C99550);
    color: var(--color-chokolade);
}

.journal-card--evening {
    background: linear-gradient(145deg, #8B9EE8, #151242);
    color: #FFFFFF;
}

.journal-card--quick {
    background: linear-gradient(145deg, #AD708B, #722447);
    color: #FFFFFF;
}

.journal-card--stressed_morning {
    background: linear-gradient(145deg, #7F3111, #E1B87F);
    color: #FFFFFF;
}

.journal-card--stressed_evening {
    background: linear-gradient(145deg, #7D2F12, #7480C3);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Today's Completed Journals
   -------------------------------------------------------------------------- */

.journal-completed__title {
    font-family: var(--font-accent);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-secondary, #8B7D6B);
    margin: 0 0 12px;
}

.journal-completed__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.completed-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--color-white);
    border-radius: 5px;
    border: 1px solid var(--color-lines);
    cursor: pointer;
    transition: background 0.15s ease;
}

.completed-row:hover {
    background: var(--color-sand);
}

.completed-row__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(74, 163, 95, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #4AA35F;
    flex-shrink: 0;
}

.completed-row__info {
    flex: 1;
    min-width: 0;
}

.completed-row__name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.completed-row__time {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-text-secondary, #8B7D6B);
}

.completed-row__check {
    font-size: 20px;
    color: #4AA35F;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Journal Flow Overlay
   -------------------------------------------------------------------------- */

.journal-flow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-paper, #FFF4E6);
    z-index: 99999;
    overflow-y: auto;
    animation: journalFadeIn 0.3s ease;
}

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

.journal-flow {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 24px;
}

/* Progress bar */
.journal-flow__progress {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-lines);
    z-index: 10;
}

.journal-flow__progress-bar {
    height: 100%;
    background: var(--color-action);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Header */
.journal-flow__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}

.journal-flow__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-lines);
    background: var(--color-white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    transition: background 0.15s ease;
}

.journal-flow__close:hover {
    background: var(--color-sand);
}

/* Content area */
.journal-flow__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
    min-height: 400px;
}

/* Entry step */
.flow-step-entry {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.flow-step-entry__icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.flow-step-entry__title {
    font-family: var(--font-accent);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-chokolade);
}

.flow-step-entry__subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-secondary, #8B7D6B);
    max-width: 320px;
    line-height: 1.5;
}

.flow-step-entry__time {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-secondary, #8B7D6B);
    opacity: 0.7;
}

.flow-step-entry__start {
    margin-top: 24px;
    padding: 14px 48px;
    background: var(--color-action);
    color: var(--color-white);
    border: none;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.flow-step-entry__start:hover {
    opacity: 0.9;
}

/* Text step */
.flow-step-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flow-step-text__question {
    font-family: var(--font-accent);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-chokolade);
    line-height: 1.4;
}

.flow-step-text__subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-secondary, #8B7D6B);
    line-height: 1.5;
}

.flow-step-text__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.keyword-chip {
    padding: 7px 14px;
    border-radius: 9999px;
    border: 1px solid var(--color-lines);
    background: var(--color-white);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.keyword-chip:hover {
    background: var(--color-sand);
}

.keyword-chip--selected {
    background: var(--color-action);
    color: var(--color-white);
    border-color: var(--color-action);
}

.flow-step-text__textarea {
    width: 100%;
    min-height: 200px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-primary);
    resize: none;
    outline: none;
}

.flow-step-text__textarea::placeholder {
    color: var(--color-text-secondary, #8B7D6B);
    opacity: 0.5;
}

.flow-step-text__textarea:focus {
    outline: none;
}

/* Time input step */
.flow-step-time {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flow-step-time__question {
    font-family: var(--font-accent);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-chokolade);
    line-height: 1.4;
}

.flow-step-time__subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-secondary, #8B7D6B);
    line-height: 1.5;
}

.time-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(214, 201, 189, 0.3);
}

.time-input-row__label {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    flex: 1;
}

.time-input-row__icon {
    display: none;
}

.time-input-row input[type="time"] {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-paper);
    background: var(--color-sand);
    border: none;
    border-radius: 5px;
    padding: 10px 16px;
    min-width: 110px;
    text-align: center;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.time-input-row input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

.time-input-row input[type="time"]::-webkit-inner-spin-button,
.time-input-row input[type="time"]::-webkit-clear-button {
    display: none;
}

.time-input-row input[type="time"]:focus {
    box-shadow: 0 0 0 2px rgba(200, 148, 79, 0.3);
}

/* Completion step */
.flow-step-completion {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.flow-step-completion__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(74, 163, 95, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #4AA35F;
    margin-bottom: 8px;
}

.flow-step-completion__title {
    font-family: var(--font-accent);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-chokolade);
}

.flow-step-completion__subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-secondary, #8B7D6B);
}

.flow-step-completion__finish {
    margin-top: 24px;
    padding: 14px 48px;
    background: var(--color-action);
    color: var(--color-white);
    border: none;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.flow-step-completion__finish:hover {
    opacity: 0.9;
}

/* Flow title */
.journal-flow__title {
    font-family: var(--font-accent);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-chokolade);
    margin: 0;
    flex: 1;
}

/* Step count indicator */
.journal-flow__step-count {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary, #8B7D6B);
    text-align: center;
    padding: 8px 0 0;
}

/* Completion note */
.flow-step-completion__note {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-secondary, #8B7D6B);
    max-width: 300px;
    line-height: 1.5;
    margin-top: 8px;
    opacity: 0.8;
}

/* Footer nav */
.journal-flow__footer {
    padding: 16px 0 32px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.journal-flow__btn {
    padding: 12px 32px;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
    border: none;
}

.journal-flow__btn--back {
    background: var(--color-white);
    color: var(--color-text-primary);
    border: 1px solid var(--color-lines);
}

.journal-flow__btn--back:hover {
    background: var(--color-sand);
}

.journal-flow__btn--next {
    background: var(--color-action);
    color: var(--color-white);
    margin-left: auto;
}

.journal-flow__btn--next:hover {
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Journal Detail Overlay
   -------------------------------------------------------------------------- */

.journal-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-paper, #FFF4E6);
    z-index: 99999;
    overflow-y: auto;
    animation: journalFadeIn 0.3s ease;
}

.journal-detail {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.journal-detail__header {
    padding: 16px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.journal-detail__close {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-lines);
    background: var(--color-white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    transition: background 0.15s ease;
}

.journal-detail__close:hover {
    background: var(--color-sand);
}

.journal-detail__title {
    font-family: var(--font-accent);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-chokolade);
    margin: 0;
}

.journal-detail__time {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-secondary, #8B7D6B);
}

.journal-detail__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-entry {
    padding: 16px 20px;
    background: var(--color-white);
    border-radius: 5px;
    border: 1px solid var(--color-lines);
}

.detail-entry__question {
    font-family: var(--font-accent);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary, #8B7D6B);
    margin: 0 0 8px;
}

.detail-entry__answer {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-primary);
    white-space: pre-wrap;
}

.detail-entry__time-values {
    display: flex;
    gap: 16px;
}

.detail-entry__time-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-primary);
}

.detail-entry__time-label {
    font-size: 13px;
    color: var(--color-text-secondary, #8B7D6B);
}

/* --------------------------------------------------------------------------
   Rhythm Calendar
   -------------------------------------------------------------------------- */

.rhythm-calendar {
    background: var(--color-white);
    border-radius: 5px;
    padding: 24px;
    border: 1px solid var(--color-lines);
    margin-bottom: 24px;
}

.rhythm-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.rhythm-calendar__month-label {
    font-family: var(--font-accent);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-chokolade);
    text-transform: capitalize;
}

.rhythm-calendar__nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-lines);
    background: var(--color-white);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    transition: background 0.15s ease;
}

.rhythm-calendar__nav:hover {
    background: var(--color-sand);
}

.rhythm-calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.rhythm-calendar__weekday {
    text-align: center;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary, #8B7D6B);
    padding: 4px 0;
    text-transform: uppercase;
}

.rhythm-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-primary);
}

.calendar-day:hover {
    background: var(--color-sand);
}

.calendar-day--empty {
    cursor: default;
}

.calendar-day--empty:hover {
    background: transparent;
}

.calendar-day--today {
    font-weight: 700;
    color: var(--color-action);
}

.calendar-day--selected {
    background: var(--color-action);
    color: var(--color-white);
}

.calendar-day--selected:hover {
    background: var(--color-action);
}

.calendar-day--future {
    color: var(--color-lines);
    cursor: default;
}

.calendar-day--future:hover {
    background: transparent;
}

.calendar-day__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-action);
    position: absolute;
    bottom: 4px;
}

.calendar-day--selected .calendar-day__dot {
    background: var(--color-white);
}

/* --------------------------------------------------------------------------
   Rhythm Day Detail
   -------------------------------------------------------------------------- */

.rhythm-day-detail {
    background: var(--color-white);
    border-radius: 5px;
    padding: 24px;
    border: 1px solid var(--color-lines);
    margin-bottom: 24px;
}

.rhythm-day-detail__date {
    font-family: var(--font-accent);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-chokolade);
    margin: 0 0 16px;
    text-transform: capitalize;
}

.rhythm-day-detail__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rhythm-day-detail__empty {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-secondary, #8B7D6B);
    text-align: center;
    padding: 16px 0;
}

.rhythm-day-detail__add-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 24px;
    background: var(--color-action);
    color: var(--color-white);
    border: none;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.rhythm-day-detail__add-btn:hover {
    opacity: 0.9;
}

/* Quick taps summary in day detail */
.day-quicktaps-summary {
    padding: 12px 16px;
    background: var(--color-sand);
    border-radius: 5px;
}

.day-quicktaps-summary__row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.day-quicktaps-summary__row:last-child {
    margin-bottom: 0;
}

.day-quicktaps-summary__label {
    font-weight: 600;
    min-width: 60px;
}

/* --------------------------------------------------------------------------
   Rhythm Stats
   -------------------------------------------------------------------------- */

.rhythm-stats {
    background: var(--color-white);
    border-radius: 5px;
    padding: 24px;
    border: 1px solid var(--color-lines);
}

.rhythm-stats__title {
    font-family: var(--font-accent);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-chokolade);
    margin: 0 0 16px;
}

.rhythm-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.rhythm-stat {
    text-align: center;
}

.rhythm-stat__value {
    font-family: var(--font-accent);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-action);
    display: block;
}

.rhythm-stat__label {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-text-secondary, #8B7D6B);
    margin-top: 4px;
    display: block;
}

/* --------------------------------------------------------------------------
   Loading state
   -------------------------------------------------------------------------- */

.journal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--color-text-secondary, #8B7D6B);
    font-family: var(--font-body);
    font-size: 14px;
}

.journal-loading__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-lines);
    border-top-color: var(--color-action);
    border-radius: 50%;
    animation: journalSpin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes journalSpin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
    .journal-app {
        padding: 0 0 60px;
    }

    .journal-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .journal-card {
        min-height: 190px;
        padding: 20px 16px;
    }

    .journal-card__name {
        font-size: 16px;
    }

    .journal-flow {
        padding: 0 16px;
    }

    .rhythm-stats__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .mood-option {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .energy-bar {
        width: 32px;
    }
}

/* Standalone page body — replaces .woocommerce-account wrapper */
.standalone-page-body {
    padding: var(--space-8) 0 var(--space-16);
}

/* Override archive-header flex layout — no controls on this page */
.site-main > .archive-header .container {
    display: block;
    text-align: center;
}
.site-main > .archive-header .archive-description {
    max-width: 600px;
    margin: 0 auto;
}
