/* ==========================================================================
   Wisdom Imbibe Tools Directory Stylesheet
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables & Theme System */
:root {
    /* Main Branding Palette */
    --brand-primary: #0e6caf;      /* Primary Wisdom Imbibe Blue */
    --brand-dark: #1e293b;         /* Slate 800 */
    --brand-darker: #0f172a;       /* Slate 900 */
    --brand-light: #f8fafc;        /* Slate 50 */
    --brand-accent: #3182ce;       /* Action Blue */
    
    /* Category/Silo Color Tokens */
    --color-finance: #10b981;      /* Emerald Green */
    --color-transit: #f59e0b;      /* Amber Yellow */
    --color-health: #ef4444;       /* Rose Red */
    --color-productivity: #6366f1; /* Indigo Blue */
    --color-games: #ec4899;        /* Warm Pink */

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #0e6caf, #1d4ed8);
    --gradient-dark: linear-gradient(185deg, #1e293b, #0f172a);
    --gradient-card-hover: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    
    /* Fonts */
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Shadows & Transitions */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 20px -3px rgba(0,0,0,0.1), 0 4px 10px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 30px -5px rgba(0,0,0,0.15), 0 10px 15px -5px rgba(0,0,0,0.05);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--brand-light);
    color: #334155; /* Slate 700 */
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-dark);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.25rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--brand-primary);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b; /* Slate 500 */
    margin-top: 12px;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--brand-darker);
    color: var(--brand-light);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a:hover {
    color: var(--brand-accent);
    transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--brand-primary);
    color: white;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link {
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.creator-panel-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.creator-panel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    background: var(--gradient-dark);
    color: white;
    padding: 100px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 108, 175, 0.15) 0%, transparent 70%);
    top: -300px;
    right: -200px;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -150px;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
}

.hero-title span {
    background: linear-gradient(135deg, #60a5fa, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8; /* Slate 400 */
    margin-bottom: 40px;
    font-weight: 400;
}

.search-box-wrap {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-full);
}

.search-box-input {
    width: 100%;
    padding: 18px 24px 18px 56px;
    font-size: 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-full);
    color: white;
    outline: none;
    transition: var(--transition-smooth);
}

.search-box-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.2);
}

.search-box-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* --- Filter Chips --- */
.filter-chips-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.filter-chip {
    padding: 10px 20px;
    border: 1px solid #cbd5e1;
    background-color: white;
    color: #475569;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.filter-chip:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.filter-chip.active {
    background-color: var(--brand-darker);
    border-color: var(--brand-darker);
    color: white;
}

/* Results header */
.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-count {
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    background-color: #e2e8f0;
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

/* --- Tools Grid & Cards --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.tool-card {
    background-color: white;
    border-radius: var(--radius-lg);
    border: 1px solid #cbd5e1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

/* Category card top strip & accents */
.tool-card.cat-finance::before { background-color: var(--color-finance); }
.tool-card.cat-transit::before { background-color: var(--color-transit); }
.tool-card.cat-health::before { background-color: var(--color-health); }
.tool-card.cat-productivity::before { background-color: var(--color-productivity); }
.tool-card.cat-games::before { background-color: var(--color-games); }

.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tool-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    transition: var(--transition-smooth);
}

.cat-finance .tool-icon-wrapper { background-color: var(--color-finance); }
.cat-transit .tool-icon-wrapper { background-color: var(--color-transit); }
.cat-health .tool-icon-wrapper { background-color: var(--color-health); }
.cat-productivity .tool-icon-wrapper { background-color: var(--color-productivity); }
.cat-games .tool-icon-wrapper { background-color: var(--color-games); }

.tool-card:hover .tool-icon-wrapper {
    transform: scale(1.1) rotate(6deg);
}

.tool-meta-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.tag-pop, .tag-cpm {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-pop {
    background-color: #fef3c7;
    color: #d97706;
}

.tag-cpm {
    background-color: #dcfce7;
    color: #15803d;
}

.tool-card-body {
    flex-grow: 1;
}

.tool-card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--brand-dark);
}

.tool-card-desc {
    font-size: 0.9rem;
    color: #64748b; /* Slate 500 */
    line-height: 1.5;
}

.tool-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.tool-target {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.tool-btn i {
    transition: var(--transition-smooth);
}

.tool-card:hover .tool-btn i {
    transform: translateX(4px);
}

/* Empty states */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-lg);
}

.no-results i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.no-results p {
    color: #64748b;
}

/* --- Silo Map Section --- */
.silo-map-section {
    background-color: #f1f5f9;
}

.silo-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* --- Category Cards (clickable, filter the tools grid below) --- */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
}

.category-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
}

.category-card:hover,
.category-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-primary);
}

.category-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: white;
}

