/* Gilroy Font Import */
@font-face {
font-family: 'Gilroy';
src: url("../fonts/Gilroy Light/Gilroy-Regular.31ff7c1a62a3.ttf") format('truetype');
font-weight: 600;
font-style: normal;
font-display: swap;
}

#seo-text-container h2,h3{font-weight: 600;}
#seo-text-container h2{font-size: 23px;line-height: 130%;}
#seo-text-container h3{font-size: 20px;line-height: 130%;}
#seo-text-container ul{list-style: inside;padding-left: 15px;}
#seo-text-container ul li{margin-bottom:5px}
#seo-text-container ul li:last-child{margin-bottom:0}


/* Logo Text */
.logo-text {
font-family: 'Gilroy', sans-serif;
}

/* Base Container Styles */
.container {
width: 100%;
margin: 0 auto;
padding: 0 0.5rem;
}

@media (max-width: 480px) {
.container {
padding-left: 1rem;
padding-right: 1rem;
}
}

@media (max-width: 767.98px){
#seo-text-container h2{font-size: 20px;line-height: 130%;}
#seo-text-container h3{font-size: 18px;line-height: 130%;}
}



@media (min-width: 768px) {
.container {max-width: 768px;padding: 0 1.5rem;}
}

@media (min-width: 1024px) {
.container {
max-width: 1024px;
padding: 0 2rem;
}
}

@media (min-width: 1120px) {
.container {
max-width: 1120px;
}
}

@media (min-width: 1280px) {
.container {
max-width: 1280px;
}
}

/* Mobile-First Typography */
.heading-xl {
font-size: 1.875rem; /* 30px */
line-height: 1.1;
font-weight: 800;
letter-spacing: -0.025em;
}

@media (min-width: 480px) {
.heading-xl {
font-size: 2.25rem; /* 36px */
}
}

@media (min-width: 768px) {
.heading-xl {
font-size: 3rem; /* 48px */
}
}

@media (min-width: 1024px) {
.heading-xl {
font-size: 3.75rem; /* 60px */
}
}

/* Responsive Text Sizes */
.text-xl {
font-size: 0.875rem; /* 14px for mobile */
line-height: 1.4;
}

@media (min-width: 480px) {
.text-xl {
font-size: 1rem; /* 16px */
line-height: 1.5;
}
}

@media (min-width: 768px) {
.text-xl {
font-size: 1.25rem; /* 20px */
line-height: 1.6;
}
}

/* Button Responsive Styles */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.375rem; /* 6px */
border-radius: 1rem;
padding: 0.5rem 0.875rem; /* 8px 14px for mobile */
font-size: 0.75rem; /* 12px */
font-weight: 600;
transition: all 0.2s ease;
outline: none;
text-decoration: none;
}

@media (min-width: 480px) {
.btn {
gap: 0.5rem; /* 8px */
padding: 0.625rem 1rem; /* 10px 16px */
font-size: 0.875rem; /* 14px */
border-radius: 1.25rem;
}
}

@media (min-width: 768px) {
.btn {
gap: 0.5rem;
padding: 0.75rem 1.25rem; /* 12px 20px */
font-size: 0.875rem;
border-radius: 1.5rem;
}
}

