/**
 * wasn.net - Main Stylesheet
 * Modern, Clean, Light Theme
 */

/* ================================
   CSS Variables (Design Tokens)
   ================================ */
:root {
    /* Primary Colors - Indigo SaaS Palette */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Accent - Blue/Zinc */
    --accent-400: #60a5fa;
    --accent-500: #3b82f6;
    --accent-600: #2563eb;

    /* Neutral - Slate (Professional) */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #0ea5e9;

    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-100);
    --bg-card: #ffffff;

    /* Text */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-tertiary: var(--gray-400);
    --text-inverse: #ffffff;

    /* Borders */
    --border-color: var(--gray-200);
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;

    /* Shadows - More subtle */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.04), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.03), 0 8px 10px -6px rgb(0 0 0 / 0.03);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    --gradient-hero: linear-gradient(180deg, var(--gray-50) 0%, #ffffff 100%);

    /* Spacing */
    --container-max: 1280px;
    --header-height: 72px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 400ms ease;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
}

/* ================================
   Reset & Base
   ================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

.no-scroll {
    overflow: hidden !important;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

ul,
ol {
    list-style: none;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-600);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ================================
   Container
   ================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================================
   Header & Navigation (Refined)
   ================================ */
.header {
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.navbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
    transition: transform var(--transition-fast);
}

.logo:hover img {
    transform: scale(1.05);
}

/* Search Group */
.search-container {
    position: relative;
    flex: 0 1 320px;
    max-width: 320px;
    min-width: 200px !important;
}

.search-form {
    position: relative;
    display: block;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    z-index: 2;
    pointer-events: none;
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    padding: 0.7rem 1rem 0.7rem 2.8rem;
    border-radius: 12px;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    display: block;
}

.search-input:focus {
    background: white;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px var(--primary-50);
    outline: none;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 0.5rem 0.5rem;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.nav-link i.fa-chevron-down {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Utility Group (Right side) */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Laptop and Tablet Adjustments */
@media (max-width: 1280px) {
    .navbar {
        gap: 0.75rem;
    }

    .search-container {
        flex: 0 1 200px;
    }

    .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 13px;
    }
}

/* Mobile Menu Toggle Elements */
.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.mobile-menu-toggle:hover {
    background: var(--primary-50);
}

.hamburger {
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--gray-700);
    left: 0;
    transition: all var(--transition-fast);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.hamburger.active::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--primary-600) !important;
}

.hamburger.active::after {
    bottom: 0;
    transform: rotate(-45deg);
    background: var(--primary-600) !important;
}

/* Mobile Navigation Panel */
/* Mobile Navigation Panel */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    padding-top: 1rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    z-index: 999;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


