/* ------------------------------------------------------------------
   Digital Escape Tools — shared styles for static info pages
   (about, contact, sitemap, categories, guides, recommendations, faq)
   Works with style4a30.css — dark glass, amber accents
------------------------------------------------------------------ */

:root {
  --page-glass: rgba(255, 255, 255, 0.04);
  --page-border: rgba(255, 255, 255, 0.12);
  --page-amber: #e4f88a;
  --page-amber-dim: rgba(255, 193, 7, 0.35);
  --page-muted: #9aa0a6;
}

/* --- Hero (top of page) --- */
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 28px 22px 26px;
  margin-bottom: 28px;
  border: 1px solid var(--page-border);
  background:
    radial-gradient(1200px 400px at 10% -20%, rgba(255, 193, 7, 0.12), transparent),
    radial-gradient(800px 300px at 90% 0%, rgba(52, 152, 219, 0.08), transparent),
    linear-gradient(165deg, rgba(47, 54, 61, 0.95), rgba(36, 41, 46, 0.88));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--page-muted);
  margin: 0 0 10px;
}

.page-hero__eyebrow i {
  color: var(--page-amber);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 700;
  color: #e6edf3;
  line-height: 1.2;
}

.page-hero__lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #bdc1c6;
}

.page-hero__actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Primary / ghost buttons aligned with det-btn family */
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #e6edf3;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.page-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

.page-btn:active {
  transform: translateY(1px);
}

.page-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.35);
}

.page-btn--amber {
  border-color: var(--page-amber-dim);
  background: rgba(255, 193, 7, 0.12);
  color: #ffd35a;
}

.page-btn--amber:hover {
  background: rgba(255, 193, 7, 0.2);
  border-color: rgba(255, 193, 7, 0.55);
}

/* --- Sections --- */
.page-section {
  margin-bottom: 32px;
}

.page-section h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
  color: #e6edf3;
}

.page-section h3 {
  margin: 22px 0 10px;
  font-size: 1.1rem;
  color: #e6edf3;
}

.page-section p,
.page-section li {
  line-height: 1.6;
  color: #bdc1c6;
}

.page-section ul {
  padding-left: 1.2rem;
}

.page-section li {
  margin-bottom: 8px;
}

.page-prose {
  max-width: 68ch;
}

.page-prose code {
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.28);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glass panel (secondary blocks) */
.page-panel {
  border-radius: 12px;
  border: 1px solid var(--page-border);
  background: var(--page-glass);
  padding: 18px 18px 16px;
  margin-bottom: 16px;
}

.page-panel p:last-child {
  margin-bottom: 0;
}

/* --- Category hub --- */
.site-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.site-cat-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid var(--page-border);
  background: linear-gradient(160deg, rgba(47, 54, 61, 0.9), rgba(36, 41, 46, 0.75));
  padding: 18px 16px 16px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.15s ease;
}

.site-cat-card:hover {
  border-color: rgba(255, 193, 7, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.site-cat-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.35);
}

.site-cat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--page-amber);
}

.site-cat-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #e6edf3;
}

.site-cat-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--page-muted);
  flex: 1;
}

.site-cat-card__go {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #8ab4f8;
}

.site-cat-card:hover .site-cat-card__go {
  color: #c8e0ff;
}

/* --- Editorial / guide cards --- */
.site-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.site-card {
  border-radius: 12px;
  border: 1px solid var(--page-border);
  background: rgba(47, 54, 61, 0.65);
  padding: 16px 16px 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-card:hover {
  border-color: rgba(255, 193, 7, 0.35);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}

.site-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--page-muted);
}

.site-card__meta .tag {
  font-size: 11px;
}

.site-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #e6edf3;
}

.site-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #bdc1c6;
}

.site-card--muted {
  opacity: 0.92;
}

/* --- Guides: filter --- */
.guides-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}

.guides-search {
  flex: 1;
  min-width: 200px;
  max-width: 420px;
  background: rgba(0, 0, 0, 0.28);
  color: #bdc1c6;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.guides-search:focus {
  outline: none;
  border-color: rgba(255, 193, 7, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.12);
}

.guides-search::placeholder {
  color: #6e7681;
}

.guide-card[hidden] {
  display: none !important;
}

/* --- Sitemap --- */
.sitemap-map {
  border-radius: 14px;
  border: 1px solid var(--page-border);
  background: rgba(0, 0, 0, 0.15);
  padding: 18px 16px 8px;
}

.sitemap-group {
  margin-bottom: 22px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.sitemap-group:last-child {
  border-bottom: 0;
  margin-bottom: 8px;
}

.sitemap-group h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e6edf3;
}

.sitemap-group h2 i {
  color: var(--page-amber);
  opacity: 0.9;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

@media (min-width: 640px) {
  .sitemap-list--cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sitemap-list a {
  color: #8ab4f8;
  text-decoration: none;
  font-size: 14px;
}

.sitemap-list a:hover {
  text-decoration: underline;
  color: #c8e0ff;
}

.sitemap-note {
  font-size: 12px;
  color: var(--page-muted);
  margin-top: 8px;
}

/* --- Contact form (UI only) --- */
.contact-form {
  max-width: 520px;
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #bdc1c6;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  color: #bdc1c6;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(255, 193, 7, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.12);
}

.contact-form__hint {
  font-size: 12px;
  color: var(--page-muted);
  margin: 0;
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* --- FAQ (native details) --- */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid var(--page-border);
  background: rgba(47, 54, 61, 0.55);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: #e6edf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-weight: 400;
  color: var(--page-amber);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-item__body {
  padding: 0 16px 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #bdc1c6;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item__body p:first-child {
  margin-top: 12px;
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

/* --- Breadcrumb --- */
.page-breadcrumb {
  font-size: 13px;
  color: var(--page-muted);
  margin-bottom: 16px;
}

.page-breadcrumb a {
  color: #8ab4f8;
  text-decoration: none;
}

.page-breadcrumb a:hover {
  text-decoration: underline;
}

/* --- Roadmap list --- */
.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.roadmap-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--page-border);
  background: rgba(0, 0, 0, 0.12);
}

.roadmap-list i {
  margin-top: 2px;
  color: var(--page-amber);
}

/* --- Shortcuts row --- */
.page-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* --- Saved tools (account) --- */
.det-saved-card__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.det-saved-card__body {
  flex: 1;
  min-width: 0;
}

.det-saved-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.det-saved-list {
  display: grid;
  gap: 14px;
}

.det-profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.det-profile-stats .site-card {
  text-align: center;
}

.det-profile-stats .det-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--page-amber);
  margin: 0 0 4px;
}

.det-profile-stats .det-stat-label {
  font-size: 12px;
  color: var(--page-muted);
  margin: 0;
}

.det-msg--error {
  color: #f85149;
  font-size: 14px;
  margin-top: 8px;
}

.det-msg--ok {
  color: #7ee787;
  font-size: 14px;
  margin-top: 8px;
}
