/* Category Page Styles */

/* ===== HERO SECTION ===== */
.categories-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px 60px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    /* Animation disabled for performance - static background */
    /* animation: float 20s ease-in-out infinite; */
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8), transparent);
    top: -150px;
    right: -100px;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.8), transparent);
    bottom: -100px;
    left: -80px;
    /* animation-delay: 7s; - Disabled */
}

/* @keyframes float animation disabled for performance */
/* @keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
} */

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
    /* animation disabled for performance */
    /* animation: fadeInDown 0.8s ease-out; */
    opacity: 1;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    /* animation disabled for performance */
    /* animation: fadeInUp 0.8s ease-out 0.2s both; */
    opacity: 1;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 30px;
    /* animation disabled for performance */
    /* animation: fadeInUp 0.8s ease-out 0.4s both; */
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    /* animation disabled for performance */
    /* animation: fadeInUp 0.8s ease-out 0.6s both; */
    opacity: 1;
}

.stat-pill {
    display: flex;
    flex-direction: column;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===== SUMMARY SECTION ===== */
.category-summary-section {
    background: var(--bg-primary, #f8fafc);
    padding: 40px 20px;
}

.category-summary-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.summary-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    background: var(--card-bg, #ffffff);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.summary-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.summary-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.summary-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary, #111827);
    margin: 4px 0;
}

.summary-note {
    color: var(--text-secondary, #4b5563);
    margin: 0;
    font-size: 0.95rem;
}

.dark-mode .category-summary-section {
    background: #0f172a;
}

.dark-mode .summary-card {
    background: #1f2937;
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.dark-mode .summary-label {
    color: #cbd5f5;
}

.dark-mode .summary-value {
    color: #f8fafc;
}

.dark-mode .summary-note {
    color: #94a3b8;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Animations disabled - using CSS instead of animation keyframes for better performance */
    opacity: 1;
    transform: translateY(0);
}

/* Animation delays disabled for performance - cards load instantly */

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #6366f1;
}

/* Trending/Popular Category Cards */
.popular-category-card {
    border: 2px solid rgba(102, 126, 234, 0.2);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    position: relative;
}

.popular-category-card::before {
    content: '🔥';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    opacity: 0.9;
    z-index: 1;
    animation: trendingPulse 2s ease-in-out infinite;
}

.popular-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 48px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

@keyframes trendingPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.15);
        opacity: 1;
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
}

.category-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.category-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #6b7280;
}

.meta-item svg {
    color: #9ca3af;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

.category-stats-mini {
    display: none;
}

.category-topline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-stats-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.12);
    font-size: 0.85rem;
    font-weight: 600;
    color: #4f46e5;
}

.category-snippet {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.category-uses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.use-chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.category-stat-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 1px solid rgba(102, 126, 234, 0.18);
}

.category-stat-panel .stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    font-weight: 700;
    margin: 0;
}

.category-stat-panel .stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(148, 163, 184, 0.5);
}

.tools-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.tool-preview-item:hover {
    background: #f9fafb;
}

.tool-preview-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tool-preview-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.tool-preview-info {
    flex: 1;
    min-width: 0;
}

.tool-preview-name {
    display: block;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.tool-preview-name:hover {
    color: #6366f1;
}

.tool-preview-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-preview-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.star {
    font-size: 1rem;
}

.rating {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.9rem;
}

.no-tools {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-style: italic;
}

.card-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.explore-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.explore-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ===== SEO FOOTER ===== */
.category-seo-section {
    background: var(--bg-primary, #f8fafc);
    padding: 80px 20px;
}

.category-seo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 40px;
    align-items: start;
}

.category-seo-copy h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.category-seo-copy p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.category-seo-copy ul {
    padding-left: 20px;
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.category-seo-copy li {
    margin-bottom: 8px;
}

.seo-note {
    font-size: 0.95rem;
    color: #6b7280;
    font-style: italic;
}

.seo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.12);
    color: #4c1d95;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.category-seo-links h3 {
    margin: 0 0 16px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.seo-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.seo-link-grid a {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
    color: var(--text-primary);
}

.seo-link-grid a small {
    font-weight: 500;
    color: var(--text-secondary);
}

.seo-link-grid a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    border-color: #667eea;
}

@media (max-width: 991px) {
    .category-seo-container {
        grid-template-columns: 1fr;
    }
}

.dark-mode .category-seo-section {
    background: #0b1120;
}

.dark-mode .category-seo-copy h2 {
    color: #f8fafc;
}