.mobile-nav-content {
    padding: 2rem;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0.5rem;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-search {
    display: flex;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.mobile-search input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    background: var(--gray-50);
}

.mobile-search button {
    width: 48px;
    height: 48px;
    background: var(--primary-600);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-lang-switcher {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.mobile-lang-switcher a {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 600;
}

.mobile-lang-switcher a.active {
    background: var(--primary-600);
    color: white;
}

@media (max-width: 1100px) {

    .nav-menu,
    .search-container,
    .discovery-feature {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-menu a {
    display: block;
    padding: 0.625rem 0.875rem;
    color: var(--gray-600);
    font-size: 0.8125rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary-600);
}

.dropdown-footer {
    border-top: 1px solid var(--gray-50);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.dropdown-footer a {
    color: var(--primary-600) !important;
    font-weight: 600;
}

.cat-icon {
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-secondary);
    padding: 0.25rem;
    border-radius: var(--border-radius-full);
}

.lang-btn {
    padding: 0.375rem 0.625rem;
    border-radius: var(--border-radius-full);
    font-size: 1.125rem;
    transition: all var(--transition-fast);
    opacity: 0.6;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}


/* ================================
   Hero Section
   ================================ */
.hero {
    background: var(--gradient-hero);
    padding: 4rem 0 5rem;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--primary-600);
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(6, 182, 212, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-300);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
}

/* ================================
   Section Styles
   ================================ */
.section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.section-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary-600);
    font-weight: 500;
}

.section-link:hover {
    gap: 0.625rem;
}

/* ================================
   Category Pills
   ================================ */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 0 1rem;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.category-pill:hover {
    border-color: var(--primary-300);
    color: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-pill .icon {
    font-size: 1.25rem;
}

/* ================================
   Tool Cards Grid
   ================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tool-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.tool-category {
    font-size: var(--font-size-xs);
    color: var(--primary-600);
    background: var(--primary-50);
    padding: 0.25rem 0.625rem;
    border-radius: var(--border-radius-full);
}

.tool-arrow {
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
}

.tool-card:hover .tool-arrow {
    color: var(--primary-500);
    transform: translateX(4px);
}

/* ================================
   Tool Page Layout
   ================================ */
.tool-page {
    padding: 2rem 0 4rem;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
}

/* Tool Interface */
.tool-interface {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

/* File Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: var(--bg-secondary);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-400);
    background: var(--primary-50);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-500);
    margin-bottom: 1rem;
}

.upload-area h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.upload-area input[type="file"] {
    display: none;
}

/* Text Input Area */
.input-area {
    margin-bottom: 1.5rem;
}

.input-area label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.input-area textarea,
.input-area input[type="text"],
.input-area input[type="url"],
.input-area input[type="number"] {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
    resize: vertical;
}

.input-area textarea {
    min-height: 150px;
}

.input-area textarea:focus,
.input-area input:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 3px var(--primary-100);
}

/* Responsive Tool Grid Layout */
.tool-grid-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .tool-grid-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Options Row */
.options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-group {
    flex: 1;
    min-width: 200px;
}

.option-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: var(--font-size-sm);
}

.option-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
    cursor: pointer;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Result Area */
.result-area {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.result-area h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 1rem;
}

.result-box {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
}

.result-box pre {
    white-space: pre-wrap;
    word-break: break-all;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: var(--font-size-sm);
}

.copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

/* ================================
   How To Section
   ================================ */
.how-to-section {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.how-to-section h2 {
    font-size: var(--font-size-xl);
    margin-bottom: 1.5rem;
}

.how-to-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* ================================
   FAQ Section
   ================================ */
.faq-section {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.faq-section h2 {
    font-size: var(--font-size-xl);
    margin-bottom: 1.5rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    cursor: pointer;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-600);
}

.faq-question i {
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding-bottom: 1rem;
    color: var(--text-secondary);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ================================
   Footer
   ================================ */
/* ================================
   Footer
   ================================ */
.footer {
    background: #080c14;
    /* Deep Premium Dark */
    color: #94a3b8;
    padding: 6rem 0 3rem;
    margin-top: auto;
    border-top: 1px solid #1e293b;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-500), transparent);
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h3 {
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary-500);
}

.footer-logo img {
    height: 48px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-about {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #64748b;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: #94a3b8;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
    border-color: var(--primary-500);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '→';
    font-size: 0.8rem;
    opacity: 0;
    margin-left: -10px;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
    margin-left: 0;
}

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8125rem;
    color: #475569;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: #475569;
}

.footer-bottom-links a:hover {
    color: var(--primary-400);
}

/* ================================
   Cookie Consent
   ================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-content p {
    color: var(--gray-300);
    font-size: var(--font-size-sm);
}

/* ================================
   Loading State
   ================================ */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--text-secondary);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ================================
   Toast Notifications
   ================================ */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--bg-primary);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid var(--primary-500);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header,
    .navbar {
        height: 70px;
    }

    .search-container {
        display: none;
    }

    .nav-menu,
    .lang-switcher {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .hero {
        padding: 3rem 0;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-header {
        text-align: center;
        align-items: center;
    }

    .tools-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .tool-card {
        padding: 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .tool-header h1 {
        font-size: 1.5rem;
    }

    .tool-interface {
        padding: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .mobile-nav-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .tool-header h1 {
        font-size: var(--font-size-2xl);
    }

    .how-to-steps {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* ================================
   Tooltips
   ================================ */
.tooltip {
    position: fixed;
    background: #0f172a;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 9999;
    box-shadow: var(--shadow-lg);
}

/* ================================
   Search Results Dropdown
   ================================ */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
    overflow: hidden;
    z-index: 1000;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    transition: background 0.2s;
    border-bottom: 1px solid var(--gray-50);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--gray-50);
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* ================================
   File List (Multi-Upload)
   ================================ */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: left;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.file-name {
    font-weight: 500;
    font-size: 0.875rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin: 0 1rem;
}

.file-remove {
    color: var(--error);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0 0.5rem;
    cursor: pointer;
}

/* ================================
   Print Styles
   ================================ */
@media print {

    .header,
    .footer,
    .cookie-consent,
    .toast-container {
        display: none;
    }

    body {
        background: white;
    }

    .tool-interface {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}