/*
 * BabyName.in - Main Stylesheet
 * Beautiful, Responsive Baby Names Website
 * Version: 1.0
 */

/* ============================================
   CSS Variables / Design Tokens
   ============================================ */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;

    --pink: #ec4899;
    --pink-light: #f472b6;
    --pink-dark: #db2777;
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;

    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --blue-dark: #2563eb;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;

    --amber: #f59e0b;
    --amber-light: #fbbf24;
    --amber-50: #fffbeb;

    --green: #10b981;
    --green-light: #34d399;
    --green-50: #ecfdf5;

    --red: #ef4444;
    --red-50: #fef2f2;

    --purple: #8b5cf6;
    --teal: #14b8a6;

    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Text */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    /* Background */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;

    /* Gender Colors */
    --boy-color: #3b82f6;
    --boy-bg: #eff6ff;
    --boy-border: #bfdbfe;
    --girl-color: #ec4899;
    --girl-bg: #fdf2f8;
    --girl-border: #fbcfe8;
    --unisex-color: #8b5cf6;
    --unisex-bg: #f5f3ff;
    --unisex-border: #ddd6fe;

    /* Fonts */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Nunito', 'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-glow: 0 0 20px rgba(99,102,241,0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-spring: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.25rem;

    /* Header */
    --header-height: 72px;
    --top-bar-height: 36px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    z-index: 9999;
    font-weight: 600;
}

.skip-link:focus {
    top: 10px;
    color: white;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--pink));
    color: white;
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    position: relative;
    overflow: hidden;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: topBarShimmer 3s infinite;
}

@keyframes topBarShimmer {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(50%); }
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-text {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.top-bar-link {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.top-bar-link:hover {
    opacity: 0.85;
    color: white;
}

.fav-count-badge {
    background: rgba(255,255,255,0.25);
    padding: 0.0625rem 0.5rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 1.25rem;
    text-align: center;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    height: var(--header-height);
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1.5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover {
    color: inherit;
}

.logo-icon {
    transition: transform var(--transition-spring);
}

.logo:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--gray-800);
    letter-spacing: -0.02em;
}

.logo-highlight {
    color: var(--pink);
}

.logo-domain {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-50);
}

.nav-link span {
    font-size: 1.125rem;
}

.dropdown-arrow {
    transition: transform var(--transition-fast);
    opacity: 0.5;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    padding: 0.75rem;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
}

.dropdown-wide {
    min-width: 420px;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}

.dropdown-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.dropdown-item.compact {
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
}

.dropdown-icon {
    font-size: 1.375rem;
    flex-shrink: 0;
}

.dropdown-item strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}

.dropdown-item small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.dropdown-footer {
    border-top: 1px solid var(--gray-100);
    padding-top: 0.625rem;
    margin-top: 0.5rem;
    text-align: center;
}

.dropdown-footer a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

.header-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.header-btn-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--pink);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Hamburger */
.hamburger {
    width: 20px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}

.mobile-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-toggle {
    display: none;
}

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-overlay);
}

.search-overlay.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1rem;
    transition: border-color var(--transition-fast);
}

.search-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-100);
}

.search-icon {
    flex-shrink: 0;
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1.0625rem;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-close {
    flex-shrink: 0;
    color: var(--text-muted);
    padding: 0.25rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.search-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.search-suggestions {
    margin-top: 0.75rem;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.search-suggestion-item:hover {
    background: var(--gray-50);
}

.search-suggestion-name {
    font-weight: 600;
    color: var(--text-primary);
}

.search-suggestion-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: white;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--text-primary);
}

.btn-pink {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
}

.btn-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary-200);
}

.btn-outline:hover {
    background: var(--primary-50);
    border-color: var(--primary);
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-xl);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-lg);
}

.btn-icon.sm {
    width: 32px;
    height: 32px;
}

/* ============================================
   Cards (Name Cards)
   ============================================ */
.name-card {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-100);
    padding: 1.25rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.name-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--pink));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.name-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-200);
}

.name-card:hover::before {
    transform: scaleX(1);
}

.name-card.gender-boy { border-left: 3px solid var(--boy-color); }
.name-card.gender-girl { border-left: 3px solid var(--girl-color); }
.name-card.gender-unisex { border-left: 3px solid var(--unisex-color); }

.name-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.name-card-letter {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 800;
    font-family: var(--font-display);
    flex-shrink: 0;
}

.gender-boy .name-card-letter {
    background: var(--boy-bg);
    color: var(--boy-color);
}

