/* Rummy Ares Blog Stylesheet (2026) */
:root {
  --bg-primary: #001412;
  --bg-surface: #03211e;
  --bg-card: #052b27;
  --bg-card-hover: #083833;
  --bg-input: #021a17;
  --border-color: rgba(20, 184, 166, 0.22);
  --border-highlight: rgba(245, 158, 11, 0.4);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --gold: #f59e0b;
  --gold-hover: #fbbf24;
  --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --teal-accent: #14b8a6;
  --red-accent: #ef4444;
  --container-max: 1040px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-hover);
  text-decoration: underline;
}

/* 18+ Top Bar */
.topbar {
  background-color: #010f0d;
  color: #94a3b8;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar strong {
  color: #fbbf24;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 20, 18, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  text-decoration: none;
}

.btn-download-nav {
  background: var(--gold-gradient);
  color: #001412 !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 18px;
  border-radius: 30px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-download-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.breadcrumbs .sep {
  margin: 0 8px;
  color: var(--text-dim);
}

.breadcrumbs .cur {
  color: #cbd5e1;
}

/* Hero Section */
.blog-hero {
  padding: 40px 20px 30px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-suits {
  font-size: 1.3rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 12px;
  display: inline-block;
  opacity: 0.9;
}

.blog-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 14px;
}

.blog-hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.blog-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Search & Filter Toolbar */
.toolbar-wrap {
  max-width: var(--container-max);
  margin: 0 auto 30px;
  padding: 0 20px;
}

.search-box-wrap {
  position: relative;
  max-width: 540px;
  margin: 0 auto 20px;
}

.search-input {
  width: 100%;
  padding: 13px 20px 13px 44px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--bg-card);
  color: #ffffff;
  border-color: var(--teal-accent);
}

.filter-btn.active {
  background: var(--gold);
  color: #001412;
  border-color: var(--gold);
}

/* Blog Cards Grid */
.blog-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px 60px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--teal-accent), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-card);
  background: var(--bg-card-hover);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal-accent);
  margin-bottom: 14px;
}

.tag-rules { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.tag-strategy { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tag-safety { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.tag-download { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-app { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.blog-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.read-arrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

/* Single Article Layout */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.article-header {
  margin-bottom: 30px;
}

.article-header h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
}

.article-header .lead {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 20px;
}

.byline-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 28px;
}

.author-pic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--teal-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--gold);
}

.author-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.author-meta strong {
  color: #ffffff;
}

/* In-Article Callout / Promo Banner */
.inarticle-promo {
  background: linear-gradient(135deg, #052b27 0%, #083c36 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.inarticle-promo .promo-text h3 {
  font-size: 1.18rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.inarticle-promo .promo-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.btn-promo-dl {
  background: var(--gold-gradient);
  color: #001412 !important;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: 30px;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.btn-promo-dl:hover {
  transform: translateY(-2px);
}

/* Table of Contents */
.toc-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 28px 0;
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.toc-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.toc-list a {
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc-list a:hover {
  color: var(--gold);
  padding-left: 4px;
}

/* Article Body Typography */
.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #e2e8f0;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 28px 0 12px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}

.article-body li {
  margin-bottom: 10px;
  color: #cbd5e1;
}

.article-body strong {
  color: #ffffff;
}

/* Tables */
.tbl-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--bg-surface);
  font-size: 0.95rem;
}

thead {
  background: #062320;
}

th {
  padding: 13px 18px;
  font-weight: 700;
  color: var(--gold);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

td {
  padding: 12px 18px;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}

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

/* Callouts & Alert Boxes */
.callout-card {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-size: 0.95rem;
}

.callout-info {
  background: rgba(20, 184, 166, 0.08);
  border-left: 4px solid var(--teal-accent);
  color: #cbd5e1;
}

.callout-warning {
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid var(--gold);
  color: #fde68a;
}

.callout-danger {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid var(--red-accent);
  color: #fca5a5;
}

/* FAQ Accordion */
.faq-section {
  margin: 45px 0 30px;
}

.faq-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--border-highlight);
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-content {
  padding: 0 20px 18px;
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Related Posts */
.related-posts {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.related-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 22px;
}

/* Sticky Download Bar on Mobile */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(0, 20, 18, 0.96);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.btn-mobile-dl {
  display: block;
  background: var(--gold-gradient);
  color: #001412 !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* Footer */
.site-footer {
  background: #010c0b;
  border-top: 1px solid var(--border-color);
  padding: 40px 20px 80px;
  color: var(--text-dim);
  font-size: 0.88rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.footer-disclaimer {
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.5;
  font-size: 0.82rem;
}

.footer-copyright {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links .nav-link {
    display: none;
  }
  .blog-hero h1 {
    font-size: 1.85rem;
  }
  .article-header h1 {
    font-size: 1.75rem;
  }
  .inarticle-promo {
    flex-direction: column;
    text-align: center;
  }
  .sticky-mobile-bar {
    display: block;
  }
  .site-footer {
    padding-bottom: 90px;
  }
}

/* Related Posts Grid Enhancement */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.related-card {
  background: #082117;
  border: 1px solid #154232;
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: #f5b301;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.related-tag {
  font-size: 0.72rem;
  color: #f5b301;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.related-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 12px;
}
.related-card-read {
  font-size: 0.82rem;
  color: #10b981;
  font-weight: 600;
  margin-top: auto;
}
