/* ==========================================================================
   Port Pal Pro Forum — "Deep Sea" restyle (2026-08-27, Rob: website UI must
   carry over to the forums). Same class names as the original forum CSS so
   app.js-generated markup keeps working — only the design changes.
   Palette matches claude_website css/site.css.
   ========================================================================== */

:root {
  /* Abyss palette */
  --abyss-900: #04080f;
  --abyss-800: #070d1a;
  --abyss-700: #0b1526;
  --abyss-600: #101f36;
  --abyss-500: #16294a;

  /* Accents */
  --aqua: #35e0d0;
  --aqua-soft: #7ff2e6;
  --aqua-deep: #10a89c;
  --amber: #ffb44d;
  --amber-deep: #e0862b;
  --coral: #ff7a6b;

  /* Text */
  --ink: #f2f7ff;
  --ink-soft: #b9c8dd;
  --ink-mute: #7e8fa8;

  /* Surfaces */
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, "Times New Roman", serif;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(53, 224, 208, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(16, 168, 156, 0.06), transparent 55%),
    var(--abyss-800);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--aqua); }
.container { max-width: 1020px; margin: 0 auto; padding: 0 16px; }

/* ---------- header (glass) ---------- */
.site-header {
  background: rgba(7, 13, 26, 0.78);
  color: var(--ink);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-img { height: 34px; width: auto; }
.logo-text { font-size: 18px; font-weight: 600; letter-spacing: .3px; color: var(--ink); font-family: var(--font-display); }
.logo-accent { color: var(--aqua); }
.main-nav { display: flex; align-items: center; gap: 16px; }
.main-nav a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; opacity: .92; transition: color .2s var(--ease); }
.main-nav a:hover { color: var(--aqua); opacity: 1; text-decoration: none; }
.main-nav .nav-new-thread { background: linear-gradient(120deg, var(--amber), var(--amber-deep)); color: #1a0f02; padding: 7px 14px; border-radius: 8px; font-weight: 700; }
.main-nav .nav-new-thread:hover { filter: brightness(1.08); color: #1a0f02; }
.search-form { display: flex; align-items: center; margin-left: auto; }
.search-form input {
  background: var(--glass); border: 1px solid var(--line); color: var(--ink);
  border-radius: 10px 0 0 10px; padding: 8px 12px; font-size: 13.5px; outline: none; font-family: var(--font-sans);
}
.search-form input::placeholder { color: var(--ink-mute); }
.search-form input:focus { border-color: rgba(53, 224, 208, 0.4); }
.search-btn { border: 1px solid var(--line); border-left: none; background: var(--glass); color: var(--aqua); border-radius: 0 10px 10px 0; padding: 8px 12px; cursor: pointer; }
.auth-area { display: flex; align-items: center; gap: 10px; }
.auth-area .auth-link { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.auth-area .auth-link:hover { color: var(--aqua); }
.auth-area .auth-btn { background: linear-gradient(120deg, var(--aqua), var(--aqua-deep)); color: #03110f; text-decoration: none; font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 8px; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 12px; }
.hero h1 { font-size: 30px; color: var(--ink); font-weight: 600; font-family: var(--font-display); }
.hero p { color: var(--ink-mute); font-size: 15px; margin-top: 6px; }

/* ---------- sections ---------- */
.home-section { margin: 30px 0; }
.section-title { font-size: 21px; color: var(--ink); font-weight: 600; margin-bottom: 4px; font-family: var(--font-display); }
.section-sub { color: var(--ink-mute); font-size: 13.5px; margin-bottom: 14px; }

/* ---------- continent grid ---------- */
.continent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.continent-card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-decoration: none; color: var(--ink); transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.continent-card:hover { transform: translateY(-2px); border-color: rgba(53, 224, 208, 0.4); }
.continent-emoji { font-size: 34px; }
.continent-name { font-weight: 600; color: var(--ink); font-size: 16px; margin-top: 8px; }
.continent-meta { font-size: 12px; color: var(--ink-mute); margin-top: 3px; }

/* ---------- line / ship chips ---------- */
.line-grid, .ship-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.line-chip, .ship-chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--glass);
  border: 1px solid var(--line); border-radius: 20px; padding: 8px 14px;
  text-decoration: none; color: var(--ink-soft); font-size: 13.5px; font-weight: 600;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.line-chip:hover, .ship-chip:hover { border-color: rgba(53, 224, 208, 0.45); color: var(--aqua); background: var(--glass-2); }
.line-dot { font-size: 14px; }
.line-more { align-self: center; color: var(--ink-mute); font-size: 13px; }

/* ---------- notice / info banner ---------- */
.notice { background: rgba(255, 180, 77, 0.08); border: 1px solid rgba(255, 180, 77, 0.35); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13px; color: var(--amber); margin-bottom: 12px; line-height: 1.5; }

/* ---------- list cards (countries/regions/ports) ---------- */
.list-cards { display: flex; flex-direction: column; gap: 8px; }
.list-card {
  display: flex; align-items: center; gap: 14px; background: var(--glass);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  text-decoration: none; color: inherit; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.list-card:hover { border-color: rgba(53, 224, 208, 0.4); background: var(--glass-2); }
.list-ic { font-size: 22px; width: 34px; text-align: center; }
.list-body { flex: 1; }
.list-title { font-weight: 600; color: var(--ink); font-size: 15px; }
.list-sub { display: block; color: var(--ink-mute); font-size: 12.5px; margin-top: 1px; }
.arrow { color: var(--ink-mute); font-size: 20px; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 13px; color: var(--ink-mute); padding: 16px 0 4px; }
.crumbs a { color: var(--aqua); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--ink); font-weight: 700; }

/* ---------- port / line head ---------- */
.port-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 18px 0 6px; }
.port-title { font-size: 26px; color: var(--ink); font-weight: 600; font-family: var(--font-display); }
.port-meta { color: var(--ink-mute); font-size: 13.5px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 700; text-decoration: none; cursor: pointer; border: none; font-family: var(--font-sans); }
.btn.primary { background: linear-gradient(120deg, var(--aqua), var(--aqua-deep)); color: #03110f; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.full { width: 100%; text-align: center; margin-top: 16px; }

/* ---------- posts / thread ---------- */
.thread-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.post { display: flex; gap: 14px; background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; }
.post-avatar { width: 44px; height: 44px; border-radius: 50%; color: #03110f; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-deep)); }
.post-body { flex: 1; }
.post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.post-meta b { color: var(--ink); }
.badge { font-size: 10px; background: rgba(53, 224, 208, 0.12); color: var(--aqua); border-radius: 8px;
  padding: 2px 7px; font-weight: 700; border: 1px solid rgba(53, 224, 208, 0.3); }
.time { color: var(--ink-mute); font-size: 12px; }
.post-text { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.post img { max-width: 100%; max-height: 460px; border-radius: var(--radius-sm); margin-top: 10px; border: 1px solid var(--line); }
.post-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.post-photos .post-photo { max-width: 100%; max-height: 460px; border-radius: var(--radius-sm); margin: 0; flex: 1 1 280px; object-fit: cover; border: 1px solid var(--line); }

/* ---------- composer ---------- */
.composer-card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin: 12px 0 4px; }
.field { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font-sans); outline: none; background: var(--abyss-700); color: var(--ink); }
.field::placeholder { color: var(--ink-mute); }
.field:focus { outline: 2px solid rgba(53, 224, 208, 0.4); border-color: transparent; }
.composer-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; flex-wrap: wrap; gap: 8px; }
.file-label { font-size: 13px; color: var(--ink-mute); cursor: pointer; }

/* ---------- auth ---------- */
.auth-card { max-width: 420px; margin: 30px auto; background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; }
.auth-card h2 { color: var(--ink); font-size: 22px; margin-bottom: 4px; font-family: var(--font-display); }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--ink-mute); }
.auth-alt a { color: var(--aqua); font-weight: 700; text-decoration: none; }

