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

/* Modern & Premium Design System 2026 */
:root {
    /* Colors - Deep & Vibrant 2026 Palette */
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --primary-color: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #4f46e5, #7c3aed);
    --primary-hover: #4338ca;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --border-color: rgba(226, 232, 240, 0.8);
    --success-color: #22c55e;
    --error-color: #ef4444;

    /* Layout */
    --container-width: 1200px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;

    /* Typography */
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Effects - Ultra Premium */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --card-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --premium-glow: 0 0 20px rgba(79, 70, 229, 0.15);
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
.hero-title {
    font-family: var(--font-heading);
    color: var(--text-color);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #818cf8, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleFade 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3rem;
    animation: subtitleFade 1s ease-out;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    width: 100%;
}

main {
    flex: 1;
}

/* Premium Components */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-secondary:hover {
    background: #059669;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Header & Nav */
header {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    padding-top: 0;
    padding-bottom: 0;
}

header.compact-header {
    padding: 0.15rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

/* Old logo (fallback) */
.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Logo */
.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    z-index: 10;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.1;
}

.logo-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    color: #1A56DB;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

header.compact-header .logo-brand {
    font-size: 1.05rem;
}

header.compact-header .logo-tagline {
    font-size: 0.6rem;
}

header.compact-header img {
    width: 32px;
    height: 32px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: all 0.2s;
    z-index: 2;
}

.menu-toggle:hover {
    background: #f1f5f9;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

header.compact-header nav ul {
    gap: 1.25rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.2s;
    font-size: 0.9rem;
}

header.compact-header nav a,
header.compact-header .dropdown-trigger {
    font-size: 0.85rem;
}

nav a:hover {
    color: var(--primary-color);
}

/* ── Mega Menu Dropdown ─────────────────────────────────── */
.nav-dropdown {
    position: static;
}

.dropdown-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
    user-select: none;
}

.dropdown-trigger:hover {
    color: var(--primary-color);
}

/* Full-width panel that sits below the header */
.dropdown-menu {
    position: fixed;
    top: 57px; /* header height */
    left: 0;
    right: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 16px 40px -8px rgba(0,0,0,0.12);
    display: none;
    z-index: 9999;
    padding: 1.5rem 0;
    max-height: calc(100vh - 57px);
    overflow-y: auto;
}

header.compact-header .dropdown-menu {
    top: 48px;
    max-height: calc(100vh - 48px);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    display: block;
}

/* Inner wrapper centres content and creates 4-col grid */
.mega-dropdown-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

/* Column separator lines */
.mega-col {
    padding: 0 1.25rem;
    border-right: 1px solid #f1f5f9;
}
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child  { border-right: none; padding-right: 0; }

/* Section header — uppercase gray, like ilovepdf */
.mega-col-header {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

/* Each tool row */
.mega-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0.25rem;
    border-radius: 4px;
    text-decoration: none;
    color: #374151;
    font-size: 0.7rem;
    font-weight: 500;
    transition: background 0.12s, color 0.12s;
    margin-bottom: 0.08rem;
    white-space: nowrap;
}

.mega-item:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

/* Popular Tools Cards */
.pop-card:hover {
    box-shadow: 0 12px 30px -5px rgba(79,70,229,0.15);
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary-color) !important;
    background: linear-gradient(to bottom right, #ffffff, #f8fafc) !important;
}

/* Tiny nav icon badge for dropdown — ilovepdf exact */
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    font-size: 0.42rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    line-height: 1;
    overflow: hidden;
}

@media (max-width: 960px) {
    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        border-top: none;
        padding: 0;
        max-height: none;
        background: transparent;
    }
    .nav-dropdown.open .dropdown-menu {
        display: block;
    }
    .mega-dropdown-inner {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .mega-col {
        padding: 0.5rem 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .mega-col:last-child {
        border-bottom: none;
    }
    .mega-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

/* ── Footer Layout ───────────────────────────────────────── */
.footer-link-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}


.footer-col-heading {
    font-size: 0.72rem;
    font-weight: 800;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    margin-top: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.2rem;
}

.footer-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

/* Feature specific styling for Popular Tools */
.footer-links .featured-link {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.footer-links .featured-link:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: white;
}

/* "→ All ..." links stand out slightly */
.footer-links li:last-child a {
    color: #cbd5e1;
    font-weight: 700;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: transparent;
    justify-content: center;
    margin-top: 0.5rem;
}

.footer-links li:last-child a:hover {
    border-style: solid;
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
    transform: none;
}

/* Pill badges for Recently Added */
.footer-badge {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8;
    padding: 0.28rem 0.8rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}

.footer-badge:hover {
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.3);
    color: #a5b4fc;
}

/* Responsive stacking */
@media (max-width: 900px) {
    .footer-link-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .footer-two-col {
        grid-template-columns: 1fr !important;
    }
    .footer-links a {
        font-size: 0.82rem;
        padding: 0.5rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .footer-link-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2-column on mobile */
        gap: 1rem;
    }
    .footer-col-heading {
        font-size: 0.65rem;
        margin-bottom: 1rem;
    }
}


.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.tool-card {
    text-decoration: none;
    color: var(--text-color);
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(79, 70, 229, 0.3);
}

.tool-card:hover::before {
    transform: scaleY(1);
}

.tool-icon {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

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

.tool-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.tool-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.tool-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    margin-top: auto;
}

.tag-primary {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
}

.tag-success {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.tag-warning {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
}

.tag-error {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

/* Inputs & Forms */
input,
select,
textarea {
    font-family: var(--font-body);
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.error-msg {
    background: #fef2f2;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: none;
    border: 1px solid #fee2e2;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.error-msg:not(:empty) {
    display: flex;
}


/* Search Bar Styles */
.search-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.search-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #818cf8, #4f46e5);
    background-size: 300% 100%;
    border-radius: 99px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
    animation: gradientMove 4s linear infinite;
}

.search-wrapper:focus-within::before {
    opacity: 0.6;
}

.search-wrapper input {
    padding: 1.5rem 2.5rem 1.5rem 4rem;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    font-size: 1.25rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-wrapper input:focus {
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 30px 60px -12px rgba(79, 70, 229, 0.15);
    background: white;
}

.search-icon {
    position: absolute;
    left: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    opacity: 0.8;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.search-wrapper:focus-within .search-icon {
    transform: translateY(-50%) scale(1.2);
}

/* Popular Tools Chips */
.popular-tools {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    animation: subtitleFade 1.2s ease-out;
}

.popular-label {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
    display: block;
}

.tool-chip {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-chip:hover {
    transform: translateY(-4px) scale(1.05);
    background: var(--primary-color);
    color: white;
    border-color: transparent;
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.2);
}

.tool-chip:active {
    transform: translateY(0) scale(0.98);
}

.tool-chip span.ico {
    font-size: 1.2rem;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* Animations */
@keyframes titleFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes subtitleFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsive Overrides */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .tool-main-card {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }

    .action-buttons-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    header {
        padding: 0.4rem 0;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        margin-top: 3rem;
    }

    .tool-main-card {
        padding: 1rem;
        border-radius: var(--radius-lg);
    }

    .menu-toggle {
        display: block;
    }

    /* On mobile, logo stays centered via absolute position */
    .logo-center {
        gap: 0.5rem;
    }

    .logo-brand {
        font-size: 1rem;
    }

    /* Hide desktop nav by default, show from right as a dropdown */
    #main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 1.5rem;
        z-index: 999;
        max-height: 85vh;
        overflow-y: auto;
    }

    #main-nav.active {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    #main-nav ul li a {
        display: block;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
    }

    #main-nav ul li:last-child a {
        border-bottom: none;
    }
}


/* Footer Premium */
footer {
    background: #0f172a;
    color: white;
    padding: 6rem 1.5rem 3rem;
    margin-top: 8rem;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
}

.action-buttons-mobile {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #64748b;
}

/* Result Styles */
.result-box {
    margin-top: 2rem;
    padding: 2.5rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.result-box.success {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.result-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 1rem 0;
    word-break: break-all;
}

.copy-btn {
    margin-top: 1rem;
    background: var(--text-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Tool Page Specifics */
.tool-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: titleFade 0.6s ease-out;
}

.tool-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
}

.tool-main-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow-hover);
    margin-bottom: 4rem;
}

/* Privacy Badge Enhancements 2026 */
.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
}

