/* ============================================
   Cursive Generator - Production CSS
   Compiled design tokens + utility classes
   from Tailwind config
   ============================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    --color-primary: #000000;
    --color-on-primary: #ffffff;
    --color-secondary: #5e5e5e;
    --color-on-secondary: #ffffff;
    --color-background: #ffffff;
    --color-on-background: #000000;
    --color-surface: #ffffff;
    --color-on-surface: #000000;
    --color-surface-variant: #e5e2e1;
    --color-on-surface-variant: #4c4546;
    --color-surface-container: #f0edec;
    --color-surface-container-low: #f6f3f2;
    --color-surface-container-high: #ebe7e7;
    --color-surface-container-highest: #e5e2e1;
    --color-surface-container-lowest: #ffffff;
    --color-surface-dim: #dcd9d9;
    --color-surface-bright: #ffffff;
    --color-outline: #7e7576;
    --color-outline-variant: #EAEAEA;
    --color-error: #ba1a1a;
    --color-on-error: #ffffff;
    --color-error-container: #ffdad6;
    --color-on-error-container: #93000a;
    --color-primary-container: #1b1b1b;
    --color-on-primary-container: #848484;
    --color-secondary-container: #f3f4f6;
    --color-on-secondary-container: #626262;
    --color-tertiary: #000000;
    --color-on-tertiary: #ffffff;
    --color-inverse-surface: #313030;
    --color-inverse-on-surface: #f3f0ef;
    --color-inverse-primary: #c6c6c6;
    --color-surface-tint: #5e5e5e;

    --spacing-unit: 4px;
    --spacing-margin-mobile: 20px;
    --spacing-margin-desktop: 64px;
    --spacing-gutter: 24px;
    --spacing-section-gap: 80px;
    --spacing-stack-sm: 8px;
    --spacing-stack-md: 16px;
    --spacing-stack-lg: 24px;
    --spacing-container-max: 1280px;

    --radius-default: 0.25rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;

    --font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-background);
    color: var(--color-on-background);
    font-size: 16px;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; }

::selection {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
}

/* --- 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-width: 0;
}

/* --- Skip to Content --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: var(--color-on-primary);
    padding: 8px 16px;
    z-index: 9999;
    font-weight: 700;
}
.skip-link:focus {
    top: 0;
}

/* --- Typography --- */
.text-display-hero { font-size: 64px; line-height: 1.1; letter-spacing: -0.04em; font-weight: 700; }
.text-display-hero-mobile { font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }
.text-headline-section { font-size: 44px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.text-headline-section-mobile { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.text-subheading { font-size: 20px; line-height: 1.5; letter-spacing: -0.01em; font-weight: 400; }
.text-body { font-size: 16px; line-height: 1.6; font-weight: 400; }
.text-small { font-size: 14px; line-height: 1.5; font-weight: 450; }
.text-label { font-size: 13px; line-height: 1; letter-spacing: 0.05em; font-weight: 600; }

/* --- Layout Utilities --- */
.container { max-width: var(--spacing-container-max); margin-left: auto; margin-right: auto; }
.px-margin-mobile { padding-left: var(--spacing-margin-mobile); padding-right: var(--spacing-margin-mobile); }
.py-section-gap { padding-top: var(--spacing-section-gap); padding-bottom: var(--spacing-section-gap); }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }

.items-center { align-items: center; }
.items-start { align-items: start; }
.items-end { align-items: end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }

.gap-1 { gap: 4px; }
.gap-1\.5 { gap: 6px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }
.gap-gutter { gap: var(--spacing-gutter); }

.w-full { width: 100%; }
.w-8 { width: 32px; }
.h-8 { height: 32px; }
.h-10 { height: 40px; }
.h-\[72px\] { height: 72px; }
.min-h-screen { min-height: 100vh; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-\[1100px\] { max-width: 1100px; }
.max-w-container-max { max-width: var(--spacing-container-max); }

.mx-auto { margin-left: auto; margin-right: auto; }
.mx-4 { margin-left: 16px; margin-right: 16px; }

/* --- Spacing --- */
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-1\.5 { padding-top: 6px; padding-bottom: 6px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-2\.5 { padding-top: 10px; padding-bottom: 10px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.pt-0 { padding-top: 0; }
.pt-16 { padding-top: 64px; }
.pb-8 { padding-bottom: 32px; }

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mt-6 { margin-top: 24px; }

/* --- Colors --- */
.bg-primary { background-color: var(--color-primary); }
.bg-white { background-color: #ffffff; }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-container { background-color: var(--color-surface-container); }
.bg-surface-container-high { background-color: var(--color-surface-container-high); }
.bg-surface-container-lowest { background-color: var(--color-surface-container-lowest); }
.bg-secondary-container { background-color: var(--color-secondary-container); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-white\/90 { background-color: rgba(255, 255, 255, 0.9); }
.bg-primary\/5 { background-color: rgba(0, 0, 0, 0.05); }
.bg-green-500 { background-color: #22c55e; }

.text-primary { color: var(--color-primary); }
.text-on-primary { color: var(--color-on-primary); }
.text-secondary { color: var(--color-secondary); }
.text-on-surface { color: var(--color-on-surface); }
.text-on-primary\/70 { color: rgba(255, 255, 255, 0.7); }
.text-green-400 { color: #4ade80; }
.text-white { color: #ffffff; }
.text-error { color: var(--color-error); }

/* --- Borders --- */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-y { border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; }
.border-outline-variant { border-color: var(--color-outline-variant); }
.border-outline-variant\/50 { border-color: rgba(234, 234, 234, 0.5); }
.border-outline-variant\/5 { border-color: rgba(234, 234, 234, 0.05); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-primary { border-color: var(--color-primary); }

/* --- Border Radius --- */
.rounded { border-radius: var(--radius-default); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: var(--radius-full); }
.rounded-\[16px\] { border-radius: 16px; }
.rounded-\[32px\] { border-radius: 32px; }

/* --- Shadows --- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }

/* --- Position & Z-Index --- */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.bottom-4 { bottom: 16px; }
.right-4 { right: 16px; }
.left-3 { left: 12px; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* --- Text Utilities --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.break-words { word-wrap: break-word; overflow-wrap: break-word; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.text-\[10px\] { font-size: 10px; }
.text-\[12px\] { font-size: 12px; }
.text-\[13px\] { font-size: 13px; }
.text-\[16px\] { font-size: 16px; }
.text-\[18px\] { font-size: 18px; }
.text-\[20px\] { font-size: 20px; }
.text-\[24px\] { font-size: 24px; }
.text-\[28px\] { font-size: 28px; }
.text-\[32px\] { font-size: 32px; }
.text-\[44px\] { font-size: 44px; }

/* --- Aspect Ratio --- */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }

/* --- Transitions --- */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* --- Transforms --- */
.transform { transform: translateX(0); }
.rotate-2 { transform: rotate(2deg); }
.scale-105 { transform: scale(1.05); }

/* --- Opacity --- */
.opacity-0 { opacity: 0; }
.opacity-60 { opacity: 0.6; }
.opacity-80 { opacity: 0.8; }

/* --- Cursor --- */
.cursor-pointer { cursor: pointer; }

/* --- Resize --- */
.resize-none { resize: none; }

/* --- Background Utilities --- */
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }

/* --- Form Elements --- */
textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: none;
}

/* --- Component Styles --- */

/* Glass Header */
.glass-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-outline-variant);
    border-radius: var(--radius-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Cursive font */
.font-cursive { font-family: cursive; }
.font-mono { font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace; }

/* Generator Panel */
.generator-panel { height: 600px; }

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--color-outline-variant); border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #d1d1d1; }

/* Details/Summary (FAQ) */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary .expand-icon { transform: rotate(180deg); }

/* Copy Feedback */
.copy-feedback {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-primary);
    color: var(--color-on-primary);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 14px;
    z-index: 1000;
    animation: slideUp 0.3s ease, fadeOut 0.3s ease 1.5s forwards;
}

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

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

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-popular { background-color: rgba(0, 0, 0, 0.05); color: var(--color-primary); }
.badge-trending { background-color: #fef3c7; color: #92400e; }
.badge-top-rated { background-color: #dbeafe; color: #1e40af; }
.badge-new { background-color: #d1fae5; color: #065f46; }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 24px;
    overflow-y: auto;
}
.mobile-menu.active {
    transform: translateX(0);
}

/* Search Modal */
.search-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.search-modal.active {
    opacity: 1;
    visibility: visible;
}
.search-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    transition: transform 0.2s;
}
.search-modal.active .search-modal-content {
    transform: translateY(0);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-outline-variant);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
}

/* Category Chips */
.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-outline-variant);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    background: #ffffff;
    color: var(--color-secondary);
}
.category-chip:hover,
.category-chip.active {
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px;
    color: var(--color-secondary);
}
.breadcrumbs a:hover {
    color: var(--color-primary);
}
.breadcrumbs .separator {
    margin: 0 8px;
    opacity: 0.5;
}

/* Space utilities */
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }

/* --- Hover States --- */
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:text-error:hover { color: var(--color-error); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:bg-primary:hover { background-color: var(--color-primary); }
.hover\:bg-secondary-container:hover { background-color: var(--color-secondary-container); }
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:border-primary:hover { border-color: var(--color-primary); }
.hover\:opacity-80:hover { opacity: 0.8; }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:rotate-0:hover { transform: rotate(0deg); }
.hover\:bg-primary.hover\:text-on-primary:hover { color: var(--color-on-primary); }

/* Group hover */
.group:hover .group-hover\:text-primary { color: var(--color-primary); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* Active states */
.active\:scale-95:active { transform: scale(0.95); }

/* Open states (details) */
details[open] .group-open\:rotate-180,
.group-open\:rotate-180 { transition: transform 0.3s; }
details[open] > summary .group-open\:rotate-180 { transform: rotate(180deg); }

/* Focus states */
.focus\:border-primary:focus { border-color: var(--color-primary); }
.focus\:ring-0:focus { box-shadow: none; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .generator-panel { height: auto; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:grid { display: grid; }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
    .md\:col-span-1 { grid-column: span 1; }
    .md\:col-span-4 { grid-column: span 4; }
    .md\:col-span-5 { grid-column: span 5; }
    .md\:col-span-7 { grid-column: span 7; }
    .md\:col-span-8 { grid-column: span 8; }
    .md\:px-margin-desktop { padding-left: var(--spacing-margin-desktop); padding-right: var(--spacing-margin-desktop); }
    .md\:px-0 { padding-left: 0; padding-right: 0; }
    .md\:border-b-0 { border-bottom: none; }
    .md\:border-r { border-right-width: 1px; border-right-style: solid; }
    .md\:mx-margin-desktop { margin-left: var(--spacing-margin-desktop); margin-right: var(--spacing-margin-desktop); }

    .md\:text-display-hero { font-size: 64px; line-height: 1.1; letter-spacing: -0.04em; font-weight: 700; }
    .md\:font-display-hero { font-family: var(--font-family); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
}

/* --- WordPress Core Overrides --- */
.wp-block-image { margin-bottom: 1.5rem; }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content h2 { font-size: 28px; font-weight: 700; margin-top: 2rem; }
.entry-content h3 { font-size: 22px; font-weight: 600; margin-top: 1.5rem; }
.entry-content p { line-height: 1.8; color: var(--color-on-surface); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; }
.entry-content ul { list-style-type: disc; }
.entry-content ol { list-style-type: decimal; }
.entry-content li { margin-bottom: 0.5rem; line-height: 1.6; }
.entry-content a { color: var(--color-primary); text-decoration: underline; }
.entry-content a:hover { opacity: 0.8; }
.entry-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--color-secondary);
    font-style: italic;
}

/* Grid for cards */
.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* --- Additional Layout Utilities --- */
.max-w-xl { max-width: 36rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-\[520px\] { max-width: 520px; }
.w-12 { width: 48px; }
.w-16 { width: 64px; }
.h-12 { height: 48px; }
.h-16 { height: 64px; }
.h-\[52px\] { height: 52px; }
.min-h-\[200px\] { min-height: 200px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.pt-8 { padding-top: 32px; }
.pt-4 { padding-top: 16px; }
.pt-12 { padding-top: 48px; }
.pb-4 { padding-bottom: 16px; }
.pb-6 { padding-bottom: 24px; }
.pb-12 { padding-bottom: 48px; }
.pb-16 { padding-bottom: 64px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.mb-1 { margin-bottom: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.gap-5 { gap: 20px; }
.gap-10 { gap: 40px; }
.gap-16 { gap: 64px; }
.self-start { align-self: start; }
.self-stretch { align-self: stretch; }
.object-cover { object-fit: cover; }

/* Additional text sizes */
.text-\[14px\] { font-size: 14px; }
.text-\[15px\] { font-size: 15px; }
.text-\[36px\] { font-size: 36px; }
.text-\[40px\] { font-size: 40px; }
.text-\[48px\] { font-size: 48px; }
.text-\[56px\] { font-size: 56px; }
.text-\[64px\] { font-size: 64px; }
.text-\[80px\] { font-size: 80px; }
.font-normal { font-weight: 400; }

/* Gradient */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }

/* Additional colors */
.bg-surface-variant { background-color: var(--color-surface-variant); }
.bg-primary-container { background-color: var(--color-primary-container); }
.bg-error-container { background-color: var(--color-error-container); }
.text-on-primary-container { color: var(--color-on-primary-container); }
.text-on-surface-variant { color: var(--color-on-surface-variant); }
.border-none { border: none; }
.border-primary\/20 { border-color: rgba(0, 0, 0, 0.2); }
.border-2 { border-width: 2px; border-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-purple-50 { background-color: #faf5ff; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-rose-50 { background-color: #fff1f2; }
.text-blue-600 { color: #2563eb; }
.text-green-600 { color: #16a34a; }
.text-purple-600 { color: #9333ea; }
.text-amber-600 { color: #d97706; }
.text-rose-600 { color: #e11d48; }
.border-blue-200 { border-color: #bfdbfe; }
.border-green-200 { border-color: #bbf7d0; }
.border-purple-200 { border-color: #e9d5ff; }
.border-amber-200 { border-color: #fde68a; }

/* Additional hover */
.hover\:bg-surface:hover { background-color: var(--color-surface); }
.hover\:bg-primary\/10:hover { background-color: rgba(0, 0, 0, 0.1); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }

/* Select */
select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%235e5e5e' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Range slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--color-outline-variant);
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
}

/* Checkbox / Radio */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-outline-variant);
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

/* Tag chips for generators */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--color-outline-variant);
    background: #ffffff;
    color: var(--color-secondary);
    transition: all 0.2s;
}
.tag-chip:hover,
.tag-chip.active {
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-color: var(--color-primary);
}

/* Generator output card */
.generator-output-card {
    background: #ffffff;
    border: 1px solid var(--color-outline-variant);
    border-radius: var(--radius-xl);
    padding: 20px;
    transition: all 0.2s;
}
.generator-output-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Additional responsive */
@media (min-width: 1024px) {
    .lg\:flex-row { flex-direction: row; }
    .lg\:w-\[320px\] { width: 320px; }
    .lg\:flex-shrink-0 { flex-shrink: 0; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:sticky { position: sticky; }
    .lg\:top-\[120px\] { top: 120px; }
}

/* Animate pulse */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ============================================
   Fix: Search icon vertical centering
   ============================================ */
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-wrap > .material-symbols-outlined {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* ============================================
   Logo Mark
   ============================================ */
.site-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-radius: 8px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}
.site-logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--color-primary);
}

/* ============================================
   Browse Categories Bento Grid
   ============================================ */
.categories-bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 80px);
    gap: 16px;
}
.bento-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid var(--color-outline-variant);
    border-radius: var(--radius-xl);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}
.bento-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.bento-card.bento-span-2 {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 28px;
}
.categories-bento .bento-span-2 {
    grid-row: span 2;
}
@media (max-width: 767px) {
    .categories-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .categories-bento .bento-span-2 {
        grid-row: span 1;
    }
    .bento-card.bento-span-2 {
        flex-direction: row;
        align-items: center;
    }
}

/* ============================================
   Professionals Section: Horizontal Card
   ============================================ */
.feature-card-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--color-outline-variant);
    border-radius: var(--radius-xl);
    transition: all 0.3s;
}
.feature-card-horizontal:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.feature-card-horizontal .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--color-surface-container);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================
   Latest Insights: 2-Column Featured Layout
   ============================================ */
.insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-gutter);
}
@media (min-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.insight-featured {
    display: flex;
    flex-direction: column;
}
.insight-featured .insight-image {
    flex-grow: 1;
    min-height: 280px;
}
.insights-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
}
.insight-compact {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--color-outline-variant);
    border-radius: var(--radius-xl);
    background: #ffffff;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}
.insight-compact:hover {
    border-color: var(--color-primary);
}
.insight-compact .insight-thumb {
    width: 120px;
    height: 90px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-surface-container-high);
    border: 1px solid var(--color-outline-variant);
    display: flex;
    align-items: center;
    justify-content: center;
}
.insight-compact .insight-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Footer Modern
   ============================================ */
.footer-cta {
    background: var(--color-primary);
    color: var(--color-on-primary);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 48px;
    text-align: center;
}
.footer-bottom-links a {
    transition: color 0.2s;
}
.footer-bottom-links a:hover {
    color: var(--color-primary);
}

/* ============================================
   Additional Utilities
   ============================================ */
.object-cover { object-fit: cover; }
.h-full { height: 100%; }
.w-\[120px\] { width: 120px; }
.h-\[90px\] { height: 90px; }
.min-h-\[280px\] { min-height: 280px; }
.text-\[11px\] { font-size: 11px; }
.border-l-2 { border-left: 2px solid; }
.pl-4 { padding-left: 16px; }
.gap-\[16px\] { gap: 16px; }
