/**
 * Instantaiarticle.blog - Free Tools
 * Main Stylesheet
 */

/* ===== CSS Variables ===== */
:root {
    /* Colors - Dark Mode Default */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);

    /* Background */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: rgba(26, 26, 46, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-muted: #71717a;

    /* Border */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(99, 102, 241, 0.5);

    /* Shadow */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

    /* Sizing */
    --header-height: 80px;
    --container-max: 1400px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(0, 0, 0, 0.02);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    /*transition: white;*/
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
     
    /*background: #0f0f1a !important;*/
    backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(15, 15, 26, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: white;
    line-height: 1.1;
}

.logo-domain {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}



/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    /*transition: var(--transition-base);*/
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: green;
}

.nav-link i {
    font-size: 14px;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
     
}

.dropdown-trigger .fa-chevron-down {
    font-size: 10px;
    transition: var(--transition-base);
}

.nav-dropdown:hover .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
     
    transform: translateX(-50%) translateY(10px);
    min-width: 600px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.dropdown-column h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dropdown-column a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.dropdown-column a:hover {
    color: var(--primary);
}

.dropdown-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition-base);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* ===== Mobile Navigation ===== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 100%;
    background: var(--bg-secondary);
    padding: 24px;
    transform: translateX(100%);
    transition: var(--transition-base);
}

.mobile-nav-overlay.active .mobile-nav {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.mobile-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 18px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
}

.mobile-nav-link:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.mobile-nav-link i:first-child {
    margin-right: 12px;
}

.accordion-content {
    display: none;
    padding: 8px 16px 16px 44px;
}

.accordion-content a {
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.accordion-content a:hover {
    color: var(--primary);
}

.mobile-nav-footer {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
}

.mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 60px) 0 120px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 100%),
        radial-gradient(2px 2px at 80% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
    background-size: 500px 500px;
    animation: particlesFloat 60s linear infinite;
}

@keyframes particlesFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-500px);
    }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--gradient-glow);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge i {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Hero Search */
.hero-search {
    display: flex;
    align-items: center;
    max-width: 560px;
    margin: 0 auto 48px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 60px;
    padding: 8px;
    animation: fadeInUp 0.6s ease 0.3s both;
    transition: var(--transition-base);
}

.hero-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.hero-search i {
    padding: 0 16px;
    font-size: 18px;
    color: var(--text-muted);
}

.hero-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
}

.hero-search input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--gradient-primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-base);
}

.search-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-wave svg {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Quick Access Section ===== */
.quick-access {
    padding: 20px 0 40px;
    background: var(--bg-primary);
}

.quick-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.quick-category-pill {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.quick-category-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ===== Tools Section ===== */
.tools-section {
    padding: 60px 0 100px;
    background: var(--bg-primary);
}

.category-section {
    margin-bottom: 80px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 28px;
    font-weight: 700;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 20px;
    color: white;
}

.category-count {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Tool Card */
.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.1);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.tool-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-glow);
    border-radius: var(--radius-md);
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.tool-card:hover .tool-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.tool-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tool-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition-base);
}

.tool-action i {
    transition: var(--transition-base);
}

.tool-card:hover .tool-action i {
    transform: translateX(4px);
}

/* ===== Features Section ===== */
.features-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    font-size: 28px;
    color: white;
    margin: 0 auto 24px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    gap: 32px;
}

.cta-text h2 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.cta-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: white;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
    transition: var(--transition-base);
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-secondary);
    position: relative;
}

.footer-wave svg {
    width: 100%;
    height: auto;
    display: block;
}

.footer-main {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-column {
    min-width: 0;
}

.footer-heading {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom .container {
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: var(--text-muted);
}

.copyright a {
    color: var(--primary);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-base);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

/* ===== Tool Page Layout ===== */
.tool-page {
    padding: calc(var(--header-height) + 40px) 0 80px;
    min-height: 100vh;
}

.tool-header {
    text-align: center;
    margin-bottom: 48px;
}

.tool-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.tool-breadcrumb a {
    color: var(--text-secondary);
}

.tool-breadcrumb a:hover {
    color: var(--primary);
}

.tool-page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tool-page-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Tool Container */
.tool-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.tool-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form-textarea {
    min-height: 160px;
    resize: vertical;
    font-family: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Results Area */
.result-area {
    margin-top: 32px;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: none;
}

.result-area.active {
    display: block;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
}

.result-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.result-content pre {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    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);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .dropdown-menu {
        min-width: 400px;
    }

    .dropdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: calc(var(--header-height) + 40px) 0 80px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-search {
        flex-direction: column;
        padding: 12px;
        border-radius: var(--radius-lg);
    }

    .hero-search input {
        width: 100%;
        padding: 12px;
        text-align: center;
    }

    .hero-search>i {
        display: none;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 24px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        max-width: 100%;
    }

    .cta-content {
        padding: 32px 24px;
    }

    .cta-text h2 {
        font-size: 22px;
    }

    .tool-container {
        padding: 20px;
    }

    .nav-cta span {
        display: none;
    }

    .nav-cta {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 70px;
    }

    .logo-text {
        display: none;
    }

    .quick-category-pill {
        padding: 8px 14px;
        font-size: 13px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* ================================
   FORCE HEADER TEXT PURE WHITE
================================ */

/* ==================================================
   FINAL HEADER + DROPDOWN (CLEAN, SINGLE SOURCE)
================================================== */

/* Header base */
.header {
    background: #0f0f1a;
    color: #ffffff;
}

/* Top navigation */
.header .nav-link,
.header .nav-link span,
.header .nav-link i {
    color: #ffffff;
    opacity: 1;
}

/* Hover & active */
.header .nav-link:hover,
.header .nav-link.active {
    background: #10b981;
    color: #ffffff;
}

/* Dropdown trigger (Free Tools) */
.header .dropdown-trigger,
.header .dropdown-trigger span,
.header .dropdown-trigger i {
    color: #ffffff;
}

/* Dropdown menu */
.dropdown-menu {
    background: #ffffff;
}

/* Dropdown text */
.dropdown-column h4 {
    color: #64748b;
}

.dropdown-column a {
    color: #0f172a;
}

.dropdown-column a:hover {
    color: #6366f1;
}

  