/* Core Variables */
:root {
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --bg-header: #1a1a1a;
  --accent-blue: #64b5f6;
  --accent-gold: #ffd54f;
  --text-light: #e0e0e0;
  --text-muted: #a0a0a0;
  --border-color: #2c2c2c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sidebar Navigation */
.sidebar {
  position: fixed;
  top: 0;
  left: -270px;
  width: 260px;
  height: 100%;
  background-color: var(--bg-card);
  box-shadow: 2px 0 12px rgba(0,0,0,0.7);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  padding: 20px;
}

.sidebar.active {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.sidebar-menu {
  list-style: none;
  margin-top: 20px;
}

.sidebar-menu li {
  margin-bottom: 12px;
}

.sidebar-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  color: #fff;
  background-color: #2a2a2a;
}

/* Header & Logo Overlay */
.site-header {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  min-height: 100px;
}

.toggle-btn {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
}

.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 10px 20px;
}

.site-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 95px;
  opacity: 0.35; /* Dims image so text is readable */
  z-index: 1;
  pointer-events: none;
}

.site-title {
  position: relative;
  z-index: 2;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  letter-spacing: 2px;
}

/* AdSense Containers */
.ad-banner-container {
  max-width: 1050px;
  margin: 20px auto;
  padding: 0 20px;
  text-align: center;
}

.ad-placeholder {
  background-color: #181818;
  border: 1px dashed #333;
  padding: 15px;
  border-radius: 6px;
  color: #555;
  font-size: 0.85rem;
  min-height: 90px; /* Pre-allocates height to prevent layout shifts when AdSense loads */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section Containers */
.section-container {
  padding: 40px 0;
}

.hero-blurb {
  text-align: center;
  background-color: #161616;
  border-bottom: 1px solid var(--border-color);
}

.hero-blurb h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.hero-blurb p {
  max-width: 700px;
  margin: 0 auto 25px auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-primary { background-color: var(--accent-blue); color: #000; }
.btn-secondary { background-color: #333; color: #fff; margin-left: 10px; }

/* Feature Cards Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background-color: var(--bg-card);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.feature-card h3 { margin-bottom: 10px; color: var(--accent-blue); }
.feature-card p { color: var(--text-muted); margin-bottom: 15px; font-size: 0.95rem; }
.card-link { color: var(--accent-gold); text-decoration: none; font-weight: 600; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 0;
  background-color: #0a0a0a;
  color: #555;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.footer-links { margin-top: 10px; }
.footer-links a { color: #777; text-decoration: none; margin: 0 5px; }