/* Blox Fruits Codes — ocean/pirate adventure aesthetic, wide parchment layout */
:root {
  --navy: #0a2740;
  --navy-deep: #061a2c;
  --teal: #0f6674;
  --teal-light: #17879a;
  --gold: #f2b134;
  --gold-deep: #d99420;
  --parchment: #fbf3e0;
  --parchment-line: #e6d8b8;
  --ink: #21313f;
  --ink-dim: #5a6c7a;
  --font-display: "Merriweather", serif;
  --font-body: "Nunito", sans-serif;
  --shadow-card: 0 2px 4px rgba(10, 39, 64, 0.04), 0 14px 30px -18px rgba(10, 39, 64, 0.28);
  --shadow-card-hover: 0 6px 10px rgba(10, 39, 64, 0.06), 0 24px 44px -18px rgba(10, 39, 64, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 102, 116, 0.08), transparent 45%),
    var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); position: relative; padding-bottom: 0.6rem; }
h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); border-radius: 2px; }
p { color: var(--ink-dim); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* Header */
.topbar { background: var(--navy-deep); color: #cfe3ec; font-size: 0.78rem; }
.topbar-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; padding: 0.45rem 1.5rem; letter-spacing: 0.02em; }
.site-header { background: linear-gradient(180deg, var(--navy), #0c2f4d); border-bottom: 4px solid var(--gold); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.6); position: sticky; top: 0; z-index: 50; }
.header-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: #fff; }
.logo-mark { font-size: 1.6rem; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.logo-text em { display: block; font-style: normal; font-size: 0.7rem; color: var(--gold); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; }
.nav-toggle { display: none; background: var(--teal); color: #fff; border: none; padding: 0.5rem 0.9rem; border-radius: 6px; cursor: pointer; }
.primary-nav { display: flex; gap: 0.3rem; }
.primary-nav a { color: #dce9ee; text-decoration: none; font-weight: 700; font-size: 0.9rem; padding: 0.5rem 0.85rem; border-radius: 8px; transition: background 0.2s, color 0.2s; }
.primary-nav a:hover { color: #fff; background: rgba(242, 177, 52, 0.16); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--navy) 0%, #0c2f4d 55%, var(--parchment) 100%); padding: 3.5rem 1.5rem 0; position: relative; }
.hero-inner { max-width: 1240px; margin: 0 auto; color: #fff; }
.hero .eyebrow { display: inline-block; color: var(--gold); text-transform: uppercase; font-weight: 700; letter-spacing: 0.08em; font-size: 0.82rem; padding: 0.3rem 0.8rem; border: 1px solid rgba(242, 177, 52, 0.4); border-radius: 999px; margin-bottom: 0.6rem; }
.hero h1 { color: #fff; }
.hero-intro { color: #cfe3ec; max-width: 680px; font-size: 1.08rem; }
.last-updated { background: var(--parchment); margin: 0; padding: 1rem 0 0.4rem; color: var(--ink-dim); font-size: 0.85rem; }
.last-updated span { color: var(--teal); font-weight: 700; }

/* Sections */
main > section { max-width: 1240px; margin: 0 auto; padding: 3.2rem 1.5rem; }

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
.info-panel { background: #fff; border: 1px solid var(--parchment-line); border-top: 4px solid var(--teal); border-radius: 14px; padding: 1.5rem; box-shadow: var(--shadow-card); }
.info-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.info-panel li strong { color: var(--navy); }

/* Table */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--parchment-line); box-shadow: var(--shadow-card); }
.codes-table { width: 100%; border-collapse: collapse; background: #fff; }
.codes-table th, .codes-table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--parchment-line); }
.codes-table th { background: var(--navy); color: #fff; font-family: var(--font-display); font-size: 0.9rem; }
.codes-table tbody tr { transition: background 0.15s; }
.codes-table tbody tr:nth-child(even) { background: #fdf8ec; }
.codes-table tbody tr:hover { background: #f5ead0; }
.codes-table tbody tr:last-child td { border-bottom: none; }
.code-cell { font-weight: 700; color: var(--navy); }
.pill { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.pill-active { background: rgba(15, 102, 116, 0.14); color: var(--teal); }
.pill-expired { background: rgba(180, 60, 60, 0.14); color: #a53c3c; }
.pill-new { background: rgba(242, 177, 52, 0.2); color: #a06a0f; }
.empty-row { text-align: center; color: var(--ink-dim); font-style: italic; padding: 1.6rem 1.1rem; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; margin-top: 1.8rem; }
.step-card { background: #fff; border: 1px solid var(--parchment-line); border-radius: 14px; padding: 1.3rem; box-shadow: var(--shadow-card); transition: transform 0.2s, box-shadow 0.2s; }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.step-number { display: inline-block; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--navy-deep); font-weight: 700; font-size: 0.78rem; padding: 0.25rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem; }

/* Status grid */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.3rem; margin-top: 1.3rem; }
.status-box { background: #fff; border: 1px solid var(--parchment-line); border-radius: 14px; padding: 1.3rem; box-shadow: var(--shadow-card); }
.status-box p { margin-top: 0.6rem; margin-bottom: 0; }

/* Troubleshooting */
.troubleshoot-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.7rem; }
.troubleshoot-list li { background: #fff; border-left: 4px solid var(--teal); border-radius: 8px; padding: 0.9rem 1.1rem; box-shadow: var(--shadow-card); }
.troubleshoot-list strong { color: var(--navy); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 1.3rem; }
.faq-box { background: #fff; border-radius: 14px; padding: 1.3rem; border: 1px solid var(--parchment-line); box-shadow: var(--shadow-card); transition: transform 0.2s, box-shadow 0.2s; }
.faq-box:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.faq-box h3 { font-size: 1.02rem; }

/* History */
.history-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.7rem; }
.history-list li { background: #fff; border: 1px solid var(--parchment-line); border-radius: 10px; padding: 0.8rem 1.1rem; box-shadow: var(--shadow-card); }
.history-date { font-weight: 700; color: var(--teal); margin-right: 0.5rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #cfe3ec; padding: 3rem 1.5rem 3rem; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 1.2rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.1rem; margin: 0; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: #cfe3ec; text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.78rem; color: #8fa9b6; }

/* Legal pages */
.legal-content { max-width: 820px; margin: 0 auto; padding: 3.5rem 1.5rem 4.5rem; }
.legal-content section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--parchment-line); }
.legal-content section:last-child { border-bottom: none; }

/* Contact form */
.contact-form { display: grid; gap: 1.1rem; max-width: 520px; }
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; color: var(--navy); font-weight: 700; }
.contact-form input, .contact-form textarea { background: #fff; border: 1px solid var(--parchment-line); border-radius: 10px; padding: 0.75rem 0.95rem; font-family: var(--font-body); transition: border-color 0.2s, box-shadow 0.2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 102, 116, 0.18); }
.contact-form button { justify-self: start; background: linear-gradient(135deg, var(--teal-light), var(--teal)); color: #fff; border: none; font-weight: 700; padding: 0.8rem 1.8rem; border-radius: 999px; cursor: pointer; box-shadow: 0 14px 26px -14px rgba(15, 102, 116, 0.6); transition: transform 0.2s, box-shadow 0.2s; }
.contact-form button:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(15, 102, 116, 0.7); }

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 1rem 1.5rem; display: none; }
  .primary-nav.open { display: flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
}
