:root {
  --primary: #0a192f; /* Deep Navy Blue */
  --primary-light: #112240;
  --secondary: #d4af37; /* Gold/Bronze */
  --secondary-light: #f5e1a4;
  --background: #f8f9fa;
  --surface: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--primary);
  line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 1.25rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
}

.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-md { gap: 1.5rem; }
.gap-sm { gap: 0.75rem; }

.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-link {
  color: var(--text-main);
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background-color: var(--primary);
  color: var(--surface);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  color: var(--surface);
  font-size: 3rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--border-color);
}

.btn {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--primary-light);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: var(--transition);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--surface);
}

/* Content Area */
.mt-lg { margin-top: 3rem; }
.mb-lg { margin-bottom: 3rem; }
.mt-xl { margin-top: 5rem; }
.mb-xl { margin-bottom: 5rem; }
.text-center { text-align: center; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--secondary);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Search Bar */
.search-container {
  max-width: 600px;
  margin: 2rem auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--border-color);
  font-size: 1.1rem;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.search-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  display: block;
  color: var(--text-main);
  text-decoration: none;
}

.search-result-item:hover {
  background-color: var(--background);
}

/* Prose/Article formatting */
.prose {
  background-color: var(--surface);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.prose ul, .prose ol {
  margin: 1.5rem 0 1.5rem 2rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.prose th, .prose td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.prose th {
  background-color: var(--primary);
  color: var(--surface);
  font-family: var(--font-serif);
}

.prose tr:nth-child(even) {
  background-color: var(--background);
}

.prose blockquote {
  border-left: 4px solid var(--secondary);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
  margin: 2rem 0;
  background-color: var(--background);
  padding: 1rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Footer */
.site-footer {
  background-color: var(--primary);
  color: var(--surface);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.site-footer h3 {
  color: var(--secondary);
}

.site-footer a {
  color: var(--border-color);
}

.site-footer a:hover {
  color: var(--secondary);
}

/* Utility */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.badge {
  background-color: var(--secondary-light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Cookie Banner & AdSense */
.ad-placeholder { width: 100%; min-height: 90px; background: #e5e7eb; display: flex; align-items: center; justify-content: center; color: #6b7280; font-size: 0.875rem; margin: 2rem 0; border: 1px dashed #9ca3af; }
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary); color: white; padding: 1rem; display: flex; justify-content: space-between; align-items: center; z-index: 1000; box-shadow: 0 -4px 10px rgba(0,0,0,0.1); }