.dark-mode .category-seo-copy p,
.dark-mode .category-seo-copy li {
    color: #cbd5f5;
}

.dark-mode .seo-note {
    color: #94a3b8;
}

.dark-mode .seo-badge {
    background: rgba(99, 102, 241, 0.25);
    color: #e0e7ff;
}

.dark-mode .category-seo-links h3 {
    color: #f1f5f9;
}

.dark-mode .seo-link-grid a {
    background: #1e293b;
    border-color: rgba(99, 102, 241, 0.35);
    color: #e2e8f0;
}

.dark-mode .seo-link-grid a small {
    color: #94a3b8;
}

/* ===== DARK MODE ===== */
.dark-mode .categories-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.dark-mode .gradient-orb {
    opacity: 0.3;
}

.dark-mode .categories-section {
    background: linear-gradient(to bottom, #0f172a 0%, #1e293b 100%);
}

.dark-mode .category-card {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .category-card:hover {
    border-color: #818cf8;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dark-mode .category-stats-pill {
    background: rgba(79, 70, 229, 0.2);
    color: #c7d2fe;
}

.dark-mode .category-snippet {
    color: #cbd5f5;
}

.dark-mode .use-chip {
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
}

.dark-mode .category-stat-panel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(76, 29, 149, 0.1));
    border-color: rgba(99, 102, 241, 0.3);
}

.dark-mode .category-stat-panel .stat-label {
    color: #cbd5f5;
}

.dark-mode .category-stat-panel .stat-value {
    color: #f8fafc;
}

.dark-mode .stat-divider {
    background: rgba(71, 85, 105, 0.7);
}

.dark-mode .popular-category-card {
    border-color: rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
}

.dark-mode .popular-category-card:hover {
    border-color: #667eea;
    box-shadow: 0 24px 48px rgba(102, 126, 234, 0.3);
}

.dark-mode .card-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom-color: #334155;
}

.dark-mode .category-name {
    color: #f8fafc;
}

.dark-mode .meta-item {
    color: #94a3b8;
}

.dark-mode .meta-item svg {
    color: #64748b;
}

.dark-mode .tool-preview-item:hover {
    background: #0f172a;
}

.dark-mode .tool-preview-name {
    color: #f8fafc;
}

.dark-mode .tool-preview-name:hover {
    color: #818cf8;
}

.dark-mode .tool-preview-desc {
    color: #94a3b8;
}

.dark-mode .rating {
    color: #94a3b8;
}

.dark-mode .no-tools {
    color: #64748b;
}

.dark-mode .card-footer {
    background: #0f172a;
    border-top-color: #334155;
}

.dark-mode .explore-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.dark-mode .explore-btn:hover {
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .categories-hero {
        min-height: auto;
        padding: 60px 20px 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .stat-pill {
        padding: 12px 24px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-name {
        font-size: 1.2rem;
    }
    
    .category-icon-wrapper {
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }
}

/* ===== MODERN BREADCRUMB ===== */
.modern-breadcrumb {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 24px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    /* Hover animation disabled for performance */
    /* transition: all 0.3s ease; */
}

.modern-breadcrumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.modern-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    /* Animation disabled for performance */
    /* transition: all 0.3s ease; */
    font-weight: 500;
}

.modern-breadcrumb a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
    /* animation disabled */
    /* transform: scale(1.05); */
}

.modern-breadcrumb a i {
    font-size: 12px;
    opacity: 0.7;
}

.modern-breadcrumb i.fa-chevron-right {
    color: #a0aec0;
    font-size: 10px;
    margin: 0 4px;
}

.modern-breadcrumb span {
    color: #4a5568;
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(74, 85, 104, 0.1);
    border-radius: 8px;
}

/* Dark Mode Support */
body.dark-mode .modern-breadcrumb {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6));
    border-color: rgba(148, 163, 184, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.dark-mode .modern-breadcrumb a {
    color: #60a5fa;
}

body.dark-mode .modern-breadcrumb a:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #93c5fd;
}

body.dark-mode .modern-breadcrumb i.fa-chevron-right {
    color: #64748b;
}

body.dark-mode .modern-breadcrumb span {
    color: #e2e8f0;
    background: rgba(226, 232, 240, 0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-breadcrumb {
        padding: 12px 16px;
        margin: 16px 0;
        font-size: 13px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .modern-breadcrumb a {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .modern-breadcrumb span {
        padding: 6px 10px;
        font-size: 13px;
    }
}