/**
 * Category Section Block Styles
 */

.crypto-news-category-section-block {
    width: 100%;
    padding: 24px 0;
}

.crypto-news-category-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.crypto-news-category-section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--wp--preset--color--foreground, #1a1a1a);
}

.crypto-news-category-section-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--wp--preset--color--primary, #0066cc);
    text-decoration: none;
    transition: color 0.2s ease;
}

.crypto-news-category-section-link:hover {
    color: var(--wp--preset--color--primary, #0052a3);
    text-decoration: underline;
}

.crypto-news-category-section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crypto-news-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.category-section-item {
    position: relative;
}

.category-section-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: var(--wp--preset--color--background, #fff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-section-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-section-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-section-link:hover .category-section-image img {
    transform: scale(1.05);
}

.category-section-content {
    padding: 20px;
}

.category-section-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--wp--preset--color--primary, #0066cc);
    margin-bottom: 12px;
}

.category-section-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: var(--wp--preset--color--foreground, #1a1a1a);
}

.category-section-date {
    font-size: 12px;
    color: var(--wp--preset--color--foreground, #999);
}

/* List Layout */
.crypto-news-category-list .category-section-item {
    margin-bottom: 0;
}

.crypto-news-category-list .category-section-link {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.crypto-news-category-list .category-section-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.crypto-news-category-list .category-section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Editor Preview Styles */
.crypto-news-category-section-preview {
    padding: 16px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 12px;
}

.section-header-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header-preview h2 {
    font-size: 20px;
    margin: 0;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.preview-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.preview-image {
    width: 100%;
    height: 100px;
    background: #ddd;
}

.preview-content {
    padding: 12px;
}

.preview-category {
    display: block;
    font-size: 10px;
    color: #666;
    margin-bottom: 8px;
}

.preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.crypto-news-category-section-placeholder {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .crypto-news-category-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .crypto-news-category-list .category-section-link {
        flex-direction: column;
    }

    .crypto-news-category-list .category-section-image {
        width: 100%;
        height: 200px;
    }
}

