/* ====================================================
   PROFESSIONAL & KID-FRIENDLY REDESIGN
   Font Generator Website - Clean & Playful
   ==================================================== */

:root {
  /* Primary Colors - Softer & More Balanced */
  --primary-blue: #5500a9;
  --primary-purple: #8b5cf6;
  --primary-pink: #ec4899;
  --primary-cyan: #06b6d4;
  --primary-green: #10b981;
  --primary-orange: #f59e0b;
  
  /* Accent Colors - Vibrant but purposeful */
  --accent-bright: #ff6b6b;
  --accent-warm: #fbbf24;
  
  /* Light Backgrounds - Soft & Clean */
  --bg: #f9fafb;
  --bg-alt: #f3f4f6;
  --surface: #ffffff;
  --surface-subtle: #f0f4ff;
  
  /* Borders & Dividers */
  --border: #e5e7eb;
  --border-soft: #f3f4f6;
  --border-strong: #d1d5db;
  
  /* Text Colors */
  --text: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-light: #d1d5db;
  
  /* Soft Gradients */
  --gradient-soft: linear-gradient(135deg, #4f7cff 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #4f7cff 100%);
  
  /* Spacing */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows - Subtle */
  --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);
  
  /* Transitions */
  --transition: 150ms ease;
  --transition-slow: 300ms ease;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-display: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  
  /* Type Scale */
  --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: 1.875rem;
  --text-4xl: 2.25rem;
}

:root[data-theme="dark"] {
  --bg: #111827;
  --bg-alt: #1f2937;
  --surface: #1f2937;
  --surface-subtle: #374151;
  --border: #374151;
  --border-soft: #4b5563;
  --border-strong: #6b7280;
  --text: #f9fafb;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
}

/* ====================================================
   RESET & BASE
   ==================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ====================================================
   HEADER & NAVIGATION
   ==================================================== */

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
  padding: 0 10px;
}

.brand-link a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand-link img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 2px var(--primary-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Theme Toggle */
#themeToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

#themeToggle:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

#themeToggle .theme-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop > a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
}

.nav-desktop > a:hover,
.nav-desktop > a.active {
  color: var(--primary-blue);
  background: var(--surface-subtle);
}

/* Dropdown Menu */
.more-wrapper {
  position: relative;
}

.more-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font: inherit;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
}

.more-btn:hover,
.more-btn[aria-expanded="true"] {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.more-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.more-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.more-wrapper:hover .dropdown,
.more-btn[aria-expanded="true"] + .dropdown {
  display: flex;
}

.dropdown a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--transition);
}

.dropdown a:hover {
  background: var(--surface-subtle);
  color: var(--primary-blue);
}

/* Mobile Menu */
.hamburger {
  display: none;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

.hamburger svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.hamburger.active line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
  transform-origin: center;
}

.hamburger.active line:nth-child(2) {
  opacity: 0;
}

.hamburger.active line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
  transform-origin: center;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--border);
  max-height: 0;
  transition: max-height var(--transition);
  overflow: hidden;
}

.mobile-menu.active {
  display: flex;
  max-height: 500px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
}

.mobile-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-soft);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--transition);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--primary-blue);
  padding-left: 8px;
}

/* ====================================================
   HERO SECTION
   ==================================================== */

.head-info {
  padding: 56px 20px 40px;
  text-align: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8f7ff 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.head-info .cnt {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.head-info h1 {
  font-size: var(--text-4xl);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.head-info h1 em {
  font-style: normal;
  color: var(--primary-blue);
  font-weight: 800;
}

.head-info p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 600px;
}

/* ====================================================
   INPUT SECTION
   ==================================================== */

.input-sec {
  position: sticky;
  top: 0px;
  z-index: 30;
  padding: 12px 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.input-info {
  display: block;
  text-align: center;
  padding: 6px 0;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.input {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
}

.input:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.input:focus-within {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--surface-subtle);
}

#inputText {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: var(--text-lg);
  padding: 18px 18px 18px 10px;
  font-weight: 500;
  min-width: 0;
  text-align: center;
  font-family: inherit;
}

#inputText::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

#inputCount {
  position: absolute;
  left: 16px;
  bottom: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
}

.input button {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.input button:hover {
  background: var(--surface-subtle);
  color: var(--primary-blue);
}

#bioIdeas {
  position: absolute;
    right: 8px;
    width: auto;
    height: auto;
    bottom: 8px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 2px 5px;
    font-size: var(--text-xs);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

#bioIdeas:hover {
  background: #f59e0b;
  box-shadow: var(--shadow-md);
}

button.mood-scroll-btn {
  border-radius: var(--radius-lg);
  border: none;
  padding: 8px 12px;
}

button#clearInput {
  top: 2px;
  right: 4px;
}

