/* ══════════════════════════════════════
   MICA.CAFE — GLOBAL STYLES
   Shared across all pages
   ══════════════════════════════════════ */

/* ── Global Loader ── */
.mica-loader {
  position: fixed; inset: 0; z-index: 9999; background: #141316;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 28px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.mica-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.mica-loader-orb {
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(168,181,160,0.7), rgba(168,181,160,0.2));
  box-shadow: 0 0 24px rgba(168,181,160,0.15), inset 0 -3px 6px rgba(0,0,0,0.2);
  animation: loader-breathe 2.5s ease-in-out infinite;
}
@keyframes loader-breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mica-loader-orb { animation: none; opacity: 0.8; }
}

/* ── Global Nav ── */
.mica-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 28px; display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(20,19,22,0.9) 0%, rgba(20,19,22,0) 100%);
  pointer-events: none;
}
.mica-nav > * { pointer-events: auto; }
.mica-nav-brand {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 400; font-size: 0.95rem;
  color: rgba(232,230,227,0.5); text-decoration: none; letter-spacing: 0.02em;
  transition: color 0.3s; display: flex; align-items: center; gap: 8px;
}
.mica-nav-brand:hover { color: #A8B5A0; }
.mica-nav-brand-orb {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(168,181,160,0.7), rgba(168,181,160,0.2));
  box-shadow: 0 0 8px rgba(168,181,160,0.1); flex-shrink: 0;
}
.mica-nav-links { display: flex; gap: 28px; list-style: none; }
.mica-nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 300; font-size: 0.9rem;
  color: rgba(232,230,227,0.4); text-decoration: none; transition: color 0.3s; position: relative;
}
.mica-nav-links a:hover { color: rgba(232,230,227,0.75); }
.mica-nav-links a.active { color: #A8B5A0; }
.mica-nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #A8B5A0; opacity: 0.5;
}
.mica-nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.mica-nav-toggle span {
  display: block; width: 20px; height: 1.5px; background: rgba(232,230,227,0.5);
  margin: 4px 0; transition: all 0.3s ease;
}
.mica-nav-mobile {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(20,19,22,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  align-items: center; justify-content: center; flex-direction: column; gap: 24px;
  opacity: 0; transition: opacity 0.3s ease;
}
.mica-nav-mobile.open { display: flex; opacity: 1; }
.mica-nav-mobile a {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  font-size: 1.5rem; color: rgba(232,230,227,0.6); text-decoration: none; transition: color 0.3s;
}
.mica-nav-mobile a:hover { color: #A8B5A0; }
.mica-nav-mobile a.active { color: #A8B5A0; }
.mica-nav-close {
  position: absolute; top: 20px; right: 28px; background: none; border: none;
  cursor: pointer; font-size: 1.5rem; color: rgba(232,230,227,0.4); transition: color 0.3s;
}
.mica-nav-close:hover { color: rgba(232,230,227,0.7); }
@media (max-width: 640px) {
  .mica-nav-links { display: none; }
  .mica-nav-toggle { display: block; }
}

/* ── Cookie Consent ── */
.mica-cookies {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: rgba(20,19,22,0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(168,181,160,0.06); padding: 16px 24px;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 300;
  transform: translateY(100%); opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.mica-cookies.visible { transform: translateY(0); opacity: 1; }
.mica-cookies-text { font-size: 0.88rem; color: rgba(232,230,227,0.55); line-height: 1.5; }
.mica-cookies-text a { color: rgba(168,181,160,0.7); text-decoration: none; }
.mica-cookies-text a:hover { text-decoration: underline; }
.mica-cookies-btn {
  padding: 8px 20px; border-radius: 8px; border: 1px solid rgba(168,181,160,0.15);
  background: rgba(168,181,160,0.06); color: rgba(232,230,227,0.7);
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 400; font-size: 0.85rem;
  cursor: pointer; transition: all 0.3s ease; white-space: nowrap; flex-shrink: 0;
}
.mica-cookies-btn:hover { background: rgba(168,181,160,0.12); border-color: rgba(168,181,160,0.25); }
@media (max-width: 520px) {
  .mica-cookies { flex-direction: column; gap: 12px; text-align: center; padding: 20px 20px; }
}

/* ── Global Footer ── */
.mica-footer {
  max-width: 720px; margin: 0 auto; padding: 40px 24px 60px;
  border-top: 1px solid rgba(168,181,160,0.06);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.mica-footer-brand { display: flex; align-items: center; gap: 8px; }
.mica-footer-orb {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(168,181,160,0.6), rgba(168,181,160,0.2));
  flex-shrink: 0;
}
.mica-footer-brand span { font-size: 0.85rem; color: rgba(232,230,227,0.3); }
.mica-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.mica-footer-links a {
  font-size: 0.8rem; color: rgba(232,230,227,0.25); text-decoration: none; transition: color 0.3s;
}
.mica-footer-links a:hover { color: rgba(168,181,160,0.6); }
@media (max-width: 520px) {
  .mica-footer { flex-direction: column; text-align: center; gap: 12px; }
  .mica-footer-links { justify-content: center; }
}

/* ══════════════════════════════════════
   MOBILE EXPERIENCE
   ══════════════════════════════════════ */

@media (max-width: 768px) {
  a, button, input, [role="button"] { min-height: 44px; }
  html, body { overflow-x: hidden; width: 100%; }
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
}

/* iOS Safari specific */
input, textarea, select { font-size: 16px !important; }
.full-height { height: 100vh; height: 100dvh; }
.chat-messages { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.fullscreen-page { position: fixed; inset: 0; overflow: hidden; -webkit-overflow-scrolling: touch; }
.chat-container { height: 100dvh; display: flex; flex-direction: column; }
