/* ============================================
   OmniTools — PREMIUM CLEAN DESIGN (v3)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --primary: #4f46e5;
    --primary-light: #eef2ff;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #f1f5f9;
    --radius: 16px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

html[data-theme="dark"] {
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    transition: background 0.2s ease;
}

/* ============================================
   Clean Premium Hero
   ============================================ */
.hero.is-primary {
    background: #f8fafc !important;
    border-bottom: 1px solid var(--border);
    padding: 3rem 1rem !important;
}

html[data-theme="dark"] .hero.is-primary {
    background: #0f172a !important;
}


.hero .title {
    color: var(--text) !important;
    font-weight: 800;
    font-size: 2.75rem !important;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    color: var(--text-muted) !important;
    font-weight: 500;
}

.hero .input {
    background: var(--card-bg) !important;
    border: 2px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow);
    height: 3.5rem !important;
}

.hero .input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* ============================================
   Standardized Tool Grid (Proper 3-4 columns)
   ============================================ */
.compact-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100%;
}

.tool-card-premium {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    text-decoration: none !important;
    color: inherit !important;
    height: 100%;
}

.tool-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.icon-box {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.tool-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

/* Multi-color Icons Restore */
.has-text-danger .icon-box { background: #fef2f2; color: #ef4444; }
.has-text-success .icon-box { background: #f0fdf4; color: #22c55e; }
.has-text-info .icon-box { background: #eff6ff; color: #3b82f6; }
.has-text-warning .icon-box { background: #fffbeb; color: #f59e0b; }
.has-text-purple .icon-box { background: #faf5ff; color: #a855f7; }

/* SEO Content Improvements */
.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-weight: 700;
    color: var(--text);
}

/* Section Header Bar */
.section-header {
    border-top: 4px solid var(--primary);
    padding-top: 2rem;
    margin-top: 4rem;
}

/* Premium Tool Cards (People Also Use) */
.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    text-align: center;
}

.tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tool-card .icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

.tool-card .tool-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

.tool-card .tool-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}.sidebar-link.active {
    background-color: #00d1b2; /* Or your primary brand color */
    color: white !important;
    font-weight: bold;
    border-radius: 4px;
}

.tools-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 180px;
    flex-shrink: 0;
    position: sticky;
    top: 70px;
    align-self: flex-start;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.tools-sidebar-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

#allToolsGrid {
    flex: 1;
    min-width: 0;
}

.sidebar-link {
    padding: 10px;
    text-decoration: none;
    color: #4a4a4a;
    transition: all 0.2s;
}

/* ── Responsive sidebar ── */
@media (max-width: 768px) {
    .tools-sidebar-layout {
        flex-direction: column;
    }
    .tools-sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    .sidebar-link {
        padding: 6px 12px;
        border: 1px solid #e2e8f0;
        border-radius: 20px;
        font-size: 0.85rem;
    }
}
