/*
  JayG Website Builder 42
  Beginner-friendly CSS file.
  Change colors near the top first if you want a new theme.
*/

:root {
  --bg: #050706;
  --panel: #101612;
  --panel-2: #151f18;
  --text: #f3f7ef;
  --muted: #b7c4b6;
  --gold: #f3c969;
  --green: #20f090;
  --border: rgba(243, 201, 105, 0.25);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(32, 240, 144, 0.13), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(243, 201, 105, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(16px, 4vw, 46px);
  background: rgba(5, 7, 6, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), #916f21);
  color: #101007;
  font-weight: 900;
  font-size: 1.35rem;
  box-shadow: 0 0 24px rgba(243, 201, 105, 0.25);
}

h1, h2, h3, p {
  margin-top: 0;
}

.site-header h1 {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  margin-bottom: 0;
}

.site-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-nav a,
.button {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
}

.top-nav a:hover,
.button:hover {
  border-color: var(--gold);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 60px;
}

.panel,
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 24px;
  padding: clamp(22px, 5vw, 48px);
}

.eyebrow {
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button.primary {
  background: linear-gradient(135deg, var(--gold), #9f7624);
  color: #141007;
  font-weight: 900;
}

.button.ghost {
  background: rgba(32, 240, 144, 0.08);
}

.button.small {
  cursor: pointer;
  font-size: 0.95rem;
}

.hero-card {
  background: var(--panel-2);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(32, 240, 144, 0.22);
}

.hero-card li {
  margin-bottom: 8px;
}

.section-block {
  margin-top: 34px;
}

.section-block h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 6px;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 18px;
}

.grid {
  display: grid;
  gap: 16px;
}

.file-grid {
  grid-template-columns: repeat(5, 1fr);
}

.card {
  padding: 18px;
}

.card h3 {
  color: var(--gold);
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.tab-button,
select,
.accordion-button {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
}

.tab-button.active {
  color: #101007;
  background: var(--gold);
  font-weight: 900;
}

.cheat-content {
  padding: 22px;
}

.cheat-content ul {
  margin-bottom: 0;
}

.block-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

select {
  min-width: 260px;
}

.code-card {
  overflow: hidden;
}

.code-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 0;
}

.code-card p {
  color: var(--muted);
  padding: 0 18px;
}

pre {
  margin: 18px;
  padding: 18px;
  overflow: auto;
  border-radius: 16px;
  background: #020403;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

code {
  color: #d9ffe9;
  font-size: 0.95rem;
}

.accordion-list {
  display: grid;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
}

.accordion-button {
  width: 100%;
  border: 0;
  border-radius: 0;
  text-align: left;
  font-weight: 900;
}

.accordion-body {
  display: none;
  padding: 0 16px 16px;
  color: var(--muted);
}

.accordion-item.open .accordion-body {
  display: block;
}

.contact-panel {
  padding: 24px;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 30px 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .site-header,
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 20px, 1180px);
  }

  .file-grid {
    grid-template-columns: 1fr;
  }

  .code-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  select {
    width: 100%;
    min-width: 0;
  }
}
