/* =========================================================
   AIDORY LOGO — FINAL FIXED VERSION (Stable sprout + responsive)
   ========================================================= */

/* ====== LOGO CONTAINER ====== */
.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 12px 0;
  background: #fff;
}

/* ====== LOGO BLOCK ====== */
.aidory-logo {
  --logo-font: "Poppins", system-ui, -apple-system, Arial, sans-serif;
  --logo-weight: 800;
  --logo-size: 32px;         /* default desktop size */
  --sprout-width: 46px;      /* sprout default size */
  --logo-color: #064e3b;     /* Aidory green */

  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--logo-font);
  font-weight: var(--logo-weight);
  font-size: var(--logo-size);
  color: var(--logo-color);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.1);
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

/* ====== LETTERS (Gradient shimmer) ====== */
.aidory-logo span {
  background: linear-gradient(90deg,#064e3b,#059669,#34d399,#059669,#064e3b);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: aidorySweep 6s linear infinite;
}

/* ====== 'd' LETTER HOLDS THE SPROUT ====== */
.aidory-logo .d {
  position: relative;
  display: inline-block;
}

/* ====== SPROUT (Stable – em-based, no jumps) ====== */
.aidory-logo .sprout {
  position: absolute;
  left: 0.60em;              /* ✅ stays consistent even after font loads */
  top: -0.72em;
  width: var(--sprout-width);
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(21,128,61,.35));
  transform-origin: 50% 90%;
  animation: aidoryGrow .6s ease-out 1, aidorySway 5s ease-in-out 1s infinite;
}

/* ====== HOVER GLOW ====== */
.aidory-logo:hover {
  filter: drop-shadow(0 0 18px rgba(34,197,94,.55));
}

/* =========================================================
   🌍 RESPONSIVE MEDIA (INTERNATIONAL STANDARD BREAKPOINTS)
   ========================================================= */

/* Phones: < 320px */
@media (max-width: 319px) {
  .aidory-logo { --logo-size: 17px; --sprout-width: 25px; }
  .aidory-logo .sprout { left: -0.20em; top: -0.64em; }
}

/* Phones: 320–359px */
@media (min-width: 320px) and (max-width: 359px) {
  .aidory-logo { --logo-size: 19px; --sprout-width: 28px; }
  .aidory-logo .sprout { left: -0.20em; top: -0.64em; }
}

/* Phones: 360–399px */
@media (min-width: 360px) and (max-width: 399px) {
  .aidory-logo { --logo-size: 20px; --sprout-width: 29px; margin-top: 5px; }
  .aidory-logo .sprout { left: -0.20em; top: -0.62em; }
}

/* Phones: 400–479px */
@media (min-width: 400px) and (max-width: 479px) {
  .aidory-logo { --logo-size: 20px; --sprout-width: 30px; }
  .aidory-logo .sprout { left: -0.22em; top: -0.66em; }
}

/* Tablets portrait: 480–767px */
@media (min-width: 480px) and (max-width: 767px) {
  .aidory-logo { --logo-size: 22px; --sprout-width: 34px; margin-top: 5px; }
  .aidory-logo .sprout { left: -0.22em; top: -0.66em; }
}

/* Tablets landscape: 768–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .aidory-logo { --logo-size: 26px; --sprout-width: 36px; margin-top: 10px; }
  .aidory-logo .sprout { left: -0.18em; top: -0.58em; }
}

/* Desktops / Laptops: 1024–1599px */
@media (min-width: 1024px) and (max-width: 1599px) {
  .aidory-logo { --logo-size: 36px; --sprout-width: 52px; margin-top: 10px; }
  .aidory-logo .sprout { left: -0.19em; top: -0.62em; }
}

/* 4K Displays: 1600px+ */
@media (min-width: 1600px) {
  .aidory-logo { --logo-size: 42px; --sprout-width: 60px; }
  .aidory-logo .sprout { left: 0.64em; top: -0.76em; }
}

/* =========================================================
   MOTION (light, elegant)
   ========================================================= */
