@import url('https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&family=Spectral:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600;1,700&display=swap');

/* CSS Variables */
:root {
  --color-bg: #121021;
  --color-panel: #17152a;
  --color-panel-header: #1f1b3a;
  --color-red: #9b1c31;
  --color-red-glow: rgba(155, 28, 49, 0.4);
  --color-green: #1a5e3c;
  --color-green-glow: rgba(26, 94, 60, 0.4);
  --color-gold: #c19a3d;
  --color-gold-glow: rgba(193, 154, 61, 0.3);
  --color-text: #e2e1e9;
  --color-text-muted: #a3a1b3;
  --font-headings: 'Cardo', Georgia, serif;
  --font-body: 'Spectral', Palatino, serif;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(26, 94, 60, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(155, 28, 49, 0.08) 0%, transparent 40%),
    linear-gradient(to bottom, var(--color-bg), #0b0a14);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  color: var(--color-gold);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 2.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 15px var(--color-gold-glow);
  text-align: center;
  border-bottom: 2px double var(--color-gold);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid rgba(193, 154, 61, 0.3);
  padding-bottom: 0.3rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px dashed var(--color-gold);
}

a:hover {
  color: #fff;
  border-bottom-style: solid;
  text-shadow: 0 0 8px var(--color-gold-glow);
}

/* Header & Navigation */
header {
  border-bottom: 3px double var(--color-gold);
  background-color: rgba(18, 16, 33, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  border: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  color: var(--color-gold);
  font-weight: 700;
  text-shadow: 0 0 10px var(--color-gold-glow);
  border: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--color-gold);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  border: none;
  font-family: var(--font-headings);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

nav a:hover {
  color: var(--color-gold);
  text-shadow: 0 0 8px var(--color-gold-glow);
}

/* Main Layout & Gothic Framed Panels */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 2rem;
}

.gothic-frame {
  background-color: var(--color-panel);
  border: 4px solid var(--color-gold);
  outline: 1px solid var(--color-gold);
  outline-offset: 4px;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 
    0 10px 30px rgba(0,0,0,0.5), 
    inset 0 0 40px rgba(18, 16, 33, 0.8),
    0 0 20px rgba(193, 154, 61, 0.1);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

/* Stained Glass Header (Hero) */
.stained-glass-hero {
  background: linear-gradient(135deg, 
    rgba(18, 16, 33, 0.95), 
    rgba(27, 23, 58, 0.95)
  ), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50 Z' fill='none' stroke='%23c19a3d' stroke-width='0.5' stroke-opacity='0.15'/%3E%3C/svg%3E");
  border-radius: 20px 20px 12px 12px;
  border: 4px solid var(--color-gold);
  outline: 1px solid var(--color-gold);
  outline-offset: 4px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.stained-glass-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(26, 94, 60, 0.15), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(155, 28, 49, 0.15), transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.stained-glass-hero * {
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 1.5rem auto;
  font-style: italic;
}

/* Affiliate Disclosure Box (Above Fold) */
.affiliate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(193, 154, 61, 0.1);
  border: 1px solid var(--color-gold);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--color-gold);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.affiliate-badge a {
  border: none;
  font-weight: bold;
}

.disclosure-notice {
  background-color: rgba(18, 16, 33, 0.6);
  border-left: 3px solid var(--color-gold);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* BLUF Box (Bottom Line Up Front) / Callouts */
.bluf-box {
  background-color: rgba(26, 94, 60, 0.1);
  border: 2px solid var(--color-green);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 0 15px var(--color-green-glow);
}

.bluf-box.warning {
  background-color: rgba(155, 28, 49, 0.1);
  border-color: var(--color-red);
  box-shadow: 0 0 15px var(--color-red-glow);
}

.bluf-title {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1.05rem;
  background-color: rgba(18, 16, 33, 0.4);
}

th, td {
  padding: 1rem;
  text-align: left;
  border: 1px solid rgba(193, 154, 61, 0.3);
}

th {
  background-color: var(--color-panel-header);
  color: var(--color-gold);
  font-family: var(--font-headings);
  font-weight: 700;
  border-bottom: 2px solid var(--color-gold);
}

tr:nth-child(even) td {
  background-color: rgba(18, 16, 33, 0.2);
}

tr:hover td {
  background-color: rgba(193, 154, 61, 0.05);
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--color-red);
  color: #fff;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border: 2px solid var(--color-gold);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn:hover {
  background-color: var(--color-gold);
  color: var(--color-bg);
  border-color: #fff;
  box-shadow: 0 0 15px var(--color-gold-glow);
  text-shadow: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-secondary:hover {
  background-color: rgba(193, 154, 61, 0.1);
  color: #fff;
}

/* Sidebar & Multi-column layouts */
.layout-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .layout-columns {
    grid-template-columns: 1fr;
  }
}

.sidebar-panel {
  background-color: rgba(18, 16, 33, 0.5);
  border: 2px solid rgba(193, 154, 61, 0.4);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* FAQ Accordion or List */
.faq-list {
  margin: 2rem 0;
}

.faq-item {
  border: 1px solid rgba(193, 154, 61, 0.3);
  border-radius: 6px;
  margin-bottom: 1rem;
  background-color: rgba(23, 21, 42, 0.8);
}

.faq-question {
  padding: 1rem 1.5rem;
  font-family: var(--font-headings);
  font-size: 1.2rem;
  color: var(--color-gold);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem 1.2rem 1.5rem;
  color: var(--color-text);
  border-top: 1px solid rgba(193, 154, 61, 0.15);
  padding-top: 1rem;
}

/* Author Box / Signature */
.author-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: rgba(31, 27, 58, 0.4);
  border-top: 1px solid rgba(193, 154, 61, 0.3);
  border-bottom: 1px solid rgba(193, 154, 61, 0.3);
  font-size: 0.95rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background-color: var(--color-panel-header);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: bold;
  color: var(--color-gold);
}

/* Form Styles (No seed-phrase or sensitive info collected) */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-headings);
  color: var(--color-gold);
  font-weight: 700;
}

.form-group input, .form-group textarea {
  background-color: rgba(18, 16, 33, 0.8);
  border: 1px solid rgba(193, 154, 61, 0.4);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 8px var(--color-gold-glow);
}

/* Footer Style */
footer {
  border-top: 3px double var(--color-gold);
  background-color: #0b0a14;
  padding: 3rem 2rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  border: none;
  color: var(--color-text-muted);
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-disclaimers {
  border-top: 1px solid rgba(193, 154, 61, 0.2);
  padding-top: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Quick utility styles */
.highlight-gold {
  color: var(--color-gold);
}
.highlight-red {
  color: #ff6b81;
}
.highlight-green {
  color: #2ed573;
}
.italic-small {
  font-style: italic;
  font-size: 0.9rem;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card-item {
  background-color: rgba(23, 21, 42, 0.6);
  border: 1px solid rgba(193, 154, 61, 0.25);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.card-item:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(193, 154, 61, 0.1);
}

/* Search engine indexing visual styling */
.indexnow-admin-card {
  border: 2px solid var(--color-gold);
  border-radius: 8px;
  background-color: rgba(23, 21, 42, 0.9);
  padding: 2rem;
  margin-top: 2rem;
}

.code-terminal {
  background-color: #0b0a14;
  border: 1px solid rgba(193, 154, 61, 0.3);
  border-radius: 4px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.9rem;
  color: #7bed9f;
  overflow-x: auto;
  margin: 1rem 0;
  position: relative;
}

.code-copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: var(--color-panel-header);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}
.code-copy-btn:hover {
  background-color: var(--color-gold);
  color: var(--color-bg);
}
