﻿/*
Theme Name: Nova AI Directory
Theme URI: https://example.com/nova-ai
Author: Antigravity
Description: A modern, high-performance AI Tools Directory theme with Bento-style layout.
Version: 1.2.1
*/

/* =============================================
   AIXPLORIA CARD STYLES - Priority Override
   ============================================= */

.tools-grid-featured {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
}

@media (max-width: 1200px) {
    .tools-grid-featured {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .tools-grid-featured {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .tools-grid-featured {
        grid-template-columns: 1fr !important;
    }
}

/* AIX Card Container */
/* =============================================
   CREATIVE CARD REDESIGN - DEEP GLASS STYLE
   ============================================= */

/* AIX Card Container */
.aix-card {
    background: #ffffff;
    border-radius: 24px;
    /* More rounded */
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    /* Taller */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    box-shadow:
        0 10px 30px -5px rgba(0, 0, 0, 0.05),
        0 4px 6px -1px rgba(0, 0, 0, 0.03);
    z-index: 1;
}

/* Hover Effect: Float & Glow */
.aix-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 25px 50px -12px rgba(50, 50, 93, 0.15),
        0 0 0 2px rgba(99, 102, 241, 0.1);
    /* Subtle focus ring */
    border-color: rgba(99, 102, 241, 0.2);
    z-index: 10;
}

/* Gradient Glow Background */
.aix-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.aix-card:hover .aix-card-glow {
    opacity: 1;
}

/* Modern Ribbon */
.aix-ribbon-modern {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
    z-index: 5;
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

.aix-card:hover .aix-ribbon-modern {
    transform: rotate(0deg) scale(1.1);
}

/* Card Body */
.aix-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center everything */
    z-index: 2;
}

/* Meta Top Row */
.aix-meta-top {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    /* Align pill left */
    gap: 10px;
    margin-bottom: 20px;
    min-height: 24px;
}

.aix-votes-pill {
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.aix-votes-pill .arrow {
    color: #10b981;
}

.aix-featured-pill {
    background: #fdf2f8;
    color: #db2777;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Hero Section */
.aix-hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 15px;
    gap: 15px;
}

.aix-logo-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    transition: transform 0.3s ease;
}

.aix-card:hover .aix-logo-wrapper {
    transform: scale(1.1);
}

.aix-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.aix-logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.aix-verified-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #22c55e;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.aix-title-modern {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    color: #1e293b;
}

