/* Tournament Pickle Blog Styles */
:root {
  --tp-green: #28a745;
  --tp-dark: #1a1a2e;
  --tp-darker: #0f0f23;
  --tp-text: #e0e0e0;
  --tp-text-muted: #8899aa;
  --tp-text-bright: #ffffff;
  --tp-accent: #f0c040;
  --tp-link: #4fc3f7;
  --tp-link-hover: #81d4fa;
  --tp-card-bg: #222240;
  --tp-border: #333355;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--tp-darker);
  color: var(--tp-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Navbar - uses Bootstrap 4 navbar, override colors to match Vue app */
nav#thenavbar.navbar {
  background-color: rgb(1, 80, 62) !important;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  padding: 8px 16px 8px 10px;
  z-index: 1030;
}

nav#thenavbar #branding {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav#thenavbar #branding #icon {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px;
  max-height: 26px;
}

nav#thenavbar #title {
  color: rgb(255, 255, 0);
  font-size: 24px;
  font-weight: 400;
}

#title {
  font-family: Impact, Avenir, Helvetica, Arial, sans-serif;
}

nav#thenavbar .nav-link {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 16px;
}

nav#thenavbar .nav-link:hover,
nav#thenavbar .nav-link.active {
  color: #ffffff !important;
}

/* Prevent content from hiding behind fixed navbar */
body {
  padding-top: 62px;
}

/* Blog layout */
.blog-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* Blog index */
.blog-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--tp-border);
}

.blog-header h1 {
  font-size: 36px;
  color: var(--tp-text-bright);
  margin-bottom: 10px;
}

.blog-header p {
  color: var(--tp-text-muted);
  font-size: 18px;
}

/* Post cards on index page */
.post-card {
  background: var(--tp-card-bg);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--tp-border);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.post-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card-image {
  width: 100%;
  display: block;
}

.post-card-body {
  padding: 24px;
}

.post-card-body h2 {
  font-size: 22px;
  color: var(--tp-text-bright);
  margin-bottom: 10px;
  line-height: 1.3;
}

.post-card-body p {
  color: var(--tp-text-muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.post-card-meta {
  font-size: 13px;
  color: var(--tp-text-muted);
}

/* Article page */
.article-header {
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: 34px;
  color: var(--tp-text-bright);
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 800;
}

.article-meta {
  color: var(--tp-text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.article-hero {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 30px;
}

/* Article content */
.article-content h2 {
  font-size: 26px;
  color: var(--tp-text-bright);
  margin-top: 45px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tp-green);
  display: inline-block;
}

.article-content h3 {
  font-size: 20px;
  color: var(--tp-text-bright);
  margin-top: 30px;
  margin-bottom: 12px;
}

.article-content p {
  margin-bottom: 18px;
  font-size: 17px;
}

.article-content a {
  color: var(--tp-link);
  text-decoration: none;
}

.article-content a:hover {
  color: var(--tp-link-hover);
  text-decoration: underline;
}

.article-content strong {
  color: var(--tp-text-bright);
}

.article-content img {
  width: 100%;
  border-radius: 10px;
  margin: 25px 0;
}

.article-content .caption {
  text-align: center;
  font-size: 13px;
  color: var(--tp-text-muted);
  margin-top: -18px;
  margin-bottom: 25px;
}

/* Data tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--tp-card-bg);
  border-radius: 8px;
  overflow: hidden;
}

.article-content th {
  background: var(--tp-dark);
  color: var(--tp-text-bright);
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid var(--tp-green);
}

.article-content td {
  padding: 10px 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--tp-border);
}

.article-content tr:last-child td {
  border-bottom: none;
}

.article-content tr:hover td {
  background: rgba(255,255,255,0.03);
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, #1a3a2a, #1a2a3a);
  border-left: 4px solid var(--tp-green);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 25px 0;
}

.highlight-box p {
  margin-bottom: 0;
  font-size: 16px;
}

/* Methodology section */
.methodology {
  background: var(--tp-card-bg);
  border-radius: 8px;
  padding: 24px;
  margin-top: 40px;
  font-size: 14px;
  color: var(--tp-text-muted);
}

.methodology h3 {
  color: var(--tp-text);
  margin-bottom: 10px;
}

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, #1a3a2a, #223344);
  border: 1px solid var(--tp-green);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  margin: 40px 0;
}

.cta-box h3 {
  color: var(--tp-text-bright);
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--tp-text-muted);
  margin-bottom: 16px;
}

.cta-button {
  display: inline-block;
  background: var(--tp-green);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s;
}

.cta-button:hover {
  background: #22943d;
  color: white;
  text-decoration: none;
}

/* Footer */
.blog-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--tp-border);
  margin-top: 60px;
  color: var(--tp-text-muted);
  font-size: 14px;
}

.blog-footer a {
  color: var(--tp-link);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 600px) {
  .blog-container { padding: 20px 16px 40px; }
  .article-header h1 { font-size: 26px; }
  .article-content h2 { font-size: 22px; }
  .article-content p { font-size: 16px; }
  .blog-header h1 { font-size: 28px; }
  nav#thenavbar #title { font-size: 18px;}
}
