/* 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: 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;
}

@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: fadeInDown 0.8s ease-out;
}

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

.gradient-text {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.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;
}

@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);
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 0.6s ease-out forwards;
}

.category-card[data-index="1"] { animation-delay: 0.1s; }
.category-card[data-index="2"] { animation-delay: 0.2s; }
.category-card[data-index="3"] { animation-delay: 0.3s; }
.category-card[data-index="4"] { animation-delay: 0.4s; }
.category-card[data-index="5"] { animation-delay: 0.5s; }
.category-card[data-index="6"] { animation-delay: 0.6s; }

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.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;
}

.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;
}

/* ===== 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 .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);
    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;
    transition: all 0.3s ease;
    font-weight: 500;
}

.modern-breadcrumb a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
    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;
    }
}