/* ===========================
   Base
   =========================== */
html, body { overflow-x: hidden; }

/* ===========================
   Design Tokens
   =========================== */
:root {
  --accent:       #F05138;
  --accent-hover: #D93F25;
  --accent-light: #fff0ed;
  --text:         #1D1D1F;
  --text-sec:     #6E6E73;
  --border:       #D2D2D7;
  --surface:      #FFFFFF;
  --sidebar-w:    260px;
}

/* ===========================
   Sidebar
   =========================== */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 2rem 1.5rem;
}

.sidebar-brand { margin-bottom: 2rem; }

.sidebar-name {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  line-height: 1.25;
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.sidebar-name:hover { color: var(--accent); }

.sidebar-tagline {
  margin: 0;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sec);
}

.sidebar-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 1.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar-nav-link {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sec);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.sidebar-nav-link:hover {
  color: var(--text);
  background: #F5F5F7;
}
.sidebar-nav-link.active {
  color: var(--accent);
  background: var(--accent-light);
  font-weight: 600;
}

.sidebar-footer {
  padding-top: 1.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.sidebar-social {
  color: var(--text-sec);
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s;
}
.sidebar-social:hover { color: var(--accent); }

/* ===========================
   Main content wrapper
   =========================== */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* ===========================
   Mobile burger
   =========================== */
.burger-btn {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  line-height: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s;
}

/* ===========================
   Animations
   =========================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.float-anim { animation: float 4.5s ease-in-out infinite; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .float-anim { animation: none; }
  .reveal { transition: none; }
}

/* ===========================
   Shared components
   =========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover  { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.1s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.app-store-badge-img { height: 40px; display: block; transition: opacity 0.2s; }
.app-store-link:hover .app-store-badge-img { opacity: 0.75; }

.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 5px;
  vertical-align: middle;
  animation: pulse-g 2s infinite;
}
@keyframes pulse-g {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ===========================
   Mobile breakpoint
   =========================== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(calc(-1 * var(--sidebar-w))); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; pointer-events: none; }
  .sidebar-overlay.open { opacity: 1; pointer-events: auto; }
  .main-content { margin-left: 0; }
  .burger-btn { display: flex; align-items: center; justify-content: center; }
  .sidebar-brand { padding-left: 2.5rem; }
  .sidebar-nav-link { padding: 0.7rem 0.75rem; font-size: 0.95rem; }
  .btn-primary, .btn-secondary { min-height: 44px; justify-content: center; }
}
