/* =============================================================================
   Zoomie Personalization — Archive & Section Styles
   ============================================================================= */

/* --- Wrapper --------------------------------------------------------------- */
.zp-archive {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* --- Page Header ----------------------------------------------------------- */
.zp-archive-header {
    background: linear-gradient(135deg, #003366 0%, #00264d 100%);
    border-radius: 14px;
    padding: 36px 32px 30px;
    margin-bottom: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.zp-archive-header::after {
    content: '🐾';
    position: absolute;
    font-size: 130px;
    opacity: 0.06;
    right: -10px;
    top: -10px;
    line-height: 1;
    pointer-events: none;
}
.zp-archive-header-title {
    font-size: 26px !important;
    font-weight: 900 !important;
    color: #fff !important;
    margin: 0 0 8px !important;
    letter-spacing: 0.5px;
    position: relative;
}
.zp-archive-header-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    position: relative;
}

/* --- Filter Tabs ----------------------------------------------------------- */
.zp-archive-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.zp-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    border: 2px solid #D4AF37;
    background: #fff;
    color: #003366;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    white-space: nowrap;
}
.zp-tab-btn:hover {
    background: #fdf6e3;
    color: #003366;
    text-decoration: none;
}
.zp-tab-btn--active {
    background: #D4AF37;
    color: #fff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}
.zp-tab-btn--active:hover {
    background: #c4a230;
    color: #fff;
}
.zp-tab-count {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 8px;
    margin-left: 2px;
}

/* --- Divider --------------------------------------------------------------- */
.zp-divider {
    border: none;
    border-top: 2px solid #f0ece0;
    margin-bottom: 24px;
}

/* --- Archive List ---------------------------------------------------------- */
.zp-archive-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zp-archive-item {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    border: 1px solid #ede8d6;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.zp-archive-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Date block — left column */
.zp-archive-date {
    background: linear-gradient(160deg, #003366 0%, #004f94 100%);
    min-width: 74px;
    width: 74px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 8px;
    text-align: center;
}
.zp-date-day {
    display: block;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.zp-date-month {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Content area */
.zp-archive-content {
    flex-grow: 1;
    padding: 16px 20px;
    border-left: 3px solid #D4AF37;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.zp-archive-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.zp-archive-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}
.zp-archive-title a {
    color: #003366;
    text-decoration: none;
}
.zp-archive-title a:hover {
    color: #D4AF37;
    text-decoration: none;
}

.zp-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    background: #f5f0e3;
    color: #003366;
    white-space: nowrap;
    border: 1px solid #e8dfc0;
}

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

.zp-read-link {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #D4AF37;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.zp-read-link:hover {
    color: #b8962e;
    text-decoration: none;
}

/* --- Pagination ------------------------------------------------------------ */
.zp-pagination {
    text-align: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 2px solid #f0ece0;
}
.zp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    margin: 3px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #003366;
    background: #fff;
    border: 2px solid #e8dfc0;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.zp-pagination .page-numbers:hover {
    background: #fdf6e3;
    border-color: #D4AF37;
    text-decoration: none;
}
.zp-pagination .page-numbers.current {
    background: #D4AF37;
    color: #fff;
    border-color: #D4AF37;
}
.zp-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
    pointer-events: none;
}

/* --- Empty state ----------------------------------------------------------- */
.zp-empty {
    text-align: center;
    color: #999;
    padding: 60px 20px;
    font-size: 15px;
}

/* --- 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 #D4AF37;
    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.18s ease, box-shadow 0.18s 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: #D4AF37;
    text-decoration: none;
    margin-top: auto;
}
.zp-card__link:hover {
    text-decoration: underline;
}

/* =============================================================================
   MOBILE  ≤ 640px
   ============================================================================= */
@media (max-width: 640px) {

    .zp-archive {
        padding: 0 10px;
    }

    /* Header */
    .zp-archive-header {
        padding: 24px 20px 20px;
        border-radius: 10px;
        margin-bottom: 20px;
    }
    .zp-archive-header-title {
        font-size: 20px !important;
    }
    .zp-archive-header-sub {
        font-size: 13px;
    }

    /* Tabs — stretch to fill row, 44px min tap target */
    .zp-archive-tabs {
        gap: 7px;
        margin-bottom: 18px;
    }
    .zp-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 0 10px;
        min-height: 44px;
        font-size: 13px;
        border-radius: 10px;
    }

    /* Archive items: stack date stripe on top */
    .zp-archive-item {
        flex-direction: column;
        border-radius: 10px;
    }
    .zp-archive-date {
        width: 100%;
        min-width: unset;
        flex-direction: row;
        gap: 6px;
        padding: 9px 14px;
        justify-content: flex-start;
        background: linear-gradient(90deg, #003366 0%, #004f94 100%);
    }
    .zp-date-day {
        font-size: 15px;
        font-weight: 800;
    }
    .zp-date-month {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.75);
        margin-top: 0;
        letter-spacing: 0.3px;
    }
    .zp-archive-content {
        border-left: none;
        border-top: 3px solid #D4AF37;
        padding: 14px 14px 16px;
    }
    .zp-archive-title {
        font-size: 15px;
    }
    .zp-archive-excerpt {
        font-size: 13.5px;
        margin-bottom: 8px;
    }
    .zp-read-link {
        font-size: 13px;
        min-height: 44px;
        font-weight: 800;
    }

    /* Pagination */
    .zp-pagination .page-numbers {
        min-width: 44px;
        height: 44px;
        font-size: 13px;
        margin: 2px;
    }

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