.aix-title-modern a:hover {
    background: linear-gradient(to right, #2563eb, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aix-desc-modern {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

.aix-card-footer {
    padding: 15px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fcfcfc;
    display: flex;
    justify-content: center;
    /* Center content */
}

[data-theme="dark"] .aix-card-footer {
    background: #1e293b;
    border-color: #334155;
}

.aix-visit-btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2563eb;
    /* Fallback */
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: white;
    width: auto;
    /* Shrink width */
    min-width: 140px;
    /* Minimum width */
    padding: 10px 24px;
    /* Reduced padding */
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

/* Shiny effect on button */
.aix-visit-btn-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.aix-card:hover .aix-visit-btn-modern::after {
    left: 150%;
    transition: 0.7s ease-in-out;
}

.aix-visit-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Dark Mode Overrides */
[data-theme="dark"] .aix-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .aix-title-modern {
    color: #f8fafc;
}

[data-theme="dark"] .aix-desc-modern {
    color: #94a3b8;
}

[data-theme="dark"] .aix-votes-pill {
    background: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .aix-verified-badge {
    border-color: #1e293b;
}

/* ============================================= */

:root {
    /* Colors */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --badge-bg: #f1f5f9;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 70px;

    /* Typography */
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-header: rgba(15, 23, 42, 0.8);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --badge-bg: #334155;
    --primary: #3b82f6;
}

/* Reset */
body {
    margin: 0;
    font-family: var(--font-body);
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* Scrolled Sticky Header */
.site-header.scrolled {
    height: 60px;
    /* Shrink height */
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Add shadow */
    border-bottom-color: transparent;
}

[data-theme="dark"] .site-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.title-nova {
    color: var(--text-main);
}

.title-ai {
    color: var(--primary);
}

.site-navigation ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-navigation a {
    font-weight: 500;
    font-size: 0.95rem;
}

.site-navigation a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

/* Hero */
.hero-section {
    text-align: center;
    padding: 60px 20px 40px;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-branding {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

/* Hero Logo Float Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-logo-icon {
    color: #1e293b;
    /* Dark Navy */
    width: 48px;
    height: 48px;
    animation: float 4s ease-in-out infinite;
}

.hero-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1e3a8a;
    /* Deep Blue form image */
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-sub-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

[data-theme="dark"] .hero-logo-icon {
    color: #f8fafc;
}

[data-theme="dark"] .hero-main-title {
    color: #60a5fa;
}

[data-theme="dark"] .hero-section {
    background-image: radial-gradient(#334155 1px, transparent 1px);
}

/* Toolbar Layout */
.search-toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    padding: 10px 20px;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.search-toolbar::-webkit-scrollbar {
    display: none;
}

/* 1. Search Input */
.search-toolbar-form {
    flex-shrink: 0;
    width: 220px;
    /* Reduced from 280px */
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    /* Condensed padding */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.input-wrapper input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.9rem;
    /* Slightly smaller */
    color: var(--text-main);
    font-family: inherit;
}

.input-wrapper input::placeholder {
    color: #a1a1aa;
    font-style: italic;
}

.input-wrapper .icon-search {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-left: 1px solid var(--border-color);
    padding-left: 8px;
    margin-left: 5px;
}

/* 2. Socials */
.toolbar-socials {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 5px;
}

.social-icon {
    font-size: 1.1rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.social-icon:hover {
    color: var(--primary);
    opacity: 1;
}

/* 3. Category */
.toolbar-category {
    flex-shrink: 0;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 9px 30px 9px 12px;
    /* Condensed */
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

/* 4. Verified */
.toolbar-verified {
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.verified-btn input {
    display: none;
}

.verified-label {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.verified-label .icon-check {
    color: #3b82f6;
    font-size: 1.1rem;
}

.verified-btn input:checked+.verified-label {
    border-color: #3b82f6;
    background: #eff6ff;
}

.info-icon {
    color: #3b82f6;
    cursor: help;
    font-size: 1rem;
}

/* 5. Pricing Chips */
.toolbar-pricing {
    display: flex;
    gap: 8px;
    /* Reduced gap */
}

.price-chip {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 7px 14px;
    /* Reduced padding */
    border-radius: 8px;
    font-size: 0.85rem;
    /* Smaller font */
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.price-chip:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.price-chip.active {
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

/* Individual Chip Colors (Optional based on image logic) */
.price-chip[data-pricing="free"] {
    color: #16a34a;
}

.price-chip[data-pricing="free"]:hover {
    border-color: #16a34a;
    background: #f0fdf4;
}

.price-chip[data-pricing="freemium"] {
    color: #ca8a04;
}

.price-chip[data-pricing="freemium"]:hover {
    border-color: #ca8a04;
    background: #fefce8;
}

.price-chip[data-pricing="paid"] {
    color: #dc2626;
}

.price-chip[data-pricing="paid"]:hover {
    border-color: #dc2626;
    background: #fef2f2;
}

.price-chip[data-pricing="free-trial"] {
    color: #9333ea;
}

.price-chip[data-pricing="free-trial"]:hover {
    border-color: #9333ea;
    background: #faf5ff;
}

/* Responsive Toolbar */
@media (max-width: 1024px) {
    .search-toolbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-toolbar-form {
        width: 100%;
        max-width: 400px;
        order: 1;
        margin-bottom: 10px;
    }

    .toolbar-socials {
        order: 2;
        margin-bottom: 10px;
    }

    .toolbar-category {
        order: 3;
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }

    .custom-select {
        width: 100%;
    }

    .toolbar-verified {
        order: 4;
        margin-right: 15px;
    }

    .toolbar-pricing {
        order: 5;
    }
}

/* Grid */
.tools-grid-section {
    padding: 40px 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Card Restyle */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #fcd34d;
    /* Golden glow on hover like sample */
}

.tool-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 15px;
}

/* 1. Top Row */
.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    position: relative;
    /* For ribbon positioning if needed absolute */
}

.card-upvote {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-main);
    font-weight: 600;
}

.card-featured-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #a855f7;
    /* Purple/Pink */
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-ribbon-top {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #f59e0b;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 20px 20px 5px;
    transform: rotate(45deg);
    width: 30px;
    text-align: center;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* 2. Center Content */
.card-main-content {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
}

.card-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Circle logo */
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-header-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 12px;
    text-align: left;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    line-height: 1.3;
}

.icon-verified-gold::after {
    content: "✔";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #fbbf24;
    color: white;
    border-radius: 50%;
    font-size: 0.6rem;
    vertical-align: middle;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 3. Bottom Action */
.card-footer-action {
    margin-top: auto;
}

.btn-visit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #1d4ed8;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-visit:hover {
    background: #1e3a8a;
}

.tool-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    padding: 20px;
}

.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.tool-logo img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

.logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.tool-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    background: var(--badge-bg);
    color: var(--text-muted);
}

.badge-free {
    color: #16a34a;
    background: #dcfce7;
}

.badge-paid {
    color: #dc2626;
    background: #fee2e2;
}

.badge-freemium {
    color: #ca8a04;
    background: #fef9c3;
}

.badge-verified {
    color: #2563eb;
    background: transparent;
    font-size: 1rem;
}

.tool-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.tool-rating {
    font-size: 0.9rem;
    color: #f59e0b;
    font-weight: normal;
}

.tool-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Category List */
.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding-bottom: 60px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.category-card:hover {
    border-color: var(--primary);
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.category-card .count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: auto;
    background: var(--bg-card);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Spinner */
.loading-spinner {
    position: absolute;
    left: 50%;
    padding: 20px;
    transform: translateX(-50%);
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .search-form {
        flex-direction: column;
    }

    .filter-group select {
        border-left: none;
        border-top: 1px solid var(--border-color);
        width: 100%;
        padding: 10px 0;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* =============================================
   Category Lists Section (4 Columns)
   ============================================= */
.section-category-lists {
    padding: 20px 0 60px;
}

.category-lists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-list-column {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.column-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
    /* Default gray divider */
}

/* Custom header colors to match image hints */
.category-list-column:nth-child(1) .column-header {
    border-bottom-color: #fca5a5;
}

/* Reddish */
.category-list-column:nth-child(2) .column-header {
    border-bottom-color: #fcd34d;
}

/* Yellowish */
.category-list-column:nth-child(3) .column-header {
    border-bottom-color: #93c5fd;
}

/* Blueish */
.category-list-column:nth-child(4) .column-header {
    border-bottom-color: #86efac;
}

/* Greenish */

.column-icon {
    font-size: 1.2rem;
}

.column-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.mini-tool-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.mini-tool-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f9fafb;
}

.mini-tool-item:last-child {
    border-bottom: none;
}

.tool-index {
    color: #9ca3af;
    font-size: 0.8rem;
    width: 20px;
}

.mini-tool-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    color: #374151;
    transition: 0.2s;
}

.mini-tool-link:hover {
    color: var(--primary);
}

.mini-tool-thumb {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
}

.mini-tool-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.mini-visit-icon {
    color: #d1d5db;
    transition: 0.2s;
}

.mini-visit-icon:hover {
    color: var(--primary);
}

.see-all-btn {
    display: block;
    text-align: center;
    background: #f9fafb;
    color: #4b5563;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 15px;
    transition: 0.2s;
}

.see-all-btn:hover {
    background: #f3f4f6;
    color: var(--primary);
}

/* Dark Mode Overrides for Category Lists */
[data-theme="dark"] body {
    background: #0f172a;
    color: #f8fafc;
}

[data-theme="dark"] .category-list-column {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .column-title {
    color: #f8fafc;
}

[data-theme="dark"] .column-header {
    border-bottom-color: #334155;
}

[data-theme="dark"] .mini-tool-item {
    border-bottom-color: #334155;
}

[data-theme="dark"] .mini-tool-link {
    color: #cbd5e1;
}

[data-theme="dark"] .mini-tool-link:hover {
    color: #60a5fa;
}

[data-theme="dark"] .mini-tool-placeholder {
    background: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .see-all-btn {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .see-all-btn:hover {
    background: #475569;
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-lists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .category-lists-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Single Tool Page Redesign (Dynamic & Premium)
   ============================================= */
.st-container {
    padding: 60px 20px 100px;
    max-width: 1100px;
    position: relative;
    z-index: 1;
}

/* Background Glow Effect */
.st-container::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 300px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
}

.st-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    position: relative;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.st-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

[data-theme="dark"] .st-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-color: #334155;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Header Row */
.st-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

[data-theme="dark"] .st-card-header {
    border-color: #334155;
}

.st-rank-badge {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
    transition: 0.2s;
}

.st-rank-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .st-rank-badge {
    background: #1e3a8a;
    border-color: #3b82f6;
    color: #93c5fd;
}

.st-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.st-icon-action {
    color: #94a3b8;
    font-size: 1.1rem;
    transition: 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.st-icon-action:hover {
    color: var(--primary);
    background: #eff6ff;
}

[data-theme="dark"] .st-icon-action:hover {
    background: #334155;
}

.st-views-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 10px;
    font-weight: 600;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 20px;
}

[data-theme="dark"] .st-views-count {
    background: #334155;
    color: #cbd5e1;
}

/* Content Grid */
.st-content-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Media Column */
.st-media-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* Soft shadow specifically for the image container */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    background: #f1f5f9;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.st-media-wrapper:hover {
    transform: scale(1.01);
}

.st-main-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Info Column */
.st-info-column {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    /* Removed border-left in favor of a cleaner look */
}

.st-title-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.st-title-icon {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.st-emoji-icon {
    font-size: 2.2rem;
    background: #fff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.st-main-title {
    font-size: 2.5rem;
    /* Larger Title */
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .st-main-title {
    background: linear-gradient(90deg, #f8fafc, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.st-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    font-style: normal;
    /* Removed italics for modern look */
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #60a5fa;
}

[data-theme="dark"] .st-description {
    background: #1e293b;
    color: #cbd5e1;
}

/* Meta Row */
.st-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.st-pill {
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.st-pill:hover {
    transform: translateY(-1px);
}

.st-vote-pill {
    background: #eff6ff;
    color: #2563eb;
}

[data-theme="dark"] .st-vote-pill {
    background: #1e40af;
    color: #fff;
}

.st-pricing-pill {
    background: #ecfdf5;
    color: #059669;
}

[data-theme="dark"] .st-pricing-pill {
    background: #064e3b;
    color: #6ee7b7;
}

.st-rating-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-left: 10px;
}

/* Links Row */
.st-links-row {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}

.st-bottom-link {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 600;
    transition: 0.2s;
    border-bottom: 2px solid transparent;
}

.st-bottom-link:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Actions */
.st-actions-area {
    margin-top: auto;
    text-align: right;
}

.st-visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white !important;
    padding: 16px 40px;
    /* Larger button */
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
    /* Glow shadow */
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.st-visit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.st-visit-btn:hover::after {
    left: 100%;
}

.st-visit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35);
}

/* Tags Footer */
.st-tags-footer {
    border-top: 1px solid #f1f5f9;
    margin-top: 50px;
    padding-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

[data-theme="dark"] .st-tags-footer {
    border-color: #334155;
}

.st-tag {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}

.st-tag:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .st-tag {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

[data-theme="dark"] .st-tag:hover {
    background: #334155;
    border-color: #475569;
    color: #fff;
}

/* Responsive Single Tool */
@media (max-width: 900px) {
    .st-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .st-media-wrapper {
        min-height: 250px;
    }

    .st-actions-area {
        text-align: center;
        margin-top: 30px;
    }


    .st-visit-btn {
        width: 100%;
    }
}

/* =============================================
   SINGLE PAGE REDESIGN - CLEAN MODERN
   ============================================= */

.single-clean-container {
    padding-top: 30px;
    padding-bottom: 80px;
    max-width: 1100px;
}

/* Breadcrumbs */
.clean-breadcrumbs {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #64748b;
}

.clean-breadcrumbs a {
    color: #64748b;
    font-weight: 500;
}

.clean-breadcrumbs a:hover {
    color: #2563eb;
}

.clean-breadcrumbs .sep {
    margin: 0 8px;
    color: #cbd5e1;
}

.clean-breadcrumbs .current {
    color: #0f172a;
    font-weight: 600;
}

/* Grid Layout */
.clean-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

/* 1. Header Card */
.clean-header-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .clean-header-card {
    background: #1e293b;
    border-color: #334155;
}

.clean-header-top {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.clean-logo-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    padding: 4px;
}

[data-theme="dark"] .clean-logo-wrapper {
    background: #334155;
    border-color: #475569;
}

.clean-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.clean-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #94a3b8;
}

.clean-header-info {
    flex: 1;
}

.clean-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #0f172a;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-theme="dark"] .clean-title {
    color: #f8fafc;
}

.clean-verified-badge {
    color: #2563eb;
    background: #eff6ff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.clean-excerpt {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.clean-meta-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.clean-tag {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.clean-tag.pricing-tag {
    background: #ecfdf5;
    color: #059669;
}

.clean-tag.rating-tag {
    background: #fffbeb;
    color: #d97706;
}

.clean-tag.date-tag {
    background: #f8fafc;
    color: #94a3b8;
}

/* 2. Media Section */
.clean-media-section {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.clean-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* 3. Content Box */
.clean-content-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .clean-content-box,
[data-theme="dark"] .clean-media-section {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.clean-section-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    color: #0f172a;
}

[data-theme="dark"] .clean-section-heading {
    color: #f8fafc;
    border-color: #334155;
}

.clean-prose {
    font-size: 1rem;
    line-height: 1.7;
    color: #334155;
}

[data-theme="dark"] .clean-prose {
    color: #cbd5e1;
}

.clean-prose p {
    margin-bottom: 1.5em;
}

/* SIDEBAR */
.clean-sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .clean-sidebar-card {
    background: #1e293b;
    border-color: #334155;
}

.sticky-card {
    position: sticky;
    top: 100px;
}

.clean-action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.action-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-popularity {
    font-size: 0.9rem;
    color: #64748b;
}

.clean-visit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #2563eb;
    color: white;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.clean-visit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.clean-visit-btn.disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.clean-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.clean-action-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 8px;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

[data-theme="dark"] .clean-action-btn {
    background: #334155;
    border-color: #475569;
    color: #cbd5e1;
}

.clean-action-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.clean-sidebar-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 20px 0;
}

[data-theme="dark"] .clean-sidebar-divider {
    background: #334155;
}

.sidebar-categories h4 {
    font-size: 0.95rem;
    margin: 0 0 15px 0;
    color: #0f172a;
}

[data-theme="dark"] .sidebar-categories h4 {
    color: #f8fafc;
}

.sidebar-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-mini-tag {
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    transition: 0.2s;
}

[data-theme="dark"] .sidebar-mini-tag {
    background: #334155;
    color: #cbd5e1;
}

.sidebar-mini-tag:hover {
    background: #e2e8f0;
    color: #334155;
}


/* Responsive Clean Layout */
@media (max-width: 900px) {
    .clean-grid-layout {
        grid-template-columns: 1fr;
    }

    .clean-header-top {
        flex-direction: column;
    }

    .clean-logo-wrapper {
        width: 60px;
        height: 60px;
    }

    .sticky-card {
        position: static;
    }
}

/* =============================================
   Category Page Redesign (Restored)
   ============================================= */

.cat-page-container {
    padding-top: 40px;
    padding-bottom: 80px;
}

/* 1. Header Banner Card */
.cat-header-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

[data-theme="dark"] .cat-header-card {
    background: #1e293b;
    border-color: #334155;
}

.cat-header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.cat-header-image {
    flex-shrink: 0;
}

.cat-img-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cat-header-content {
    flex: 1;
}

.cat-subtitle {
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.cat-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #1e293b;
}

[data-theme="dark"] .cat-title {
    color: #f8fafc;
}

.cat-description {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 20px;
    max-width: 600px;
}

.cat-meta-badges {
    display: flex;
    gap: 10px;
}

.cat-badge-pill {
    background: #f1f5f9;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

[data-theme="dark"] .cat-badge-pill {
    background: #334155;
    color: #cbd5e1;
}

/* Stats Column */
.cat-header-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.cat-stat-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

[data-theme="dark"] .cat-stat-item {
    background: #1e293b;
    border-color: #475569;
}

.stat-icon {
    font-size: 1.2rem;
    color: #94a3b8;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info strong {
    font-size: 0.9rem;
    color: #1e293b;
}

[data-theme="dark"] .stat-info strong {
    color: #f8fafc;
}

.stat-info span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}

/* 2. Featured Section */
.cat-featured-section {
    position: relative;
    margin-bottom: 40px;
}

/* Pink Line Decoration */
.cat-featured-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: #ec4899;
    border-radius: 4px;
}

.cat-featured-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #fce7f3;
    /* Light pink border */
    margin-left: 20px;
    /* Space for the pink line */
    position: relative;
}

[data-theme="dark"] .cat-featured-card {
    background: #1e293b;
    border-color: #831843;
}

.feat-badge-top {
    position: absolute;
    top: -12px;
    right: 30px;
    background: #ffffff;
    color: #ec4899;
    border: 1px solid #fbcfe8;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .feat-badge-top {
    background: #334155;
    border-color: #831843;
}

.feat-card-inner {
    display: flex;
    align-items: center;
    gap: 25px;
}

.feat-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.feat-icon-wrapper img,
.feat-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.feat-placeholder {
    background: #e0e7ff;
    color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.feat-verified-tick {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #f59e0b;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

.feat-content {
    flex: 1;
}

.feat-title {
    font-size: 1.4rem;
    margin: 0 0 5px 0;
    color: #1e293b;
}

.feat-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.feat-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feat-upvote {
    background: #fdf2f8;
    color: #db2777;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.feat-visit-btn {
    background: #ec4899;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* 3. Toolbar */
.cat-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

[data-theme="dark"] .cat-toolbar {
    background: #1e293b;
    border-color: #334155;
}

.toolbar-socials {
    display: flex;
    gap: 10px;
}

.toolbar-socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

[data-theme="dark"] .toolbar-socials a {
    background: #334155;
    color: #cbd5e1;
}

.toolbar-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* 4. Ranked Grid */
.cat-tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

[data-theme="dark"] .tb-search input,
[data-theme="dark"] .tb-select {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.cat-grid-item-wrapper {
    position: relative;
}

.rank-absolute-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    background: #e2e8f0;
    /* Default rank color */
    color: #475569;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 8px 0;
    z-index: 20;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Top 3 Ranks coloring */
.cat-grid-item-wrapper:nth-child(1) .rank-absolute-badge {
    background: #fcd34d;
    color: #78350f;
}

/* Gold */
.cat-grid-item-wrapper:nth-child(2) .rank-absolute-badge {
    background: #e5e7eb;
    color: #374151;
}

/* Silver */
.cat-grid-item-wrapper:nth-child(3) .rank-absolute-badge {
    background: #fdba74;
    color: #7c2d12;
}

/* Bronze */


/* Responsive */
@media (max-width: 1024px) {
    .cat-tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cat-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .cat-header-stats {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cat-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-header-stats {
        flex-direction: column;
    }

    .feat-card-inner {
        flex-direction: column;
        text-align: center;
    }

    .cat-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-controls {
        flex-direction: column;
    }

    .tb-search {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .cat-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   CREATIVE CARD DESIGN (User Request)
   ============================================= */

/* Grid Fixes */
.cat-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 10px;
}

/* Card Container */
.cat-grid-item-wrapper .cre-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    /* Soft, diffuse shadow */
    height: 100%;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .cat-grid-item-wrapper .cre-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
}

.cat-grid-item-wrapper .cre-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
    /* Blue glow on hover */
    border-color: rgba(37, 99, 235, 0.2);
}

/* Header */
.cre-header {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.cre-logo-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.cre-logo,
.cre-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    /* Smooth rounded square */
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.cre-logo-placeholder {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #64748b;
}

.cre-verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #2563eb;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cre-title-area {
    flex: 1;
}

.cre-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.cre-title a {
    color: #0f172a;
    text-decoration: none;
    transition: 0.2s;
}

.cre-title a:hover {
    color: #2563eb;
}

[data-theme="dark"] .cre-title a {
    color: #f8fafc;
}

.cre-subtitle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #64748b;
}

.cre-price {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.cre-price.free {
    color: #16a34a;
}

.cre-price.paid {
    color: #dc2626;
}

.cre-price.freemium {
    color: #ea580c;
}

.cre-dot {
    color: #cbd5e1;
}

.cre-votes {
    background: #fdf2f8;
    color: #db2777;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Body */
.cre-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cre-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .cre-desc {
    color: #94a3b8;
}

.cre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.cre-tag {
    background: #f1f5f9;
    /* Neutral soft gray */
    color: #475569;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: 0.2s;
}

[data-theme="dark"] .cre-tag {
    background: #334155;
    color: #cbd5e1;
}

.cre-tag:hover {
    background: #e0f2fe;
    color: #0284c7;
}

/* Footer */
.cre-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    margin-top: auto;
}

[data-theme="dark"] .cre-footer {
    border-color: #334155;
}

.cre-visit-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 20px;
    background: #0f172a;
    /* Dark button like 'black' primary */
    color: white;
    border-radius: 12px;
    /* Smooth */
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2);
}

.cre-visit-btn:hover {
    background: #2563eb;
    /* Pop of blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.cre-visit-btn .icon {
    font-size: 1.1rem;
    margin-top: -2px;
}

/* Make sure toolbar works too */
.cat-toolbar-refined {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: transparent;
    flex-wrap: wrap;
    gap: 20px;
}

.ref-socials {
    display: flex;
    gap: 15px;
}

.ref-socials a {
    color: #64748b;
    font-size: 1.1rem;
}

.ref-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ref-search {
    position: relative;
    width: 220px;
}

.ref-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    outline: none;
}

.ref-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.ref-cat-display,
.ref-verified-btn,
.ref-sort select {
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
}

.ref-verified-btn {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ref-verified-btn input {
    display: none;
}

.ref-v-icon {
    color: #2563eb;
}

@media (max-width: 768px) {
    .cat-tools-grid {
        grid-template-columns: 1fr;
    }

    .cat-toolbar-refined,
    .ref-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .ref-search {
        width: 100%;
    }
}

/* =============================================
   CREATIVE CARD REDESIGN (v2) - Step Id: 52
   ============================================= */

.creative-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    height: 100%;
    min-height: 380px;
}

.creative-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    z-index: 10;
}

/* 1. Top Bar (Badges) */
.cc-top-bar {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
    pointer-events: none;
    /* Allow clicking through if needed */
}

.cc-badge-price {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.cc-badge-price.free {
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
}

.cc-badge-price.freemium {
    color: #ca8a04;
    background: #fefce8;
    border: 1px solid #fef9c3;
}

.cc-badge-price.paid {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fee2e2;
}

.cc-badge-rating {
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.cc-badge-rating .star {
    color: #f59e0b;
}

/* 2. Visual / Logo Section */
.cc-visual {
    height: 140px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

/* Background Pattern/Mesh for Visual */
.cc-visual::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%);
    top: -50%;
    left: -50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cc-logo-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.creative-card:hover .cc-logo-wrapper {
    transform: scale(1.15) rotate(-3deg);
}

.cc-logo,
.cc-logo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* Soft shadow */
    background: white;
}

.cc-logo-placeholder {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
}

.cc-verified {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: #2563eb;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 3. Content Body */
.cc-content {
    padding: 24px 24px 10px;
    /* Top, Sides, Bot */
    text-align: center;
    flex: 1;
    /* Pushes footer down */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cc-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.3;
    color: #1e293b;
}

.cc-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.creative-card:hover .cc-title a {
    color: var(--primary);
}

.cc-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 4. Footer Actions */
.cc-footer {
    padding: 20px 24px;
    border-top: 1px solid transparent;
    /* Cleaner look without border maybe? or very subtle */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
}

.cc-stats {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 12px;
}

.cc-actions {
    display: flex;
    gap: 10px;
}

.cc-btn-details {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    border: 1px solid transparent;
}

.cc-btn-details:hover {
    background: #fff;
    color: var(--primary);
    border-color: var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cc-btn-visit {
    background: #0f172a;
    /* Dark Button */
    color: white;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.creative-card:hover .cc-btn-visit {
    background: var(--primary);
    /* Blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.cc-btn-visit .arrow {
    transition: transform 0.3s;
}

.creative-card:hover .cc-btn-visit .arrow {
    transform: translateX(3px);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .creative-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .cc-visual {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .cc-badge-price,
[data-theme="dark"] .cc-badge-rating {
    background: rgba(30, 41, 59, 0.95);
    color: #e2e8f0;
    border-color: #334155;
    box-shadow: none;
}

[data-theme="dark"] .cc-title {
    color: #f8fafc;
}

[data-theme="dark"] .cc-desc {
    color: #94a3b8;
}

[data-theme="dark"] .cc-stats,
[data-theme="dark"] .cc-btn-details {
    background: #0f172a;
    /* Darker bg */
    color: #94a3b8;
}

[data-theme="dark"] .cc-btn-visit {
    background: #f8fafc;
    color: #0f172a;
}

[data-theme="dark"] .creative-card:hover .cc-btn-visit {
    background: var(--primary);
    color: white;
}