/* Card Responsive Styles */
.card {
border-radius: 1rem; /* 16px for mobile */
border: 1px solid var(--bord);
background: var(--card);
backdrop-filter: blur(2px);
box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

@media (min-width: 480px) {
.card {
border-radius: 1.5rem; /* 24px */
box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
}

@media (min-width: 768px) {
.card {
border-radius: 1.875rem; /* 30px */
box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
}

/* Grid Responsive Layouts */
.grid-responsive-2 {
display: grid;
grid-template-columns: 1fr;
gap: 0.75rem; /* 12px for mobile */
}

@media (min-width: 480px) {
.grid-responsive-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
}

.grid-responsive-3 {
display: grid;
grid-template-columns: 1fr;
gap: 0.75rem;
}

@media (min-width: 480px) {
.grid-responsive-3 {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
}

@media (min-width: 768px) {
.grid-responsive-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.25rem;
}
}

.grid-responsive-4 {
display: grid;
grid-template-columns: 1fr;
gap: 0.75rem;
}

@media (min-width: 480px) {
.grid-responsive-4 {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
}

@media (min-width: 768px) {
.grid-responsive-4 {
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1.25rem;
}
}

@media (min-width: 1024px) {
.grid-responsive-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1.5rem;
}
}

/* Responsive Spacing */
.section-padding {
padding: 2rem 0; /* 32px for mobile */
}

@media (min-width: 480px) {
.section-padding {
padding: 3rem 0; /* 48px */
}
}

@media (min-width: 768px) {
.section-padding {
padding: 4rem 0; /* 64px */
}
}

@media (min-width: 1024px) {
.section-padding {
padding: 5rem 0; /* 80px */
}
}

/* Mobile Navigation Improvements */
@media (max-width: 479px) {
.mobile-nav-hidden {
display: none;
}

.mobile-menu-button {
display: flex;
}

.mobile-menu {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--bg);
z-index: 50;
padding: 1rem;
}
}

/* Form Responsive Styles */
.field {
width: 100%;
border-radius: 0.75rem; /* 12px for mobile */
border: 1px solid var(--bord);
background: rgba(255,255,255,0.7);
padding: 0.625rem 0.875rem; /* 10px 14px */
font-size: 0.875rem; /* 14px */
outline: none;
transition: all 0.2s ease;
}

@media (min-width: 480px) {
.field {
border-radius: 1rem; /* 16px */
padding: 0.75rem 1rem; /* 12px 16px */
font-size: 1rem; /* 16px */
}
}

[data-theme="dark"] .field {
background: rgba(255,255,255,0.05);
}

.field:focus {
border-color: rgba(1,209,251,0.6);
box-shadow: 0 0 0 2px rgba(1,209,251,0.3);
}

/* Responsive Image Containers */
.aspect-square {
aspect-ratio: 1;
}

.aspect-video {
aspect-ratio: 16/9;
}

.aspect-photo {
aspect-ratio: 4/5;
}

/* Mobile-first utilities */
.text-center-mobile {
text-align: center;
}

@media (min-width: 768px) {
.text-left-desktop {
text-align: left;
}
}

.flex-col-mobile {
display: flex;
flex-direction: column;
}

@media (min-width: 768px) {
.flex-row-desktop {
flex-direction: row;
}
}

/* Gallery specific responsive styles */
.gallery-item {
transition: transform 0.2s ease;
}

.gallery-item:hover {
transform: translateY(-2px);
}

@media (max-width: 479px) {
.gallery-item:hover {
transform: none; /* Disable hover effects on mobile */
}
}

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

/* Print styles */
@media print {
.no-print {
display: none !important;
}

.card {
border: 1px solid #ccc;
box-shadow: none;
}
}

/* Dashboard Drawer */
#dashboardDrawer { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
#dbBackdrop { transition: opacity 0.3s ease-in-out; }
#dashboardDrawer.dragging { user-select: none; }
@media (max-width: 767px) { #dashboardDrawer { width: min(85vw, 320px); } }
@media (max-width: 640px) {
#dashboardDrawer nav a { padding: 16px 12px; }
#dashboardDrawer nav .w-8.h-8 { width: 40px; height: 40px; }
}
@media (hover: hover) {
#dashboardDrawer nav a:hover { background-color: rgb(0 0 0 / 0.04); }
[data-theme="dark"] #dashboardDrawer nav a:hover { background-color: rgb(255 255 255 / 0.1); }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV  (.mbn)
   Visible only on mobile (<1024px). Hides on desktop via media query.
   Supports dark / light theme via [data-theme] on <html>.
   Safe-area aware (iPhone notch / Android gesture bar).
   Fluid from 320 px upward.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Root: layout ────────────────────────────────────────────────── */
.mbn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;                /* below drawer (z-50) but above content */
  display: flex;
  align-items: stretch;
  justify-content: space-around;

  /* glass base — dark theme (default, since html[data-theme=dark]) */
  background: rgba(13, 17, 28, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.35);

  /* safe area for home-bar / gesture bar */
  padding-bottom: env(safe-area-inset-bottom, 0px);

  /* height: 56px content + safe-area */
  min-height: calc(56px + env(safe-area-inset-bottom, 0px));
}

/* Light theme override */
html[data-theme="light"] .mbn {
  background: rgba(255, 255, 255, 0.88);
  border-top-color: rgba(0,0,0,0.08);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .mbn { display: none; }
}

/* ── Items ───────────────────────────────────────────────────────── */
.mbn__item {
  flex: 1 1 0;
  min-width: 0;                 /* prevent overflow at 320px */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  color: rgba(255,255,255,0.45);
  transition: color 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  border-radius: 0;
  font-family: inherit;
}

html[data-theme="light"] .mbn__item {
  color: rgba(0,0,0,0.40);
}

/* hover (pointer devices) */
@media (hover: hover) {
  .mbn__item:hover {
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.05);
  }
  html[data-theme="light"] .mbn__item:hover {
    color: rgba(0,0,0,0.70);
    background: rgba(0,0,0,0.04);
  }
}

/* active press */
.mbn__item:active {
  transform: scale(0.93);
}

/* ── Active / current page ───────────────────────────────────────── */
.mbn__item--active {
  color: #01d1fb;              /* brand cyan / primary */
}
html[data-theme="light"] .mbn__item--active {
  color: #0099c0;
}

/* active indicator dot under label */
.mbn__item--active .mbn__label::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  margin: 2px auto 0;
}

/* ── Icons ───────────────────────────────────────────────────────── */
.mbn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.mbn__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* relative wrapper for badge */
.mbn__icon--rel {
  position: relative;
}

/* ── Avatar (profile item) ───────────────────────────────────────── */
.mbn__avatar-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  ring: 2px solid transparent;
  transition: box-shadow 0.18s ease;
  box-shadow: 0 0 0 2px transparent;
}
.mbn__item--active .mbn__avatar-wrap,
.mbn__item:active   .mbn__avatar-wrap {
  box-shadow: 0 0 0 2px #01d1fb;
}
html[data-theme="light"] .mbn__item--active .mbn__avatar-wrap {
  box-shadow: 0 0 0 2px #0099c0;
}
.mbn__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mbn__avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #01d1fb, #3b82f6);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

