/* Category Page Component Styles */

.category-workspace {
    padding: 2rem 2.5rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.category-header-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    flex-wrap: wrap;
    gap: 1rem;
}

.category-header-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.category-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-header-title-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.category-header-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #10243E;
    margin: 0;
    letter-spacing: -0.4px;
}

.category-badge-count {
    background: #EFF6E9;
    color: #3B5A27;
    font-weight: 700;
    font-size: 0.825rem;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
}

.category-header-desc {
    font-size: 0.95rem;
    color: #64748B;
    margin: 0.25rem 0 0;
    line-height: 1.45;
}

.category-section-wrap {
    margin-bottom: 2.5rem;
}

.category-section-header {
    margin-bottom: 1.25rem;
}

.category-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #10243E;
    margin: 0 0 0.35rem;
    letter-spacing: -0.3px;
}

.category-section-subtitle {
    font-size: 0.925rem;
    color: #64748B;
    margin: 0;
}

.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.subcat-row-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.15rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.subcat-row-card:hover {
    transform: translateY(-2px);
    border-color: #CBD5E1 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
}

.subcat-card-left {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    flex: 1;
    min-width: 0;
}

.subcat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subcat-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #10243E;
    margin: 0 0 0.2rem;
    line-height: 1.25;
}

.subcat-card-desc {
    font-size: 0.825rem;
    color: #64748B;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subcat-card-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.subcat-badge-article {
    background: #E8F3E6;
    color: #3B5A27;
    font-weight: 700;
    font-size: 0.775rem;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
}

.category-empty-state {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #64748B;
}

/* Responsive Rules */
@media (max-width: 900px) {
    .category-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .category-workspace {
        padding: 1.25rem 1rem !important;
    }

    .category-header-card {
        padding: 1.25rem !important;
    }
}