@keyframes aidorySweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes aidoryGrow {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes aidorySway {
  0%,100% { transform: rotate(0deg); }
  25%     { transform: rotate(-2deg); }
  75%     { transform: rotate(2deg); }
}

/* Accessibility — disable motion if user prefers */
@media (prefers-reduced-motion: reduce) {
  .aidory-logo span,
  .aidory-logo .sprout {
    animation: none !important;
  }
}
/*     Logo  End     */


/* ==========================================================
   AIDORY HAMBURGER MENU + DRAWER SYSTEM (PREMIUM STYLE)
   Compatible with all devices — 280px → 4K screens
   ========================================================== */

/* ===== HAMBURGER ICON ===== */
.aidory-hamburger {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
  height: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2000;
  -webkit-tap-highlight-color: transparent;
}

.aidory-hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #064e3b;
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* When open */
.aidory-hamburger.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.aidory-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.aidory-hamburger.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* ===== DRAWER BASE ===== */
.aidory-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100%;
  background: #ffffff;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s ease;
  overflow-y: auto;
  padding: 24px 18px 26px;
}

.aidory-nav.open {
  right: 0;
}

.aidory-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1400;
}
.aidory-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ===== TOP BAR (close × + theme icon) ===== */
.aidory-drawer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* Close button */
.aidory-close {
  appearance: none;
  border: none;
  background: transparent;
  color: #0f172a;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}
.aidory-close:hover { transform: scale(1.1); color: #14532d; }

/* ===== THEME ICON (light/dark toggle) ===== */
.theme-icon-btn {
  appearance: none;
  border: 0;
  background: rgba(17, 24, 39, 0.15);
  backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 24px rgba(2, 6, 23, 0.18);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.theme-icon-btn:hover {
  transform: translateY(-1px);
}
.theme-icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: #064e3b;
  fill: none;
  transition: stroke 0.3s ease, transform 0.3s ease;
}
html[data-theme="dark"] .theme-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 8px 24px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .theme-icon-btn svg {
  stroke: #e2e8f0;
  transform: rotate(180deg);
}

/* ===== PROFILE SECTION ===== */
.drawer-profile {
  margin-top: 10px;
}
.dp-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fafafa);
  border: 1px solid rgba(2, 6, 23, 0.06);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.dp-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
}
.dp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dp-meta { line-height: 1.2; }
.dp-name { font-weight: 700; font-size: 16px; color: #0f172a; }
.dp-email { font-size: 13px; color: #64748b; }

/* Quick profile actions */
.dp-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dp-chip {
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  padding: 6px 12px;
  color: #064e3b;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  transition: all 0.2s ease;
}
.dp-chip:hover {
  background: #d1fae5;
  transform: translateY(-1px);
}
.dp-chip.danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* ===== MENU LINKS ===== */
.aidory-menu {
  list-style: none;
  padding: 0;
  margin: 20px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.aidory-menu a {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 600;
  color: #064e3b;
  text-decoration: none;
  transition: all 0.2s ease;
}
.aidory-menu a:hover {
  background: #ecfdf5;
  color: #022c22;
}

/* ===== BOTTOM ACTION BUTTONS ===== */
.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.qa-btn {
  display: inline-block;
  padding: 12px 18px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.qa-start {
  background: linear-gradient(135deg, #14532d, #22c55e);
  color: white;
}
.qa-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}
.qa-auth {
  background: #ecfdf5;
  color: #064e3b;
  border: 1px solid #a7f3d0;
}
.qa-auth:hover {
  background: #d1fae5;
}

/* ===== DARK MODE VARIANTS ===== */
html[data-theme="dark"] .aidory-nav {
  background: #0f172a;
  color: #e2e8f0;
}
html[data-theme="dark"] .aidory-menu a {
  color: #e2e8f0;
}
html[data-theme="dark"] .aidory-menu a:hover {
  background: #1e293b;
}
html[data-theme="dark"] .dp-card {
  background: #1e293b;
  border-color: #334155;
}
html[data-theme="dark"] .dp-name { color: #f8fafc; }
html[data-theme="dark"] .dp-email { color: #cbd5e1; }
html[data-theme="dark"] .qa-start {
  background: linear-gradient(135deg, #16a34a, #4ade80);
}
html[data-theme="dark"] .qa-auth {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}