/* Project ATLAS - Site #28: BTW Calculator (Dutch Finance) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0b1329;
  --bg-surface: #131f42;
  --bg-card: #1c2b59;
  --border-subtle: #2d417a;
  --border-focus: #f97316;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-orange: #f97316;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-blue: #3b82f6;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(19, 31, 66, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.25rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.25rem;
}
.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}
nav { display: flex; gap: 1.5rem; }
nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--text-primary); }

main { flex: 1; padding: 2.5rem 0; }
.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* Calculator Layout */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 860px) {
  .calc-layout { grid-template-columns: 1fr; }
}
.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

/* Direction Toggle */
.direction-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border-radius: 0.6rem;
  padding: 0.25rem;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}
.dir-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.65rem;
  border-radius: 0.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.dir-btn.active {
  background: var(--accent-orange);
  color: #fff;
}

/* Rates Buttons */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.rate-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.rate-btn.active {
  border-color: var(--accent-orange);
  background: rgba(249, 115, 22, 0.15);
  color: #fff;
}
.rate-btn span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.2rem;
}

.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-currency {
  position: absolute;
  right: 1rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-weight: 600;
  pointer-events: none;
}
input[type="number"] {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* Result Box */
.btw-hero {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 0.85rem;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.btw-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-orange);
  font-weight: 700;
}
.btw-value {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
  line-height: 1.1;
  margin: 0.35rem 0;
}
.btw-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Breakdown Table */
.factuur-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.factuur-table tr { border-bottom: 1px solid var(--border-subtle); }
.factuur-table td { padding: 0.75rem 0; }
.factuur-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Copy Button */
.copy-btn {
  background: var(--accent-orange);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.2s;
}
.copy-btn:hover { opacity: 0.9; }

/* Ads Slot */
.ad-slot {
  background: rgba(19, 31, 66, 0.5);
  border: 1px dashed var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin: 2.5rem 0;
}

/* Article Area */
.article-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 2.5rem;
  margin-bottom: 3rem;
}
.article-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
  color: var(--accent-orange);
}
.article-content p, .article-content ul, .article-content ol {
  color: #cbd5e1;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}
.article-content ul, .article-content ol { padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.formula-card {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  margin: 1.25rem 0;
  color: var(--accent-orange);
  text-align: center;
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
}
.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 1;
}
.blog-readmore {
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Footer */
footer {
  background: rgba(11, 19, 41, 0.95);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
