/* ==========================================================================
   pages.css — styles for journey summary + day detail pages
   (home page is fully covered by style.css + layout.css)
   ========================================================================== */

/* --- Journey summary page: trip header + stats + day cards --- */

.trip-english {
    font-family: 'DM Mono';
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
    margin: 8px 0 0;
}

/* 3-column stats (route-stats in style.css is 4-column for the home route section) */
.trip-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 24px 0;
    margin-bottom: 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trip-stats div {
    border-left: 1px solid var(--line);
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.trip-stats div:first-child {
    border-left: 0;
    padding-left: 0;
}

.trip-stats strong {
    font-family: 'DM Mono';
    font-size: 28px;
    font-weight: 500;
    color: #168873;
}

.trip-stats span {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 0.08em;
}

/* Day card link (stretched link over the whole card, like .card-stretched-link) */
.day-card {
    position: relative;
}

.day-card-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* The card-main already has cursor:pointer from style.css; keep it.
   The CTA hint on day cards needs a darker color than .card-cta (which is mint
   for dark backgrounds). */
.day-card .card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 500 10px 'DM Mono';
    color: #168873;
    letter-spacing: 0.08em;
    margin-left: auto;
    white-space: nowrap;
}

.day-card .card-cta i {
    font-style: normal;
    font-size: 14px;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 12px;
    margin-top: 20px;
}

.empty-state p {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--ink);
}

.empty-state .muted {
    color: var(--muted);
    font-size: 12px;
    font-family: 'DM Mono';
}

.muted {
    color: var(--muted);
}

/* --- Day detail page --- */

.day-detail-page .day-detail {
    padding-top: 0;
    padding-bottom: 80px;
    min-height: calc(100vh - 200px);
}

.day-detail .back-link {
    margin: 42px 0 32px;
}

.day-detail-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 36px 40px 40px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* Left accent bar colored by kind */
.day-detail-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #168873;
}

.day-detail-card[data-kind='wild']::before {
    background: #8578d8;
}

.day-detail-card[data-kind='drive']::before {
    background: #286245;
}

.day-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.day-detail-header .date {
    border-right: 0;
    padding: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
}

.day-detail-header .date span {
    font-size: 10px;
}

.day-detail-header .date b {
    font-size: 20px;
}

.day-detail-route {
    margin-bottom: 18px;
}

.day-detail-route p {
    font-family: 'DM Mono';
    font-size: 11px;
    color: #168873;
    letter-spacing: 0.06em;
    margin: 0;
}

.day-detail h1 {
    font-size: 42px;
    letter-spacing: -0.06em;
    line-height: 1.15;
    margin: 0 0 8px;
    font-weight: 700;
}

.day-detail .subtitle {
    font-family: 'DM Mono';
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 28px;
}

.day-detail-summary {
    font-size: 16px;
    line-height: 1.8;
    color: #2b3a42;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.day-detail-summary p {
    margin: 0;
}

.day-detail-section {
    margin-bottom: 28px;
}

.day-detail-section h2 {
    font-family: 'DM Mono';
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.12em;
    margin: 0 0 14px;
    font-weight: 500;
}

.day-detail-section .transport {
    margin: 0;
}

.day-detail-section .wildlife {
    margin: 0;
}

.day-detail-section .tags {
    margin-top: 4px;
}

/* Prev / next day navigation */
.day-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.day-nav a,
.day-nav span {
    font-family: 'DM Mono';
    font-size: 11px;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: #168873;
    padding: 8px 4px;
}

.day-nav a:hover {
    color: var(--ink);
}

.day-nav-back {
    color: var(--muted);
}

.day-nav .disabled {
    color: var(--line);
    cursor: not-allowed;
}

.day-nav-prev,
.day-nav-next {
    flex: 0 0 auto;
    max-width: 35%;
}

.day-nav-next {
    text-align: right;
}

/* --- Responsive --- */
@media (max-width: 700px) {
    .trip-stats {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .trip-stats div {
        border-left: 0;
        padding-left: 0;
    }

    .day-detail-card {
        padding: 24px 20px 28px;
    }

    .day-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .day-detail h1 {
        font-size: 30px;
    }

    .day-detail-summary {
        font-size: 15px;
    }

    .day-nav {
        flex-wrap: wrap;
        gap: 10px;
    }

    .day-nav-prev,
    .day-nav-next {
        max-width: 100%;
        text-align: left;
    }
}
