/**
 * Archive Page Styles - Grid Layout
 * RiseCreatives Theme
 */

/* 容器樣式 */
.rise-theme-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* 頁面標題 */
.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.archive-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* 搜尋和篩選區塊 */
.rise-theme-archive-filters {
    margin-bottom: 50px;
}

.rise-theme-search-form {
    max-width: 900px;
    margin: 0 auto;
}

.rise-theme-search-wrapper {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.rise-theme-search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    outline: none;
}

.rise-theme-search-input::placeholder {
    color: #999;
}

.rise-theme-category-select {
    padding: 15px 20px;
    border: none;
    background: #f5f5f5;
    border-radius: 50px;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    outline: none;
    min-width: 180px;
}

.rise-theme-search-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 35px;
    background: #497871;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rise-theme-search-button:hover {
    background: #3a6259;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(73, 120, 113, 0.3);
}

/* Grid 網格布局 */
.rise-theme-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* 文章卡片 */
.rise-theme-grid-post {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.rise-theme-grid-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 文章縮圖 */
.rise-theme-post-thumbnail {
    position: relative;
    overflow: hidden;
    height: 175px;
    background: #f5f5f5;
}

.rise-theme-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rise-theme-grid-post:hover .rise-theme-post-thumbnail img {
    transform: scale(1.1);
}

/* 文章內容 */
.rise-theme-post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta 資訊 */
.rise-theme-entry-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #999;
}

.rise-theme-entry-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rise-theme-entry-meta svg {
    color: #FFC369;
}

.rise-theme-cat-links a {
    color: #497871;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.rise-theme-cat-links a:hover {
    color: #FFC369;
}

/* 文章標題 */
.rise-theme-entry-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.rise-theme-entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rise-theme-entry-title a:hover {
    color: #497871;
}

/* 文章摘要 */
.rise-theme-entry-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* 閱讀更多 */
.rise-theme-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #497871;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.rise-theme-read-more:hover {
    color: #FFC369;
    gap: 10px;
}

.rise-theme-read-more svg {
    transition: transform 0.3s ease;
}

.rise-theme-read-more:hover svg {
    transform: translateX(3px);
}

/* 無文章顯示 */
.rise-theme-no-posts {
    text-align: center;
    padding: 80px 20px;
}

.rise-theme-no-posts svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.rise-theme-no-posts h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.rise-theme-no-posts p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.rise-theme-back-home {
    display: inline-block;
    padding: 12px 30px;
    background: #497871;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rise-theme-back-home:hover {
    background: #3a6259;
    transform: translateY(-2px);
}

/* 分頁 */
.pagination {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #497871;
    color: #fff;
    border-color: #497871;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .rise-theme-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .rise-theme-container {
        padding: 40px 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .rise-theme-search-wrapper {
        flex-direction: column;
        border-radius: 20px;
        gap: 10px;
    }
    
    .rise-theme-search-input,
    .rise-theme-category-select,
    .rise-theme-search-button {
        border-radius: 12px;
    }
    
    .rise-theme-category-select {
        min-width: auto;
    }
    
    .rise-theme-posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .rise-theme-post-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .rise-theme-entry-title {
        font-size: 1.2rem;
    }
    
    .rise-theme-post-content {
        padding: 20px;
    }
}