/* ====================================================
   COLORFUL & VIBRANT REDESIGN
   Font Generator Website - Bold Color Palette
   ==================================================== */

:root {
  /* Primary Color Gradient System */
  --primary-blue: #2563eb;
  --primary-purple: #9333ea;
  --primary-pink: #ec4899;
  --primary-cyan: #06b6d4;
  --primary-green: #10b981;
  --primary-orange: #f97316;
  --primary-red: #ef4444;
  
  /* Lighter Tints */
  --blue-light: #eff6ff;
  --purple-light: #faf5ff;
  --pink-light: #fdf2f8;
  --cyan-light: #ecf7ff;
  --green-light: #ecfdf5;
  --orange-light: #fff7ed;
  --red-light: #fef2f2;
  
  /* Dark Accents */
  --blue-dark: #1d4ed8;
  --purple-dark: #7e22ce;
  --pink-dark: #be185d;
  --cyan-dark: #0891b2;
  --green-dark: #059669;
  --orange-dark: #ea580c;
  --red-dark: #dc2626;
  
  /* Neutral Scale */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  
  /* Text */
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  /* Gradients */
  --gradient-main: linear-gradient(135deg, #2563eb 0%, #9333ea 25%, #ec4899 50%, #06b6d4 75%, #10b981 100%);
  --gradient-warm: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #9333ea 100%);
  --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #2563eb 50%, #9333ea 100%);
  --gradient-sunset: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
  
  /* Spacing & Sizing */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.15);
  --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.18);
  
  /* Transitions */
  --transition: 150ms ease;
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, '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: #0f172a;
  --surface: #1e293b;
  --surface-alt: #334155;
  --border: #475569;
  --border-strong: #64748b;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
}

/* ====================================================
   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: 2px solid var(--border);
  box-shadow: var(--shadow-md);
}

.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: 800;
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* Theme Toggle */
#themeToggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-main);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  box-shadow: var(--shadow-md);
}

#themeToggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

#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;
  overflow: hidden;
}

.nav-desktop > a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-main);
  z-index: -1;
  transition: left var(--transition);
}

.nav-desktop > a:hover::before,
.nav-desktop > a.active::before {
  left: 0;
}

.nav-desktop > a:hover,
.nav-desktop > a.active {
  color: white;
}

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

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

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

.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: 200px;
  background: var(--surface);
  border: 2px 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);
  white-space: nowrap;
  transition: all var(--transition);
  font-weight: 500;
}

.dropdown a:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateX(4px);
}

/* Mobile Menu */
.hamburger {
  display: none;
  background: var(--gradient-main);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px;
  cursor: pointer;
  color: white;
  box-shadow: var(--shadow-md);
}

.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: 2px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition);
}

.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);
  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: 48px 20px 32px;
  text-align: center;
  background: var(--gradient-main);
  color: white;
  position: relative;
  overflow: hidden;
}

.head-info::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: drift 20s linear infinite;
}

@keyframes drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.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: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.head-info h1 em {
  font-style: normal;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.head-info p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.95);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

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

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

.input-info {
  display: block;
  text-align: center;
  padding: 8px 0;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  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 4px var(--blue-light);
}

#inputText {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: var(--text-lg);
  padding: 16px 12px;
  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: 6px;
  font-size: var(--text-xs);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.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(--gradient-main);
  color: white;
}

#bioIdeas {
      position: absolute;
    right: 8px;
    width: auto;
    height: auto;
    bottom: 8px;
    background: var(--gradient-sunset);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 2px;
    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);
}
button.mood-scroll-btn {
    border-radius: 10px;
    border: none;
    padding: 10px;
}
#bioIdeas:hover {
  box-shadow: var(--shadow-md);
}
button#clearInput {
    top: 0;
    right: 0;
}
/* ====================================================
   FONT RESULTS SECTION
   ==================================================== */

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

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

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

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

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


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

.font-menu button {
  display: block;
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  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;
  overflow: hidden;
}

.font-menu button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-main);
  z-index: -1;
  transition: left var(--transition);
}

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

.font-menu button:hover {
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.font-menu button:hover::before,
.font-menu button.active::before {
  left: 0;
}

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

.font-menu button:hover,
.font-menu button.active {
    background: var(--primary-blue);
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* Top Filter Menu */
.font-menu-top {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  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: 8px;
  padding: 10px 18px;
  border: 2px 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;
  overflow: hidden;
}

.font-menu-top button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-main);
  z-index: -1;
  transition: left var(--transition);
}

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

.font-menu-top button:hover::before,
.font-menu-top button.active::before {
  left: 0;
}

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

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