.gender-girl .name-card-letter {
    background: var(--girl-bg);
    color: var(--girl-color);
}

.gender-unisex .name-card-letter {
    background: var(--unisex-bg);
    color: var(--unisex-color);
}

.name-card-actions {
    display: flex;
    gap: 0.25rem;
}

.name-card-fav {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--gray-400);
    transition: all var(--transition-base);
    background: var(--gray-50);
}

.name-card-fav:hover,
.name-card-fav.active {
    color: var(--pink);
    background: var(--pink-50);
}

.name-card-fav.active svg {
    fill: var(--pink);
}

.name-card-fav svg {
    width: 16px;
    height: 16px;
}

.name-card-title {
    margin-bottom: 0.5rem;
}

.name-card-title a {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.name-card-title a:hover {
    color: var(--primary);
}

.name-card-meaning {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.name-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.name-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    color: var(--text-secondary);
}

.name-card-tag.tag-gender {
    background: var(--boy-bg);
    color: var(--boy-color);
}

.gender-girl .name-card-tag.tag-gender {
    background: var(--girl-bg);
    color: var(--girl-color);
}

.name-card-tag.tag-origin {
    background: var(--primary-50);
    color: var(--primary);
}

.name-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.name-card-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.name-card-link:hover {
    gap: 0.5rem;
}

.name-card-share {
    display: flex;
    gap: 0.25rem;
}

.share-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    font-size: 0.8125rem;
}

.share-btn.whatsapp { color: #25d366; background: #e7faf0; }
.share-btn.whatsapp:hover { background: #25d366; color: white; }
.share-btn.twitter { color: #1da1f2; background: #e8f5fd; }
.share-btn.twitter:hover { background: #1da1f2; color: white; }
.share-btn.facebook { color: #1877f2; background: #e7f0fd; }
.share-btn.facebook:hover { background: #1877f2; color: white; }

/* Names Grid */
.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    background: var(--primary-50);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    margin-bottom: 0.75rem;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.0625rem;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-fast);
}

.page-link:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: var(--gray-300);
    position: relative;
}

.footer-wave {
    color: var(--bg-dark);
    margin-bottom: -1px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

.footer-main {
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo:hover {
    color: white;
}

.footer-desc {
    font-size: 0.9375rem;
    color: var(--gray-400);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 0.625rem;
}

.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.08);
    color: var(--gray-400);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--pink));
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.25rem;
}

/* Newsletter */
.footer-newsletter {
    margin-top: 1.5rem;
}

.footer-newsletter h4 {
    color: white;
    font-size: 0.875rem;
    margin-bottom: 0.625rem;
}

.newsletter-form {
    display: flex;
    gap: 0.375rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.875rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* Footer Alphabet */
.footer-alphabet {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
}

.alphabet-title {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.alphabet-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.alphabet-link {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.05);
    color: var(--gray-400);
    font-weight: 700;
    font-size: 0.8125rem;
    transition: all var(--transition-fast);
}

.alphabet-link:hover {
    background: var(--primary);
    color: white;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 0;
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom-content p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.footer-bottom-links {
    display: flex;
    gap: 1.25rem;
}

.footer-bottom-links a {
    color: var(--gray-500);
    font-size: 0.8125rem;
    font-weight: 600;
}

.footer-bottom-links a:hover {
    color: white;
}

/* ============================================
   Scroll to Top
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-sticky);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: var(--gray-800);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
    white-space: nowrap;
}

.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.info { background: var(--primary); }

@keyframes toastIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-20px); opacity: 0; }
}

/* ============================================
   Loading Spinner
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .dropdown-wide {
        min-width: 320px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --container-padding: 1rem;
    }

    .top-bar {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        padding: 1.5rem;
        transform: translateX(100%);
        transition: transform var(--transition-slow);
        overflow-y: auto;
        z-index: var(--z-overlay);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 0.125rem;
    }

    .nav-link {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-lg);
    }

    .has-dropdown .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--gray-50);
        border-radius: var(--radius-lg);
        margin-top: 0.25rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
        opacity: 0;
        padding: 0;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        padding: 0.5rem;
    }

    .dropdown-grid,
    .dropdown-grid.grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .names-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .favorites-btn {
        display: none;
    }

    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .names-grid {
        grid-template-columns: 1fr;
    }

    .name-card {
        padding: 1rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }
.animate-bounce { animation: bounce 2s infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s infinite; }

/* Stagger children animation */
.stagger-children > * {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(11) { animation-delay: 0.55s; }
.stagger-children > *:nth-child(12) { animation-delay: 0.6s; }