/* ============================================================
   RoozBook - Archive Page Styles
   ============================================================ */

.archive-page {
    max-width: 900px;
    margin: 0 auto;
}

.archive-header {
    margin-bottom: 24px;
}

.archive-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.archive-header p {
    font-size: 0.9rem;
    color: #777;
}

/* Year/Month Nav */
.archive-nav {
    margin-bottom: 28px;
}

.archive-years {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.year-btn {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.82rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.year-btn.active,
.year-btn:hover {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
}

.archive-months {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.month-btn {
    padding: 5px 12px;
    background: #f8f9fa;
    border: 1px solid transparent;
    border-radius: 16px;
    font-family: inherit;
    font-size: 0.78rem;
    color: #666;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.month-btn.active,
.month-btn:hover {
    background: #2c3e50;
    color: #fff;
}

/* Archive List */
.archive-month-group {
    margin-bottom: 32px;
}

.archive-month-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e67e22;
}

.archive-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.archive-item {
    display: flex;
    gap: 16px;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.archive-item:hover {
    border-color: #e67e22;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.archive-item-image {
    width: 180px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.archive-item-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.archive-item-content {
    flex: 1;
}

.archive-item-date {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 4px;
}

.archive-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 6px;
}

.archive-item-title a {
    color: #1a1a1a;
}

.archive-item-title a:hover {
    color: #e67e22;
}

.archive-item-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 6px;
}

.archive-item-meta {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: #999;
}

.archive-item-category {
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 12px;
    color: #e67e22;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-btn.active,
.page-btn:hover {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
}

/* Responsive */
@media (max-width: 768px) {
    .archive-item {
        flex-direction: column;
    }
    
    .archive-item-image {
        width: 100%;
    }
    
    .archive-item-image img {
        height: 180px;
    }
}