/**
 * Index/Archive Page Styles
 * 
 * @package Forgeee
 * @since 1.0.0
 */

/* レイアウト */
.site-content {
    padding: 40px 0;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    max-width: var(--fg-content-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

/* メインコンテンツ */
.site-main {
    flex: 1;
    min-width: 0;
}

/* サイドバー付きレイアウト */
.content-wrapper.has-sidebar .site-main {
    flex: 1;
}

.site-sidebar {
    width: var(--fg-sidebar-width, 300px);
    flex-shrink: 0;
}

/* ブレッドクラム */
.breadcrumbs {
    background: #f5f5f5;
    padding: 10px 0;
    font-size: 14px;
}

.breadcrumbs .separator {
    margin: 0 10px;
    color: #999;
}

/* 投稿リスト */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 投稿カード */
.post-card {
    background: #fff;
    border-radius: var(--fg-border-radius, 8px);
    overflow: hidden;
    box-shadow: var(--fg-box-shadow, 0 2px 10px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #f0f0f0;
}

.post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.post-title {
    font-size: 1.5rem;
    margin: 10px 0;
}

.post-title a {
    color: var(--fg-text-color, #333);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--fg-primary-color, #1297b0);
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
}

/* ページネーション */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.pagination .current {
    background: var(--fg-primary-color, #1297b0);
    color: #fff;
    border-color: var(--fg-primary-color, #1297b0);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .site-sidebar {
        width: 100%;
    }
    
    .post-title {
        font-size: 1.25rem;
    }
}