/* ============================================
   Premium Font Generator - Clean Professional
   Light Mode - Notion/Canva Style
   ============================================ */

/* Google Fonts moved to <link> tags in HTML head for better LCP performance */

:root {
    /* Clean Professional Color Palette */
    --bg-primary: #F8FAFC; /* Soft off-white */
    --bg-secondary: #FFFFFF; /* Pure white */
    --bg-tertiary: #F1F5F9;
    
    --accent-primary: #3B82F6; /* Professional blue */
    --accent-secondary: #6366F1; /* Indigo */
    --accent-gradient: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    
    --text-primary: #1E293B; /* Bold dark blue */
    --text-secondary: #64748B; /* Medium gray */
    --text-muted: #94A3B8; /* Light gray */
    
    --card-bg: #FFFFFF; /* Pure white */
    --card-border: rgba(148, 163, 184, 0.2);
    --card-hover-border: rgba(59, 130, 246, 0.3);
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(148, 163, 184, 0.15);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    text-size-adjust: none;
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    text-size-adjust: none;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.02) 0%, transparent 50%);
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.015'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.logo-link:hover {
    transform: translateY(-2px);
}

.logo-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    box-sizing: border-box;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Dropdown Menu Styles */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    border: none;
    min-height: 48px;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    box-sizing: border-box;
    background: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease-in-out;
    opacity: 0.6;
}

.dropdown-wrapper:hover .dropdown-arrow,
.dropdown-wrapper.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: rgba(30, 41, 59, 0.95); /* bg-slate-900/90 equivalent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    margin: 0;
    list-style: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    pointer-events: none;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.dropdown-wrapper:hover .dropdown-menu,
.dropdown-wrapper.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transform: translateX(4px);
}

.dropdown-item:active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(2px);
}

/* Main Content */
.main-content {
    padding: 80px 0 100px;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 20px;
    padding: 60px 0 30px 0;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
}

.title-line {
    display: block;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 48px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.btn-cta-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-sm);
}

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

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

.btn-cta-secondary:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto 10px;
}

.text-input {
    width: 100%;
    padding: 28px 36px;
    font-size: 20px;
    border: 2px solid var(--card-border);
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: var(--shadow-soft);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.text-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.25);
    transform: translateY(-2px);
    background: var(--bg-tertiary);
}

.text-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
    filter: blur(0.4px);
}

.text-input:focus::placeholder {
    color: transparent;
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: var(--accent-gradient);
    opacity: 0;
    filter: blur(20px);
    z-index: -1;
    transition: opacity 0.3s ease-in-out;
}

.text-input:focus ~ .input-glow {
    opacity: 0.15;
}

.input-hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
    font-weight: 400;
}

/* Ad Placements - Reserved space to protect LCP/CLS */
.ad-placement {
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
    padding: 0 32px;
    min-height: 250px; /* Reserved space: no layout shift when ad loads */
}

.ad-placement-top {
    margin-top: 8px;
    margin-bottom: 12px;
    min-height: 100px;
}

/* Mobile: smaller top ad (e.g. 320x100) to avoid Poor Page Experience */
@media (max-width: 768px) {
    .ad-placement-top {
        min-height: 100px;
        margin-top: 16px;
        margin-bottom: 24px;
    }
}

.ad-placement-below,
.ad-placement-middle {
    margin-top: 60px;
    margin-bottom: 60px;
    min-height: 250px;
}

/* In-feed ad (between result #5 and #6) - full width in grid */
.ad-in-feed-wrapper {
    grid-column: 1 / -1;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
}

@media (max-width: 768px) {
    .ad-in-feed-wrapper {
        min-height: 100px;
        margin: 16px 0;
    }
}

/* Results Section - CLS: reserve height so layout doesn't shift when fonts load */
.results-section {
    margin-top: 0;
    min-height: 280px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 20px;
}

.results-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.results-count {
    padding: 10px 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
    border: 1px solid var(--card-border);
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-sm);
}

/* Results Grid - Responsive */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
    min-height: 200px;
    overflow: visible;
}

/* Empty State */
.results-grid .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    grid-column: 1 / -1;
}

.results-grid .empty-state-icon {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1;
}

.results-grid .empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.results-grid .empty-state-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Font Card - Clean White with Soft Shadow; min touch target for mobile */
.font-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: visible;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    min-height: auto;
    -webkit-tap-highlight-color: transparent;
}

/* Copy button: 48x48px minimum touch target (mobile) */
.font-card-copy,
button.font-card-copy {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 20px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.font-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.font-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--card-hover-border);
    background: var(--bg-secondary);
}

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

.font-card:active {
    transform: translateY(-2px) scale(0.99);
    box-shadow: var(--shadow-md);
}

/* Featured Cards */
.font-card.featured-card {
    padding: 36px;
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-md);
    background: var(--bg-secondary);
}

