/*
Theme Name: NoobCrypto
Theme URI: https://noobcrypto.co.uk
Author: NoobCrypto
Description: A clean, dark crypto information portal for beginners. No advice, just clear information.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: noobcrypto
*/

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg-primary:    #0D1B2A;
  --bg-card:       #1E3248;
  --bg-deep:       #132030;
  --accent:        #FF6B1A;
  --accent-hover:  #E55A0A;
  --text-primary:  #FFFFFF;
  --text-secondary:#A8BDD0;
  --text-muted:    #7A90A4;
  --border:        #1E3248;
  --font-head:     'Space Grotesk', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --radius:        8px;
  --radius-lg:     14px;
  --max-width:     1100px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

ul, ol { color: var(--text-secondary); padding-left: 1.5rem; margin-bottom: 1.2rem; }
li { margin-bottom: 0.4rem; }

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ─── Navigation ────────────────────────────────────────────── */
#site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-hex {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.logo-text span { color: var(--accent); }

#site-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
  padding: 0;
  margin: 0;
}

#site-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

#site-nav a:hover,
#site-nav .current-menu-item a { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-hover) !important; color: #fff !important; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,26,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  background: rgba(255,107,26,0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ─── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(255,107,26,0.3);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,107,26,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.card h3 { margin-bottom: 10px; }

/* ─── Grid layouts ──────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

/* ─── Section headings ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header h2 span { color: var(--accent); }
.section-header p { max-width: 600px; margin: 0 auto; }

/* ─── Ad zones ──────────────────────────────────────────────── */
.ad-zone {
  background: var(--bg-deep);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 32px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-zone-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── Disclaimer banner ─────────────────────────────────────── */
.disclaimer-banner {
  background: rgba(255,107,26,0.08);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}

.disclaimer-banner p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Glossary ──────────────────────────────────────────────── */
.glossary-item {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 12px;
}

.glossary-term {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 6px;
}

.glossary-def { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

/* ─── Resources ─────────────────────────────────────────────── */
.resource-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}

.resource-card:hover { border-color: rgba(255,107,26,0.3); }

.resource-tag {
  display: inline-block;
  background: rgba(255,107,26,0.12);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
}

.resource-card h3 { margin: 0; }
.resource-card p { margin: 0; font-size: 0.9rem; }

.affiliate-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Blog ──────────────────────────────────────────────────── */
.post-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.post-card:hover { border-color: rgba(255,107,26,0.3); transform: translateY(-2px); }

.post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.post-card h3 { margin-bottom: 10px; }
.post-card h3 a { color: var(--text-primary); }
.post-card h3 a:hover { color: var(--accent); }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 12px;
}

/* ─── Page header ───────────────────────────────────────────── */
.page-header {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
}

.page-header h1 span { color: var(--accent); }
.page-header p { font-size: 1.1rem; max-width: 620px; }

/* ─── Content area ──────────────────────────────────────────── */
.content-wrap {
  max-width: 780px;
}

.content-wrap h2 { margin: 48px 0 16px; }
.content-wrap h2:first-child { margin-top: 0; }
.content-wrap h3 { margin: 32px 0 12px; color: var(--accent); }

.highlight-box {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
}

.highlight-box p { margin: 0; }

/* ─── Steps ─────────────────────────────────────────────────── */
.step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
}

.step-body h3 { margin: 6px 0 8px; color: var(--text-primary); }

/* ─── Footer ────────────────────────────────────────────────── */
#site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p { font-size: 0.9rem; margin-top: 16px; max-width: 280px; }

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-disclaimer {
  background: rgba(255,107,26,0.06);
  border: 1px solid rgba(255,107,26,0.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 40px;
}

.footer-disclaimer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-graphic { display: none; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  #site-nav { display: none; }
  #site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }
  #site-nav.open ul { flex-direction: column; gap: 16px; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