.privacy-badge:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

.privacy-badge i {
    font-size: 1rem;
}

.privacy-badge.pulse {
    animation: badgePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}
/* Media Queries & Responsiveness */
@media (max-width: 1024px) {
    .header-content {
        gap: 1.5rem;
    }
    
    #main-nav ul {
        gap: 1rem;
    }
}

@media (max-width: 960px) {
    .header-content {
        justify-content: space-between !important;
    }

    .logo-center {
        position: relative !important;
        left: auto !important;
        transform: none !important;
    }
    
    .logo-brand {
        font-size: 1rem;
    }

    #main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    #main-nav.active {
        display: block;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    #main-nav ul li {
        width: 100%;
    }

    #main-nav ul li a {
        display: block;
        padding: 0.75rem 0;
        width: 100%;
    }

    .menu-toggle {
        display: block !important;
    }

    .featured-spotlight-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center;
    }

    .featured-spotlight-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .logo-tagline, .global-privacy-badge {
        display: none;
    }
}

/* Post Recommendation System */
.post-recommendation-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border-color);
    text-align: center;
    animation: fadeSlideUp 0.6s ease-out;
    display: none; /* Shown dynamically by JS */
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-rec-title {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.post-rec-capsules {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.rec-capsule {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.rec-capsule:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.15);
}

.rec-capsule .nav-icon {
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border-radius: 6px;
}
