/**
 * WeegoSoft Tools — Light Theme
 * Applied on the hub homepage, about, pricing, and category pages.
 */

/* =============================================
   CSS VARIABLES — LIGHT
   ============================================= */
:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-text: #1e293b;
    --color-muted: #64748b;
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-accent: #06b6d4;
    --nav-height: 4rem;
    --radius-card: 1.25rem;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* =============================================
   GLOBAL RESET
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Outfit', system-ui, -apple-system, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--color-text);
}

.navbar-brand .brand-highlight {
    color: var(--color-primary);
}

.navbar-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.navbar-nav a {
    padding: 0.5rem 1rem;
    border-radius: 0.625rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted);
    transition: color 0.15s, background 0.15s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--color-text);
    background: #f1f5f9;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: #eff6ff;
    color: var(--color-primary);
    border: 1px solid #c7d2fe;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

/* =============================================
   SEARCH BAR
   ============================================= */
.search-wrapper {
    max-width: 44rem;
    margin: 0 auto 3.5rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.125rem 3.5rem 1.125rem 3.5rem;
    font-size: 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 1rem;
    background: var(--color-surface);
    color: var(--color-text);
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1), 0 4px 20px rgba(0, 0, 0, 0.06);
}

.search-icon {
    position: absolute;
    left: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    pointer-events: none;
}

.search-shortcut {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
    pointer-events: none;
}

/* =============================================
   CATEGORY FILTER TABS
   ============================================= */
.category-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1.5px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.category-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #eff6ff;
}

.category-tab.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* =============================================
   TOOL CARDS — HUB GRID
   ============================================= */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.tool-card-hub {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.tool-card-hub:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: #c7d2fe;
}

.tool-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    flex-shrink: 0;
}

.tool-card-title {
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--color-text);
}

.tool-card-desc {
    font-size: 0.8rem;
    color: var(--color-muted);
    line-height: 1.55;
    flex: 1;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text);
}

.section-title small {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.15rem;
}

.section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.15s;
}

.section-link:hover {
    gap: 0.5rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.875rem;
}

/* =============================================
   AI SEARCH RESULTS PANEL
   ============================================= */
.ai-results-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem 2rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .navbar {
        padding: 0 1rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}