/*
Theme Name: Web3Story Rooted Child
Template: web3story-rooted
Version: 1.0.0
Author: Web3Story
*/

/* ─────────────────────────────
   카테고리 허브 페이지 전용 스타일
   ───────────────────────────── */

.cat-hub-section {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-bottom: 1px solid #e8ecf4;
}

.cat-hub-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cat-hub-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 32px;
}

.cat-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

.cat-hub-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #eef0f5;
    transition: all 0.3s ease;
    overflow: hidden;
}

.cat-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cat-hub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(99,102,241,0.15);
}

.cat-hub-card:hover::before {
    opacity: 1;
}

.cat-hub-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cat-hub-card.crypto .cat-hub-icon { background: #fef3c7; }
.cat-hub-card.blockchain .cat-hub-icon { background: #dbeafe; }
.cat-hub-card.policy .cat-hub-icon { background: #fce7f3; }

.cat-hub-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.cat-hub-card p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.cat-hub-card .cat-count {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 14px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4b5563;
}

.posts-section {
    padding: 40px 0 60px;
}

.posts-section .section-header {
    text-align: center;
    margin-bottom: 32px;
}

.posts-section .section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
}

.posts-section .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .cat-hub-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cat-hub-section {
        padding: 40px 0 30px;
    }
    .cat-hub-card {
        padding: 24px 20px;
    }
    .posts-section .grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .cat-hub-title {
        font-size: 1.2rem;
    }
    .cat-hub-card h3 {
        font-size: 1rem;
    }
}