/* ===== CSS RESET & BASE STYLES - UPDATED FOR 91 FONTS DISPLAY ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== DESIGN TOKENS ===== */
:root {
    --primary-500: #667eea;
    --primary-600: #5a67d8;
    --primary-50: #f0f4ff;
    --gray-900: #1a202c;
    --gray-800: #2d3748;
    --gray-700: #4a5568;
    --gray-600: #64748b;
    --gray-500: #718096;
    --gray-400: #a0aec0;
    --gray-300: #e2e8f0;
    --gray-200: #edf2f7;
    --gray-100: #f7fafc;
    --gray-50: #f8f9fa;
    --success-500: #10b981;
    --warning-500: #f59e0b;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* Theme Colors - Light Mode Default */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e2e8f0;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #1a202c;
    --footer-text: #ffffff;
}

/* Dark mode theme removed - using light mode only */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ANIMATION CLASSES ===== */
.transition-standard {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.button-press:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

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

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.pulse {
  animation: pulse 2s infinite;
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    min-height: 44px; /* Accessibility touch target */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
}



/* ===== HEADER STYLES ===== */
.header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Header background - light mode only */
.header {
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.logo p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* Value Proposition Badges */
.value-proposition {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.badge {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.nav-link {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Theme toggle removed - using light mode only */

/* ===== GENERATOR SECTION ===== */
.generator-section {
    padding: 2rem 0;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.generator-wrapper {
    display: grid;
    gap: 2rem;
}

/* Input Section */
.input-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.input-title-section {
    flex: 1;
}

.input-title-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.input-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

.input-controls {
    display: flex;
    gap: 0.75rem;
}

.text-input {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: var(--card-bg);
    color: var(--text-primary);
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.text-input::placeholder {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.input-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.char-count {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Font Categories */
.font-categories {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.categories-header {
    margin-bottom: 1.5rem;
}

.categories-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Preview Section */
.preview-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.preview-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.preview-controls {
    display: flex;
    gap: 0.75rem;
}

.font-previews {
    display: grid;
    gap: 1rem;
}

.font-preview {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: var(--card-bg);
}

.font-preview:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.font-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.font-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.font-category {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.font-text {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    word-break: break-word;
    min-height: 2rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.font-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-copy {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== POPULAR FONTS SECTION ===== */
.popular-fonts-section {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
    overflow: visible !important;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: auto !important;
    max-height: none !important;
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* ===== FONT GRID LAYOUT - FIXED FOR CATEGORY FILTERING ===== */

/* Base grid container */
.font-previews {
    display: grid !important;
    gap: var(--space-md) !important;
    margin-bottom: var(--space-lg) !important;
    transition: all 0.3s ease-in-out !important;
}

/* Popular fonts only: 2x4 grid layout - FIXED */
.font-previews:not(.show-all) {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(4, 1fr) !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Show all fonts: responsive grid */
.font-previews.show-all {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    grid-template-rows: none !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* FIXED: Category filtering now works properly */
.font-preview {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, display 0.3s ease-in-out;
}

/* Hide fonts that don't match current category */
.font-preview.hidden-by-category {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Show fonts that match current category */
.font-preview:not(.hidden-by-category) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.show-more-container {
    text-align: center;
}

.show-more-btn {
    position: relative;
    transition: all 0.3s ease-in-out;
}

.show-more-btn .chevron-icon {
    transition: transform 0.3s ease;
}

.show-more-btn.expanded .chevron-icon {
    transform: rotate(180deg);
}

.show-more-btn:hover {
    transform: translateY(-2px);
}

/* Category Filters Section - Now above popular fonts */
.category-filters-section {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-lg);
    padding: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.category-filters-section .categories-header h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    text-align: center;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.filter-btn {
    padding: var(--space-sm) var(--space-md);
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 40px;
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.filter-btn.active {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Modern Footer Banner */
.footer-banner {
    margin-bottom: var(--space-xl);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

/* Footer banner dark mode removed - using light mode only */

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    min-height: 60px;
}

.banner-icon {
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.banner-text {
    color: #1a202c;
    font-size: var(--text-base);
    text-align: center;
    font-weight: 500;
    flex: 1;
    line-height: 1.5;
}

.banner-text strong {
    color: var(--primary-600);
    font-weight: 700;
}

.banner-badge {
    background: var(--primary-500);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Legal Pages Styling */
.legal-page {
    padding: var(--space-xl) 0;
    min-height: 70vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.legal-content h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--gray-600);
    font-style: italic;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--gray-300);
}

.legal-section {
    margin-bottom: var(--space-xl);
}

.legal-section h2 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
    padding-top: var(--space-lg);
}

.legal-section h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-lg);
}

.legal-section p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.legal-section ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.legal-section li {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.legal-section a {
    color: var(--primary-500);
    text-decoration: none;
}

.legal-section a:hover {
    color: var(--primary-600);
    text-decoration: underline;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-500);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    z-index: 1000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.about-content {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
}

.about-content > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.why-choose-us {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.why-choose-us li {
    padding: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
}

.why-choose-us li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.25rem;
}

.cta-section {
    background: #f0f4ff;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* CTA section dark mode removed - using light mode only */

.cta-section h3 {
    color: var(--primary-600);
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 4rem 0;
    background: var(--bg-primary);
    transition: all 0.3s ease;
}

.faq-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
    text-align: center;
}

.faq-grid {
    display: grid;
    gap: 2rem;
}

.faq-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary-500);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.faq-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.faq-item ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-item li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.faq-item strong {
    color: #212529;
    font-weight: 600;
}

.faq-item em {
    color: #6c757d;
    font-style: italic;
}

/* ===== MODERN CONTACT SECTION ===== */
.contact-section {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--primary-50) 0%, #f0f9ff 100%);
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.contact-header h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-md);
}

.contact-header p {
    color: var(--gray-600);
    font-size: var(--text-lg);
    max-width: 500px;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.contact-card {
    background: var(--card-bg);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
}

.contact-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
}

.contact-link {
    color: var(--primary-500);
    text-decoration: none;
    font-weight: 600;
    padding: var(--space-sm) var(--space-md);
    background: var(--primary-50);
    border-radius: var(--radius-md);
    display: inline-block;
    transition: all 0.3s ease;
    margin: 0 auto;
    text-align: center;
    word-break: break-all;
}

.contact-link:hover {
    background: var(--primary-500);
    color: white;
    transform: scale(1.05);
}

.social-hint, .feedback-hint {
    color: var(--gray-500);
    font-size: var(--text-sm);
    font-style: italic;
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    display: inline-block;
}

.email-card .contact-icon { animation: bounce 2s ease-in-out infinite; }
.social-card .contact-icon { animation: pulse 2s ease-in-out infinite; }
.feedback-card .contact-icon { animation: glow 2s ease-in-out infinite; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 0 1rem;
    transition: all 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #adb5bd;
    line-height: 1.6;
}

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

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

.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #adb5bd;
    font-size: 0.875rem;
}

/* ===== PHASE 2A: SEARCH ENHANCEMENTS ===== */
.font-search {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.font-search:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-info {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.search-count, .total-count {
    font-weight: 700;
    font-size: 1.1em;
}

.search-query {
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.no-results {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9em;
    opacity: 0.9;
}

.search-suggestions {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    animation: slideIn 0.3s ease-out;
}

.suggestions-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
    font-size: 0.9rem;
}

.suggestions-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.suggestion-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.suggestion-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.suggestion-tag.related {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

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

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-spinner.show {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===== FOCUS STYLES ===== */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ===== SELECTION STYLES ===== */
::selection {
    background: rgba(102, 126, 234, 0.2);
    color: #212529;
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .footer,
    .btn,
    .toast,
    .loading-spinner {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
} 