/* ====================================================
   FONT RESULTS SECTION
   ==================================================== */

.font-results {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
}

/* Sidebar Category Filter */
.font-category {
  order: 1;
  flex: 0 0 160px;
  position: sticky;
  top: 160px;
  align-self: flex-start;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 12px;
}

.font-category::-webkit-scrollbar {
  width: 6px;
}

.font-category::-webkit-scrollbar-track {
  background: transparent;
}

.font-category::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.font-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.font-menu button {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.4;
  transition: all var(--transition);
  position: relative;
}

.font-menu button b {
  display: block;
  font-size: 1.1rem;
  line-height: 1.2;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 700;
  transition: color var(--transition);
}

.font-menu button:hover {
  border-color: var(--primary-blue);
  background: var(--surface-subtle);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.font-menu button:hover b,
.font-menu button.active b {
  color: var(--primary-blue);
}

.font-menu button.active {
  background: var(--surface-subtle);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

/* Top Filter Menu */
.font-menu-top {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding: 5px;
  scrollbar-width: none;
}

.font-menu-top::-webkit-scrollbar {
  display: none;
}

.font-menu-top button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
}

.font-menu-top button b {
  font-size: 1rem;
  line-height: 1;
  color: var(--text);
  font-weight: 700;
}

.font-menu-top button:hover,
.font-menu-top button.active,
button.mood-category.active {
  color: white;
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

.font-menu-top button:hover b,
.font-menu-top button.active b {
  color: white;
}

/* Font Results Display */
.fontslist-sec {
  order: 2;
  flex: 1;
  min-width: 0;
}

.fontslist-sec > h4 {
  margin: 0 0 20px;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.fontslist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  padding: 0 0 24px;
}

/* Color accent for cards */
.fontslist p:nth-child(6n+1) {
  border-top: 1px solid var(--primary-blue);
}

.fontslist p:nth-child(6n+2) {
  border-top: 1px solid var(--primary-purple);
}

.fontslist p:nth-child(6n+3) {
  border-top: 1px solid var(--primary-pink);
}

.fontslist p:nth-child(6n+4) {
  border-top: 1px solid var(--primary-cyan);
}

.fontslist p:nth-child(6n+5) {
  border-top: 1px solid var(--primary-green);
}

.fontslist p:nth-child(6n+6) {
  border-top: 1px solid var(--primary-orange);
}

.fontslist p,
.bio-list p {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.bio-list p {
  opacity: 1;
}

i.font-text {
  font-style: normal;
}

.fontslist p:hover,
.bio-list p:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-lg);
}

.fontslist p.font-item-visible {
  opacity: 1;
  transform: translateY(0);
}

.fontslist p b,
.bio-list p b {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
  word-break: break-all;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', sans-serif;
}

.fontslist p[data-font-id="aestheticFonts"] b,
.aesthetic {
  font-family: Arial, Helvetica, sans-serif;
}

.fontslist p:hover b {
  color: var(--primary-blue);
}

.fontslist p span.font-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fontslist p div,
.bio-list button {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}

.fontslist p button,
.bio-list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 6px 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.fontslist p button:nth-child(2),
.styles-list p button {
  font-family: 'Material Symbols Outlined', sans-serif;
}

.fontslist p button:hover {
  background: var(--surface-subtle);
  border-color: var(--text-muted);
  color: var(--text);
}

.styles-list p {
  opacity: 1;
}

/* ====================================================
   LOAD MORE SECTION
   ==================================================== */

#loadMoreContainer {
  width: 100%;
  text-align: center;
  margin-top: 32px;
  padding: 20px 0;
}

#loadMoreContainer button,
.mood-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: 12px 32px;
  font-size: var(--text-base);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  min-width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 30px;
}

#loadMoreContainer button:hover,
.mood-load-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #3b5bdb;
}

#loadMoreContainer button:active,
.mood-load-more:active {
  transform: translateY(0px);
}

/* ====================================================
   MODAL / OVERLAY
   ==================================================== */

.mood-overlay,
.bio-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  cursor: pointer;
}

.mood-container,
.bio-container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 700px;
  height: 80vh;
  z-index: 10000;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
  border-top: 1px solid var(--primary-blue);
  padding: 24px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.mood-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition);
  line-height: 1;
  font-weight: 700;
}

.mood-close:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.mood-styles,
.bio-list {
  flex: 1;
  overflow-y: auto;
  max-height: 100%;
}