.font-card.featured-card::before {
    opacity: 1;
    height: 3px;
}

.font-card.featured-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Font Card Name */
.font-card-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', sans-serif;
}

.font-card-name::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--card-border), transparent);
}

/* Hot Badge */
.hot-badge {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s ease-in-out infinite;
}

/* New Decorative Badge */
.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
    animation: newPulse 2s ease-in-out infinite;
}

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

@keyframes newPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.6);
    }
}

/* New Decorative Card Glow */
.font-card.new-decorative {
    animation: decorativeGlow 3s ease-in-out infinite;
    border-color: rgba(245, 158, 11, 0.3);
}

@keyframes decorativeGlow {
    0%, 100% {
        box-shadow: var(--shadow-soft);
        border-color: rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2), var(--shadow-md);
        border-color: rgba(245, 158, 11, 0.5);
    }
}

/* Font Card Text - Android: avoid font-weight/font-style conflicts; use swap-friendly stack */
.font-card-text {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
    line-height: 1.5;
    min-height: 70px;
    display: flex;
    align-items: center;
    letter-spacing: 0.01em;
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-transform: none;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-font-feature-settings: normal;
    font-feature-settings: normal;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    unicode-bidi: normal;
    direction: ltr;
    white-space: pre-wrap;
}

.font-card-empty {
    font-size: 18px;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
}

/* Hover Hint */
.font-card-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    z-index: 10;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.01em;
}

.font-card:hover .font-card-hint {
    opacity: 1;
}

.clipboard-icon {
    font-size: 18px;
    animation: bounce 1s ease-in-out infinite;
}

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

/* Toast Notification */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(20px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
    pointer-events: auto;
}

.toast-content {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    padding: 24px 48px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    min-width: 300px;
    justify-content: center;
    animation: toastPulse 1.5s ease-in-out;
}

@keyframes toastPulse {
    0% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.toast-message {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    letter-spacing: 0.01em;
}

/* Copy feedback: instant and highly visible on mobile */
@media (max-width: 768px) {
    .toast {
        top: auto;
        left: 16px;
        right: 16px;
        bottom: 24px;
        transform: translateY(80px);
        width: calc(100% - 32px);
        max-width: none;
    }
    .toast.show {
        transform: translateY(0);
    }
    .toast-content {
        min-width: 0;
        width: 100%;
        padding: 18px 24px;
        font-size: 18px;
        border-width: 3px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15), var(--shadow-glow);
    }
    .toast-message {
        font-size: 18px;
    }
    .toast-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* Load More Button */
.load-more-btn {
    grid-column: 1 / -1;
    padding: 20px 40px;
    margin: 48px auto;
    max-width: 400px;
    min-height: 48px;
    min-width: 48px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.01em;
    font-family: 'Inter', sans-serif;
}

.load-more-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    background: var(--bg-secondary);
    border-color: var(--accent-secondary);
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--card-border);
    margin-top: 100px;
    position: relative;
    z-index: 2;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
}

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

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

.footer-seo-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.footer-seo-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-seo-content p:last-child {
    margin-bottom: 0;
}

.footer-seo-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 0;
}

/* User Guide Section */
.guide-section {
    margin-top: 100px;
    padding: 60px 0;
    background: var(--bg-primary);
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.guide-main-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.02em;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.2;
}

