/* ==========================================
   RaikTools V2 - Category Landing Pages CSS
   Dedicated styling for category landing pages
   ========================================== */

/* 1. Category Hero Section */
.cat-hero-v2 {
    background: radial-gradient(circle at 50% 0%, #0f172a 0%, #020617 100%) !important;
    color: #ffffff !important;
    padding: 3.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.cat-hero-v2::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(56, 189, 248, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.cat-hero-v2 .container {
    position: relative;
    z-index: 2;
}

/* Category Pill Badges & Breadcrumbs */
.cat-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.cat-breadcrumb .breadcrumb-item a:hover {
    color: #38bdf8 !important;
}

.cat-breadcrumb .breadcrumb-item.active {
    color: #ffffff !important;
    font-weight: 600;
}

.cat-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 50rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #38bdf8;
    font-weight: 600;
    font-size: 0.8125rem;
    backdrop-filter: blur(8px);
}

.cat-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 0.875rem;
    color: #ffffff;
}

.cat-hero-title .highlight-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cat-hero-desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    max-width: 720px;
    margin-bottom: 1.75rem;
}

/* 2. Live Search Box in Hero */
.cat-search-box {
    position: relative;
    max-width: 520px;
}

.cat-search-box .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.125rem;
    pointer-events: none;
    z-index: 3;
}

.cat-search-input {
    width: 100%;
    padding: 0.875rem 1.25rem 0.875rem 3.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f172a !important;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.cat-search-input:focus {
    background: #ffffff !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25), 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    outline: none;
}

.cat-hero-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    padding: 2rem;
    backdrop-filter: blur(12px);
    text-align: center;
}

.cat-hero-icon {
    font-size: 3.5rem;
    color: #38bdf8;
    margin-bottom: 0.75rem;
}

/* 3. Featured Tools Section */
.cat-section-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.015em;
    margin-bottom: 0.25rem;
}

.cat-section-sub {
    font-size: 0.9375rem;
    color: #64748b;
}

.cat-featured-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    text-decoration: none !important;
    position: relative;
}

.cat-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.cat-icon-wrapper {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    background: #f1f5f9;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.cat-featured-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.cat-featured-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.cat-featured-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* 4. Bento Tool Matrix Cards */
.cat-tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 1rem 1.125rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

.cat-tool-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.06);
}

.cat-tool-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 0.5rem;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

.cat-tool-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-tool-desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-tool-arrow {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.cat-tool-card:hover .cat-tool-arrow {
    color: #2563eb;
    transform: translateX(3px);
}

/* 5. Related Categories Section */
.cat-related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none !important;
    color: #0f172a;
    transition: all 0.2s ease;
    height: 100%;
}

.cat-related-card:hover {
    border-color: #38bdf8;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.12);
}

.cat-related-icon {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    border-radius: 0.5rem;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.cat-related-name {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .cat-hero-v2 {
        padding: 2.5rem 0 3rem;
    }
    .cat-hero-title {
        font-size: 2rem;
    }
    .cat-hero-desc {
        font-size: 0.9375rem;
    }
}