/* ---------- new-thread subject search ---------- */
.nt-results { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.nt-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--abyss-700);
  text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.nt-item:last-child { border-bottom: none; }
.nt-item:hover { background: var(--glass-2); }
.nt-ic { font-size: 17px; }
.nt-title { flex: 1; font-weight: 600; color: var(--ink); font-size: 14px; }
.nt-kind { font-size: 11px; color: var(--ink-mute); background: var(--glass-2); border-radius: 8px; padding: 2px 8px; font-weight: 600; }
.nt-empty { padding: 14px; color: var(--ink-mute); font-size: 13px; text-align: center; }
.nt-selected { margin-top: 10px; }
.nt-selected > div { background: rgba(53, 224, 208, 0.08); border: 1px solid rgba(53, 224, 208, 0.3); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 14px; color: var(--aqua-soft); font-weight: 600; }

/* ---------- empty / not found ---------- */
.empty { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 20px; text-align: center; color: var(--ink-mute); }
.empty b { color: var(--ink); display: block; font-size: 17px; margin-bottom: 12px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0;
  color: var(--ink-mute); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-sub { display: block; font-size: 12px; margin-top: 4px; color: var(--ink-mute); }
.footer-links a { color: var(--aqua); text-decoration: none; font-weight: 600; }
.footer-sep { margin: 0 6px; }

/* ---------- toast ---------- */
#toast-root { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--abyss-600); color: var(--ink); border: 1px solid var(--line-strong); padding: 11px 18px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft); font-size: 14px; }
