@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* Shared shell components stay semantic; page-specific layout can stay in Tailwind. */
.app-header-shell {
  position: relative;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #44403c;
  background: rgba(28, 25, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.app-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.app-brand-logo {
  width: auto;
  height: 2.5rem;
  flex-shrink: 0;
}

.app-brand-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.app-brand-subtitle {
  margin: 0.125rem 0 0;
  color: #a8a29e;
  font-size: 0.75rem;
}

.app-header-actions {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.content-shell {
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.app-footer-shell {
  padding: 1.25rem 1rem;
  border-top: 1px solid #292524;
  color: #78716c;
  font-size: 0.75rem;
  text-align: center;
}

@media (min-width: 600px) {
  .app-header-shell,
  .content-shell {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 800px) {
  .app-header-shell {
    flex-direction: row;
    align-items: center;
  }

  .app-header-actions {
    width: auto;
  }

  .app-brand-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1000px) {
  .content-shell {
    padding-block: 3rem;
  }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0c0a09; }
::-webkit-scrollbar-thumb { background: #44403c; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #f59e0b; }

.btn-shine {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
  background-size: 200% auto;
  transition: background-position .4s, transform .15s, box-shadow .15s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: .6rem;
  padding: .5rem 1.1rem;
}
.btn-shine:hover {
  background-position: right center;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(245,158,11,.35);
}

.btn-secondary {
  background: rgba(41, 37, 36, .9);
  color: #f5f5f4;
  border: 1px solid #57534e;
  transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .15s;
}

.btn-secondary:hover {
  background: #292524;
  border-color: rgba(245,158,11,.55);
  color: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

.nav-pill {
  background: rgba(41, 37, 36, .9);
  color: #f5f5f4;
  border: 1px solid #57534e;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .15s;
}

.nav-pill:hover {
  background: #292524;
  border-color: rgba(245,158,11,.55);
  color: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}

.nav-pill-active {
  background: rgba(245, 158, 11, .12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, .4);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, .1), 0 0 16px rgba(245, 158, 11, .08);
}

.nav-pill-active:hover {
  background: rgba(245, 158, 11, .16);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, .48);
}

.footer-link {
  color: #78716c;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease, text-shadow .2s ease;
}

.footer-link:hover {
  color: #fbbf24;
}

.footer-link-active {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-shadow: 0 0 14px rgba(245, 158, 11, .42);
  transition: color .2s ease, text-shadow .2s ease;
}

.footer-link-active:hover {
  color: #fcd34d;
  text-shadow: 0 0 18px rgba(245, 158, 11, .52);
}

.view-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.view-switcher-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(41, 37, 36, 0.74);
  color: #d6d3d1;
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.view-switcher-link:hover {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.44);
  background: rgba(41, 37, 36, 0.92);
}

.view-switcher-link-active {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(245, 158, 11, 0.1);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.16);
}

@keyframes pageFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.page-fade { animation: pageFade .3s ease; }
