/* =============================================================================
   Zoomie Personalization — Styles
   Covers: archive tabs, post grid cards, section titles, channel pages.
   ============================================================================= */

/* --- Archive --------------------------------------------------------------- */
.zp-archive {
    max-width: 860px;
    margin: 0 auto;
}

.zp-archive-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.zp-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    border: 2px solid #c4b83b;
    background: #fff;
    color: #003366;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.zp-tab-btn--active {
    background: #c4b83b;
    color: #fff;
    box-shadow: 0 3px 10px rgba(196, 184, 59, 0.35);
}

.zp-tab-count {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 11px;
    padding: 1px 8px;
    margin-left: 2px;
}

.zp-divider {
    border: none;
    border-top: 2px solid #f0ece0;
    margin-bottom: 28px;
}

/* --- Archive List ---------------------------------------------------------- */
.zp-archive-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #f0ece0;
}

.zp-archive-date {
    min-width: 60px;
    text-align: center;
    padding-top: 3px;
}

.zp-date-day {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: #003366;
    line-height: 1;
}

.zp-date-month {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.zp-archive-content {
    flex-grow: 1;
}

.zp-archive-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.zp-archive-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.zp-archive-title a {
    color: #003366;
    text-decoration: none;
}

.zp-archive-title a:hover {
    text-decoration: underline;
}

.zp-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    background: #f5f0e8;
    color: #003366;
    white-space: nowrap;
}

.zp-archive-excerpt {
    margin: 0 0 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.55;
}

.zp-read-link {
    font-size: 12px;
    font-weight: 700;
    color: #c4b83b;
    text-decoration: none;
}

.zp-read-link:hover {
    text-decoration: underline;
}

.zp-pagination {
    text-align: center;
    margin-top: 32px;
}

.zp-empty {
    text-align: center;
    color: #888;
    padding: 40px 0;
}

/* --- Pet Sections ---------------------------------------------------------- */
.zp-sections {
    max-width: 900px;
    margin: 0 auto;
}

.zp-section {
    margin-bottom: 48px;
}

.zp-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #003366;
    border-left: 5px solid #c4b83b;
    padding-left: 12px;
    margin-bottom: 20px;
}

.zp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* --- Post Card ------------------------------------------------------------- */
.zp-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.zp-card__date {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zp-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.zp-card__title a {
    color: #003366;
    text-decoration: none;
}

.zp-card__title a:hover {
    text-decoration: underline;
}

.zp-card__excerpt {
    margin: 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
}

.zp-card__link {
    font-size: 13px;
    font-weight: 700;
    color: #c4b83b;
    text-decoration: none;
    margin-top: auto;
}

.zp-card__link:hover {
    text-decoration: underline;
}

/* --- Mobile ---------------------------------------------------------------- */
@media (max-width: 640px) {
    /* Prevent content from running edge-to-edge */
    .zp-archive {
        padding: 0 4px;
    }

    /* Tabs — smaller pills, still wrap cleanly */
    .zp-archive-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .zp-tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    /* Post cards — single column */
    .zp-grid {
        grid-template-columns: 1fr;
    }

    /* Archive items — stack vertically */
    .zp-archive-item {
        flex-direction: column;
        gap: 4px;
        padding: 14px 0;
    }

    /*
     * Date block: switch from a vertical "calendar tile" to a compact
     * horizontal inline format (e.g. "20 APR 2026") to save vertical space.
     */
    .zp-archive-date {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        gap: 5px;
        min-width: unset;
        padding-top: 0;
    }

    .zp-date-day {
        font-size: 14px;
        font-weight: 800;
        line-height: 1;
    }

    .zp-date-month {
        font-size: 12px;
        margin-top: 0;
        text-transform: uppercase;
        color: #888;
        letter-spacing: 0.3px;
    }

    /* Bigger, easier-to-read excerpt on mobile */
    .zp-archive-excerpt {
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 10px;
    }

    /* Touch-friendly read link — min 44px tap target */
    .zp-read-link {
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-weight: 700;
    }

    /* Archive title slightly smaller so it doesn't overflow */
    .zp-archive-title {
        font-size: 15px;
    }
}