/* ── Generate button (center, elevated) ──────────────────────────── */
.mbn__item--generate {
  flex: 1.1 1 0;               /* slightly wider tap zone */
}

.mbn__gen-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #01d1fb 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(1,209,251,0.40);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
  margin-top: -6px;            /* lift above bar */
}
.mbn__gen-btn svg {
  width: 20px;
  height: 20px;
  color: #fff;
  stroke: #fff;
}
.mbn__item--generate.mbn__item--active .mbn__gen-btn,
.mbn__item--generate:active .mbn__gen-btn {
  box-shadow: 0 6px 22px rgba(1,209,251,0.60);
  transform: scale(1.08);
}

/* ── Labels ──────────────────────────────────────────────────────── */
.mbn__label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}
.mbn__label--gen {
  color: #01d1fb;
  font-weight: 600;
}
html[data-theme="light"] .mbn__label--gen {
  color: #0099c0;
}

/* ── Notification badges ─────────────────────────────────────────── */
.mbn__badge-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid rgba(13,17,28,0.85);
}
html[data-theme="light"] .mbn__badge-dot {
  border-color: rgba(255,255,255,0.90);
}
.mbn__badge-tiny {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ── Body padding compensation ───────────────────────────────────── */
/* Already handled via JS --mbn-h variable set below;
   fallback: 64px so footer / content not hidden on first paint       */
@media (max-width: 1023.98px) {
  body {
    padding-bottom: calc(var(--mbn-h, 64px) + env(safe-area-inset-bottom, 0px));
  }
}

/* ── 320 px squeeze: reduce padding/font ────────────────────────── */
@media (max-width: 359px) {
  .mbn__item    { padding: 7px 2px 5px; gap: 2px; }
  .mbn__icon svg { width: 20px; height: 20px; }
  .mbn__label   { font-size: 9px; }
  .mbn__gen-btn { width: 40px; height: 40px; border-radius: 12px; }
  .mbn__gen-btn svg { width: 18px; height: 18px; }
  .mbn__avatar-wrap { width: 26px; height: 26px; }
}