.guide-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.guide-content-wrapper h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.guide-content-wrapper h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.guide-content-wrapper p {
    margin: 0 0 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.guide-content-wrapper ul,
.guide-content-wrapper ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.guide-highlights {
    list-style: none;
    padding-left: 0;
}

.guide-highlights li {
    padding: 8px 0;
    border-bottom: 1px solid var(--card-border);
}

.guide-highlights li:last-child {
    border-bottom: none;
}

.guide-examples {
    list-style: none;
    padding-left: 0;
    font-size: 1.1em;
}

.guide-examples li {
    padding: 6px 0;
}

.guide-faq-preview .faq-item {
    margin-bottom: 20px;
}

.guide-faq-preview .faq-item p:first-child {
    margin-bottom: 4px;
}

.guide-final-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.guide-step-section,
.guide-applications-section {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 48px;
    box-shadow: var(--shadow-soft);
}

.guide-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.guide-intro {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.guide-step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.guide-step-item:hover {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: white;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: var(--shadow-sm);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.step-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

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

.applications-table-wrapper {
    overflow-x: auto;
    margin-top: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
}

.applications-table thead {
    background: var(--bg-tertiary);
}

.applications-table th {
    padding: 20px 24px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    border-bottom: 2px solid var(--card-border);
}

.applications-table th:first-child {
    width: 180px;
}

.applications-table td {
    padding: 20px 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--card-border);
}

.applications-table tbody tr {
    transition: background-color 0.2s ease;
}

.applications-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.applications-table tbody tr:last-child td {
    border-bottom: none;
}

.applications-table td strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive Design for Guide Section */
@media (max-width: 768px) {
    .guide-main-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .guide-step-section,
    .guide-applications-section {
        padding: 32px 24px;
    }
    
    .guide-subtitle {
        font-size: 20px;
    }
    
    .guide-step-item {
        padding: 20px;
        gap: 16px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .step-title {
        font-size: 16px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    .applications-table {
        font-size: 14px;
    }
    
    .applications-table th,
    .applications-table td {
        padding: 16px;
    }
    
    .applications-table th:first-child {
        width: 140px;
    }
}

/* FAQ Section */
.faq-section {
    margin-top: 80px;
    padding: 60px 0;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease-in-out;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--card-hover-border);
}

.faq-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Loading State */
.results-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty State */
.results-grid:empty::before {
    content: 'Digite algum texto acima para ver os estilos ✨';
    display: block;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Hidden Initially Animation */
.font-card.hidden-initially {
    opacity: 0;
    transform: translateY(20px);
}

.font-card:not(.hidden-initially) {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .header {
        padding: 16px 0;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .nav {
        gap: 4px;
    }
    
    .nav-link {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .hero {
        margin-bottom: 60px;
        padding: 40px 0;
    }
    
    .main-content {
        padding: 60px 0 80px;
    }
    
    .text-input {
        padding: 24px 28px;
        font-size: 18px;
    }
    
    .results-grid {
        gap: 20px;
        overflow: visible;
    }
    
    .font-card {
        padding: 24px;
        overflow: visible;
        min-height: auto;
    }
    
    .font-card.featured-card {
        padding: 28px;
    }
    
    .font-card-text {
        font-size: 24px;
        line-height: 1.6;
        min-height: 80px;
        padding: 4px 0;
        overflow: visible;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-text-size-adjust: none;
        -moz-text-size-adjust: none;
        text-size-adjust: none;
    }
    
    .font-card-hint {
        font-size: 12px;
        padding: 12px 20px;
    }
    
    .toast-content {
        min-width: 260px;
        padding: 20px 32px;
    }
    
    .load-more-btn {
        padding: 16px 32px;
        font-size: 14px;
    }
    
    .results-title {
        font-size: 28px;
    }
    
    .guide-section {
        margin-top: 60px;
        padding: 40px 0;
    }
    
    .guide-title,
    .faq-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .guide-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .guide-card {
        padding: 24px;
    }
    
    .faq-item {
        padding: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: fixed;
        top: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        min-width: calc(100vw - 40px);
        max-width: 400px;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    
    .dropdown-wrapper.active .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
    
    .dropdown-item {
        padding: 14px 18px;
        font-size: 15px;
    }
}

/* Animation for card appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.font-card {
    animation: fadeInUp 0.4s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Cookie Consent Dialog - WCAG AA Contrast Fixes */
/* Ensure all text in consent dialogs meets 4.5:1 contrast ratio */
.fc-consent-root,
.fc-dialog-overlay,
.fc-dialog,
.fc-choice-dialog {
    color: #1E293B !important; /* Dark text for light backgrounds */
}

.fc-consent-root *,
.fc-dialog-overlay *,
.fc-dialog *,
.fc-choice-dialog * {
    color: inherit !important;
}

/* Specific fixes for consent dialog elements */
.fc-dialog-overlay {
    background-color: rgba(0, 0, 0, 0.5) !important; /* Semi-transparent dark overlay */
}

.fc-dialog,
.fc-choice-dialog {
    background-color: #FFFFFF !important;
    color: #1E293B !important;
}

.fc-faq-label,
.fc-footer-link-v2,
.fc-vendors-list-dialog {
    color: #3B82F6 !important; /* Accessible blue for links */
}

.fc-faq-label:hover,
.fc-footer-link-v2:hover,
.fc-vendors-list-dialog:hover {
    color: #2563EB !important; /* Darker blue on hover */
}

/* Ensure all text in consent dialogs is readable */
.fc-consent-root p,
.fc-consent-root span,
.fc-consent-root div,
.fc-consent-root a,
.fc-dialog p,
.fc-dialog span,
.fc-dialog div,
.fc-dialog a,
.fc-choice-dialog p,
.fc-choice-dialog span,
.fc-choice-dialog div,
.fc-choice-dialog a {
    color: #1E293B !important;
}

/* Links in consent dialogs */
.fc-consent-root a,
.fc-dialog a,
.fc-choice-dialog a {
    color: #3B82F6 !important;
    text-decoration: underline;
}

.fc-consent-root a:hover,
.fc-dialog a:hover,
.fc-choice-dialog a:hover {
    color: #2563EB !important;
}
