/* Blog Styles — Rabbit Golf */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #1B4D3E;
  --green-light: #2d6b52;
  --green-dark: #153d31;
  --bg: #fafafa;
  --text: #1a1a1a;
  --text-light: #555;
  --border: #e0e0e0;
  --white: #fff;
  --radius: 8px;
}

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ================================
   Site Navigation (matches main site)
   ================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.site-nav-inner { position: relative; }
.site-nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--green);
  flex-direction: column;
  padding: 0 24px 20px;
  gap: 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 999;
}
.site-nav-links.open { display: flex; }
.site-nav-links a {
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
}
.site-nav-links a:hover { opacity: 1; }

/* Hamburger toggle */
.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 24px;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }


/* Breadcrumbs */
.breadcrumbs {
  max-width: 720px;
  margin: 20px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumbs a { color: var(--green); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; }

/* Article */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  overflow-x: hidden;
}
.blog-article h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--green-dark);
}
.blog-article .meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.blog-article h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
  color: var(--green-dark);
}
.blog-article h3 {
  font-size: 1.15rem;
  margin: 28px 0 8px;
  color: var(--text);
}
.blog-article p { margin-bottom: 16px; }
.blog-article ul, .blog-article ol {
  margin: 0 0 16px 24px;
}
.blog-article li { margin-bottom: 6px; }
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.blog-article th, .blog-article td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}
.blog-article th {
  background: var(--green);
  color: var(--white);
  font-weight: 600;
}
.blog-article tr:nth-child(even) { background: #f5f5f5; }
.blog-article strong { color: var(--green-dark); }

/* Quick Facts Box */
.quick-facts {
  background: #f0f7ef;
  border-left: 4px solid var(--green);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quick-facts h3 { margin-top: 0; font-size: 1rem; }
.quick-facts ul { margin-bottom: 0; }

/* CTA Box */
.cta-box {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius);
  margin: 40px 0;
}
.cta-box h2 { color: var(--white); margin-bottom: 12px; font-size: 1.5rem; }
.cta-box p { opacity: 0.9; margin-bottom: 20px; font-size: 15px; }
.cta-box .app-store-btn {
  display: inline-block;
  background: var(--white);
  color: var(--green-dark);
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s;
}
.cta-box .app-store-btn:hover { transform: scale(1.05); }

/* Related Articles */
.related-articles {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 40px;
}
.related-articles h2 { font-size: 1.2rem; margin-bottom: 16px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.related-card:hover { border-color: var(--green); box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.related-card h3 { font-size: 0.95rem; color: var(--green-dark); margin-bottom: 6px; }
.related-card p { font-size: 13px; color: var(--text-light); margin: 0; }

/* ================================
   Blog Index / Games Page
   ================================ */
.blog-index {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.blog-index h1 { font-size: 2rem; color: var(--green-dark); margin-bottom: 8px; }
.blog-index .subtitle { color: var(--text-light); margin-bottom: 36px; font-size: 16px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.game-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.game-card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.game-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.game-card-header img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
}
.game-card-header h2 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin: 0;
}

.game-card p { font-size: 14px; color: var(--text-light); margin-bottom: 12px; line-height: 1.5; flex-grow: 1; }
.game-card .read-more { color: var(--green); font-weight: 600; font-size: 14px; }

/* Footer */
.blog-footer {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
}
.blog-footer a { color: rgba(255,255,255,0.8); text-decoration: none; margin: 0 12px; }
.blog-footer a:hover { color: var(--white); }
.blog-footer .copyright { margin-top: 16px; opacity: 0.6; }

/* Responsive */
@media (max-width: 768px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-article h1 { font-size: 1.6rem; }
  .blog-article table {
    font-size: 13px;
  }
  .blog-article th, .blog-article td {
    padding: 8px 10px;
  }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .blog-article { padding: 16px 16px 40px; }
  .cta-box { padding: 28px 20px; }
  .blog-article table {
    font-size: 12px;
  }
  .blog-article th, .blog-article td {
    padding: 6px 8px;
  }
}