.category-card.cat-finance .category-card-icon { background-color: var(--color-finance); }
.category-card.cat-transit .category-card-icon { background-color: var(--color-transit); }
.category-card.cat-health .category-card-icon { background-color: var(--color-health); }
.category-card.cat-productivity .category-card-icon { background-color: var(--color-productivity); }
.category-card.cat-games .category-card-icon { background-color: var(--color-games); }

.category-card h3 {
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.category-card-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-primary);
    background: #eef2ff;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.category-card-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 14px;
    flex-grow: 1;
}

.category-card-cta {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-card:hover .category-card-cta i {
    transform: translateX(3px);
}
.category-card-cta i {
    transition: var(--transition-smooth);
}



/* --- FAQ Section --- */
.faq-accordion-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border-radius: var(--radius-md);
    border: 1px solid #cbd5e1;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark);
    cursor: pointer;
    outline: none;
}

.faq-question i {
    transition: var(--transition-smooth);
    color: #64748b;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    padding: 0 24px;
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Big enough to fit text */
}

/* --- Footer --- */
.main-footer {
    background-color: var(--brand-darker);
    color: #94a3b8;
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: white;
    margin-bottom: 16px;
}

.footer-desc {
    line-height: 1.6;
    max-width: 320px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: #64748b;
}

/* --- Creator Console Side-Drawer --- */
.sim-dashboard-drawer {
    position: fixed;
    top: 0;
    right: -480px; /* Hidden offscreen by default */
    width: 480px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.sim-dashboard-drawer.active {
    right: 0;
}

.sim-header {
    background-color: var(--brand-darker);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sim-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.sim-body-grid {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sim-status-card {
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    padding: 20px;
}

.sim-status-title {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--brand-dark);
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

/* Forms */
.form-grid-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(14, 108, 175, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #0b5991;
    box-shadow: var(--shadow-md);
}

/* JSON Code Box */
.json-output-box {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-family: monospace !important;
    font-size: 0.8rem !important;
    background-color: #0f172a;
    color: #f8fafc;
    border: 1px solid #1e293b;
    resize: none;
}

/* --- Breadcrumb --- */
.breadcrumb-bar {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
}
.breadcrumb-list {
    list-style: none;
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
}
.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #cbd5e1;
}
.breadcrumb-list a:hover {
    color: var(--brand-primary);
}
.breadcrumb-list li[aria-current="page"] {
    color: var(--brand-dark);
    font-weight: 600;
}

/* --- About / E-E-A-T content block --- */
.about-block {
    max-width: 820px;
    margin: 0 auto 10px;
    text-align: center;
    color: #475569;
    font-size: 0.95rem;
}
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-top: 22px;
    color: #64748b;
    font-size: 0.82rem;
}
.trust-strip span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}
.trust-strip i { color: var(--brand-primary); }

/* --- Sync status pill (shows where tool data is coming from) --- */
.sync-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: #eef2ff;
    color: #4338ca;
    margin-bottom: 14px;
}
.sync-status-pill.live { background: #ecfdf5; color: #047857; }
.sync-status-pill.offline { background: #fef2f2; color: #b91c1c; }
.sync-status-pill i { font-size: 0.7rem; }

/* --- Password Gate Modal (protects Add Tool console) --- */
.password-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    padding: 20px;
}
.password-modal-overlay.active {
    display: flex;
}
.password-modal-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 380px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: modalPop 0.25s ease;
}
@keyframes modalPop {
    from { transform: scale(0.94); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.password-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}
.password-modal-box h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.password-modal-box p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 18px;
}
.password-modal-box input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
}
.password-modal-box input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(14, 108, 175, 0.15);
}
.password-modal-error {
    color: #dc2626;
    font-size: 0.8rem;
    min-height: 18px;
    margin-bottom: 8px;
}
.password-modal-actions {
    display: flex;
    gap: 10px;
}
.password-modal-actions .btn {
    flex: 1;
}
.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}
.btn-secondary:hover {
    background: #e2e8f0;
}
.locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    background: rgba(255,255,255,0.15);
    padding: 3px 9px;
    border-radius: var(--radius-full);
    margin-left: 8px;
}

/* --- Skeleton loading state for tools grid --- */
.tool-card-skeleton {
    height: 230px;
    border-radius: var(--radius-md);
    background: linear-gradient(100deg, #eef2f7 30%, #f8fafc 50%, #eef2f7 70%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- TOASTS --- */
.custom-toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
}

.custom-toast {
    background-color: #0f172a;
    color: #f8fafc;
    border: 1px solid #1e293b;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 0.4s ease;
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #60a5fa;
}

.toast-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
}

.toast-close:hover {
    color: white;
}

.toast-body {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* --- Keyframe Animations --- */
@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .category-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .category-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section {
        padding: 50px 0;
    }
    .main-header .container {
        position: relative;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--brand-primary);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active {
        max-height: 300px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-link {
        display: block;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .sim-dashboard-drawer {
        width: 100%;
        right: -100%;
    }
}