.mood-styles > h3 {
  margin: 0 0 16px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mood-menu-wrapper,
.bio-menu {
  width: 90px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 45px;
}

.mood-menu-wrapper > h3 {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mood-categories {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mood-categories button,
.mood-categories a {
  padding: 9px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    text-align: center;
    font-size: var(--text-xs);
    font-weight: 700;
    transition: all var(--transition);
    position: relative;
    flex-direction: column;
    text-decoration: none;
    touch-action: manipulation;
}

.mood-categories button:hover,
.mood-categories a:hover {
  color: white;
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-1px);
}

button.mood-category.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

/* ====================================================
   FOOTER
   ==================================================== */

footer {
  background: var(--text);
  color: white;
  padding: 28px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.foot-menu {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.foot-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  text-decoration: none;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  font-size: var(--text-sm);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.foot-menu a:hover {
  background: #3b5bdb;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ====================================================
   CONTENT SECTION (Info/About)
   ==================================================== */

.site-info {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px;
  color: var(--text);
  font-size: var(--text-base);
  line-height: 1.8;
}

.site-info h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 32px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-blue);
}

.site-info h2:first-child {
  margin-top: 0;
}

.site-info h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.3;
  margin: 28px 0 12px;
  color: var(--primary-blue);
}

.site-info h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 20px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--primary-blue);
  color: var(--text);
}

.site-info h5 {
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 20px 0 12px;
  color: var(--primary-blue);
}

.site-info p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.site-info strong,
.site-info b {
  color: var(--text);
  font-weight: 700;
}

.site-info em {
  color: var(--primary-blue);
  font-style: italic;
}

.site-info ul {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-info ul li {
  position: relative;
  padding: 12px 16px 12px 32px;
  background: var(--surface-subtle);
  border-left: 3px solid var(--primary-blue);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  word-break: break-word;
  transition: all var(--transition);
}

.site-info ul li:hover {
  background: var(--bg-alt);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.site-info ul li::before {
  content: "→";
  position: absolute;
  left: 12px;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1.1em;
}

.site-info a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
  transition: all var(--transition);
  position: relative;
}

.site-info a:hover {
  text-decoration: underline;
  color: #3b5bdb;
}

/* ====================================================
   COPY NOTIFICATION
   ==================================================== */

.copy-message {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--surface);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
}

.copy-message.show {
  opacity: 1;
}

/* ====================================================
   RESPONSIVE DESIGN
   ==================================================== */

@media (max-width: 768px) {
  .site-info img{
    width: 100%;
  }
  .header-flex {
    height: 56px;
    gap: 12px;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .head-info {
    padding: 32px 16px 24px;
  }

  .head-info h1 {
    font-size: var(--text-3xl);
  }

  .head-info p {
    font-size: var(--text-base);
  }


  .font-results {
    gap: 5px;
    padding: 5px;
  }

  .font-category {
    flex: 0 0 75px;
    padding: 2px;
            scrollbar-width: none;
        -ms-overflow-style: none;
  }

  .font-menu button {
    padding: 8px;
    font-size: var(--text-xs);
  }

  .font-menu button b {
    font-size: 1rem;
  }

  .fontslist-sec {
    order: 1;
  }

  .fontslist {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-info {
    padding: 32px 16px;
  }

  .site-info h2 {
    font-size: var(--text-2xl);
  }

  .site-info h3 {
    font-size: var(--text-xl);
  }

  .mood-container,
  .bio-container {
    left: 0;
    transform: translateX(0);
    max-width: 100%;
    width: 100%;
    border-radius: 12px 12px 0 0;
    gap: 8px;
    padding: 12px;
  }

  .mood-menu-wrapper,
  .bio-menu {
    width: 75px;
  }

  .foot-menu {
    gap: 8px;
  }

  .foot-menu a {
    font-size: var(--text-xs);
    padding: 7px 12px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .fontslist {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ====================================================
   ACCESSIBILITY & INTERACTIONS
   ==================================================== */

*:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

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

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .fontslist p,
  .bio-list p {
    border-width: 2px;
  }

  .font-menu button {
    border-width: 2px;
  }
}

/* Print Styles */
@media print {
  header,
  .input-sec,
  .font-menu-top,
  .font-category,
  #loadMoreContainer,
  footer {
    display: none !important;
  }

  body {
    background: white;
  }

  .head-info {
    background: white;
    color: var(--text);
  }

  .fontslist p {
    break-inside: avoid;
    border: 1px solid #ccc;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }

  .fontslist p button,
  .copy-message {
    display: none !important;
  }
}