/* コラム記事用スタイル */

/* フィルターセクション */
.filter-section {
    padding: 2rem 0;
    background: var(--bg-secondary);
}

.filter-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    min-width: 150px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* コラム記事グリッド */
.columns-section {
    padding: 4rem 0;
    min-height: 600px;
}

.columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* コラムカード */
.column-card {
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.column-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.column-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.column-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.column-card:hover .column-image img {
    transform: scale(1.05);
}

.column-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.column-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.column-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.column-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.column-author,
.column-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.column-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.column-views,
.column-likes {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.column-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.column-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* ローディング・エラー表示 */
.loading {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.error-message {
    text-align: center;
    padding: 4rem 0;
    color: var(--error-color);
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-message button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1rem;
}

/* ページネーション */
.pagination-section {
    padding: 2rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .columns-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .column-card {
        margin: 0 auto;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .column-image {
        height: 150px;
    }
    
    .column-content {
        padding: 1rem;
    }
    
    .column-title {
        font-size: 1.1rem;
    }
    
    .column-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .column-stats {
        gap: 0.5rem;
    }
}

/* ヒーローセクション調整 */
.columns-section .hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.columns-section .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.columns-section .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* テーマ対応 */
[data-theme="dark"] .column-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .column-tag {
    background: var(--bg-tertiary);
}

/* レイアウト対応 */
[data-layout="classic"] .columns-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

[data-layout="minimal"] .column-card {
    box-shadow: none;
    border: 1px solid var(--border-color);
}

[data-layout="minimal"] .column-card:hover {
    box-shadow: var(--shadow-light);
}