/* 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;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}

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

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

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

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

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

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

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

.fontslist p:nth-child(7n+7) {
  border-left: 1px solid var(--primary-red);
}

.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::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.fontslist p:hover::before {
  transform: scaleX(1);
}

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

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

.fontslist p:nth-child(7n+1):hover {
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.2);
}

.fontslist p:nth-child(7n+2):hover {
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.2);
}

.fontslist p:nth-child(7n+3):hover {
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.2);
}

.fontslist p:nth-child(7n+4):hover {
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.2);
}

.fontslist p:nth-child(7n+5):hover {
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.2);
}

.fontslist p:nth-child(7n+6):hover {
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.2);
}

.fontslist p:nth-child(7n+7):hover {
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.2);
}

.fontslist p b,
.bio-list p b {
  display: block;
  font-size: 1.2rem;
  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', 'Noto Sans Math', 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Noto Sans Canadian Aboriginal', 'Noto Sans Javanese', 'Noto Sans Balinese', 'Noto Sans Cherokee', 'Noto Serif Tibetan', 'Segoe UI Symbol', 'Apple Symbols', 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: 5px;
  right: 5px;
  display: flex;
  gap: 5px;
}

.fontslist p button,
.bio-list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent ;
  color: var(--primary-blue);
  border: 2px solid transparent ;
  border-radius: var(--radius-md);
  padding: 6px 12px;
  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;
}

/* Color button variations */
.fontslist p:nth-child(7n+1) button {
  color: var(--primary-blue);
}

.fontslist p:nth-child(7n+1) button:hover {
  background: var(--primary-blue);
    border-color: var(--primary-blue);
  color: white;
}

.fontslist p:nth-child(7n+2) button {
  color: var(--primary-purple);
}

.fontslist p:nth-child(7n+2) button:hover {
  background: var(--primary-purple);
    border-color: var(--primary-purple);

  color: white;
}

.fontslist p:nth-child(7n+3) button {
  color: var(--primary-pink);
}

.fontslist p:nth-child(7n+3) button:hover {
    background: var(--primary-pink);
  border-color: var(--primary-pink);

  color: white;
}

.fontslist p:nth-child(7n+4) button {
  color: var(--primary-cyan);
}

.fontslist p:nth-child(7n+4) button:hover {
  background: var(--primary-cyan);
    border-color: var(--primary-cyan);

  color: white;
}

.fontslist p:nth-child(7n+5) button {
  color: var(--primary-green);
}

.fontslist p:nth-child(7n+5) button:hover {
  background: var(--primary-green);
  color: white;
    border-color: var(--primary-green);

}

.fontslist p:nth-child(7n+6) button {
  color: var(--primary-orange);
}

.fontslist p:nth-child(7n+6) button:hover {
  background: var(--primary-orange);
  color: white;
    border-color: var(--primary-orange);

}

.fontslist p:nth-child(7n+7) button {
  color: var(--primary-red);
}

.fontslist p:nth-child(7n+7) button:hover {
  background: var(--primary-red);
    border-color: var(--primary-red);

  color: white;
}
.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(--gradient-main);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: 14px 36px;
  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(-4px);
  box-shadow: var(--shadow-xl);
}

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

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

.mood-overlay,
.bio-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  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: 20px 20px 0 0;
  border-top: 3px solid;
  border-image: var(--gradient-main) 1;
  padding: 24px;
  display: flex;
  gap: 20px;
  box-shadow: var(--shadow-xl);
}

.mood-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-main);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  font-size: var(--text-lg);
  transition: all var(--transition);
  line-height: 1;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.mood-close:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.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;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mood-menu-wrapper,
.bio-menu {
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 55px;
}

.mood-menu-wrapper > h3 {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  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: 10px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 700;
  transition: all var(--transition);
  position: relative;
}


.mood-categories button:hover,
.mood-categories a:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}
button.mood-category.active{

}

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

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

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

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

.foot-menu a:hover {
  box-shadow: var(--shadow-lg);
}

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

.site-info {
  max-width: 800px;
  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: 3px solid;
  border-image: var(--gradient-main) 1;
}

.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;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-info h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 20px 0 12px;
  padding-left: 12px;
  border-left: 1px 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;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.site-info strong,
.site-info b {
  color: var(--text);
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-info em {
  color: var(--text-secondary);
  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-alt);
  border-left: 1px 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(--surface);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-left-color: var(--primary-purple);
}

.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;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple), var(--primary-pink));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-info a:hover {
  background-position: 100% 0;
}

/* ====================================================
   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) {
  .header-flex {
    height: 56px;
    gap: 12px;
  }

  .nav-desktop {
    display: none;
  }

  .right-actions {
    display: flex !important;
  }

  .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);
  }

  #inputText {
    font-size: var(--text-base);
    padding: 14px 12px;
  }
.font-results {
    gap: 5px;
    padding: 10px;
}


  .font-category {
     flex: 0 0 80px;
     padding: 5px;
     scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }



  .font-menu button {
    flex: 0 0 calc(50% - 4px);
    padding: 10px;
    font-size: var(--text-xs);
  }

  .fontslist-sec {
    order: 1;
  }

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

  .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: 16px 16px 0 0;
    gap: 5px;
    padding: 10px;
  }
.mood-menu-wrapper, .bio-menu {
    width: 85px;
}
  .foot-menu {
    gap: 8px;
  }

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

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

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

*:focus-visible {
  outline: 3px 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(--surface);
}

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

::-webkit-scrollbar-thumb:hover {
  opacity: 0.8;
}

/* 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: 2px solid #ccc;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }

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