/* 6Club Game - Official Stylesheet (Modeled after DG Club Game layout) */
:root {
  --primary-red: #c82333;
  --primary-red-hover: #a71d2a;
  --primary-red-dark: #8b0000;
  --text-dark: #212529;
  --text-muted: #555555;
  --text-light: #777777;
  --link-blue: #0056b3;
  --link-blue-hover: #003d82;
  --bg-light: #f8f9fa;
  --border-color: #dee2e6;
  --table-border: #999999;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 2px 5px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --max-width: 880px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Links */
a {
  color: var(--link-blue);
  text-decoration: underline;
  transition: color 0.2s ease;
}

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

/* Red Button Styling */
.btn-red {
  display: inline-block;
  background-color: var(--primary-red);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 18px;
  border-radius: 4px;
  text-decoration: none !important;
  border: 1px solid var(--primary-red-hover);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn-red:hover {
  background-color: var(--primary-red-hover);
  box-shadow: 0 2px 6px rgba(200, 35, 51, 0.35);
  transform: translateY(-1px);
}

.btn-red:active {
  transform: translateY(0);
}

.btn-red-large {
  font-size: 15px;
  padding: 10px 28px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  display: inline-block;
  box-shadow: 0 3px 8px rgba(200, 35, 51, 0.25);
}

/* Top Floating Bar / Announcement */
.announcement-bar {
  background: linear-gradient(90deg, #d31027, #8b0000);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 7px 12px;
  letter-spacing: 0.3px;
}

.announcement-bar a {
  color: #ffe600;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 5px;
}

/* Header */
.site-header {
  border-bottom: 1px solid #eeeeee;
  padding: 14px 0 10px 0;
  background-color: #ffffff;
}

.header-top-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.header-main-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.site-brand-title {
  font-size: 22px;
  font-weight: 700;
  color: #222222;
  text-decoration: none !important;
  letter-spacing: -0.3px;
}

.header-breadcrumbs {
  font-size: 13px;
}

.header-breadcrumbs a {
  color: var(--link-blue);
  text-decoration: none;
  margin-left: 12px;
}

.header-breadcrumbs a:hover {
  text-decoration: underline;
}

/* Main Content Area */
main.main-content {
  padding: 24px 0 40px 0;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
  letter-spacing: -0.4px;
}

/* Blog pages use the same clean article style as the rest of the site. */
.blog-intro {
  color: var(--text-muted);
  margin: -12px 0 24px;
}

.blog-list {
  display: grid;
  gap: 16px;
}

.blog-card,
.blog-empty {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 18px;
  background: #ffffff;
}

.blog-card-meta {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 6px;
}

.blog-card h2 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 8px;
}

.blog-card h2 a {
  color: #1a1a1a;
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--link-blue);
  text-decoration: underline;
}

.blog-card p {
  color: #444444;
  margin: 0 0 10px;
}

.blog-read-more {
  font-weight: 600;
}

.blog-article-summary {
  border-left: 4px solid var(--primary-red);
  background: #fff8f8;
  color: #444444;
  padding: 12px 16px;
  margin: -8px 0 22px;
  border-radius: 0 5px 5px 0;
}

.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4 {
  color: #1a1a1a;
  margin: 22px 0 10px;
  line-height: 1.4;
}

.blog-article-content h2 { font-size: 20px; }
.blog-article-content h3 { font-size: 17px; }
.blog-article-content h4 { font-size: 15px; }

.blog-article-content p,
.blog-article-content ul,
.blog-article-content ol,
.blog-article-content blockquote {
  margin: 0 0 14px;
}

.blog-article-content ul,
.blog-article-content ol {
  padding-left: 24px;
}

.blog-article-content blockquote {
  border-left: 3px solid #dddddd;
  padding-left: 14px;
  color: #555555;
}

/* Hero Section */
.hero-center {
  text-align: center;
  margin: 15px 0 25px 0;
}

.app-icon-wrapper {
  display: inline-block;
  margin-bottom: 18px;
}

.app-icon-img {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(200, 35, 51, 0.25);
  transition: transform 0.3s ease;
}

.app-icon-img:hover {
  transform: scale(1.04);
}

.hero-cta-wrapper {
  margin-bottom: 24px;
}

/* Details Table (Exact DG Club Game look) */
.details-table-wrapper {
  margin: 25px 0 30px 0;
  overflow-x: auto;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--table-border);
  font-size: 14px;
  background-color: #ffffff;
}

.details-table th,
.details-table td {
  border: 1px solid var(--table-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: middle;
}

.details-table th {
  background-color: #fbfbfb;
  font-weight: 700;
  color: #222222;
  width: 40%;
}

.details-table td {
  color: #222222;
}

.details-table .code-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invite-code-text {
  font-weight: 700;
  color: var(--primary-red);
  font-family: monospace;
  font-size: 16px;
  letter-spacing: 1px;
}

.copy-badge-btn {
  background: #f0f0f0;
  color: #333333;
  border: 1px solid #cccccc;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.copy-badge-btn:hover {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

/* Content Sections & Typography */
.article-section {
  margin-bottom: 28px;
}

.article-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 24px 0 12px 0;
  line-height: 1.4;
}

.article-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #222222;
  margin: 18px 0 8px 0;
}

.article-section p {
  margin-bottom: 14px;
  color: #333333;
}

.article-section ul,
.article-section ol {
  margin: 12px 0 16px 24px;
}

.article-section li {
  margin-bottom: 6px;
  color: #333333;
}

.article-section li strong {
  color: #111111;
}

/* Highlights Box / Banner */
.gift-code-highlight-box {
  background: #fff8f8;
  border-left: 4px solid var(--primary-red);
  padding: 14px 18px;
  margin: 18px 0;
  border-radius: 0 6px 6px 0;
}

.gift-code-highlight-box p {
  margin: 0;
  font-weight: 500;
}

/* Step Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.step-card {
  background: #fbfbfb;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 16px;
  text-align: left;
}

.step-number {
  display: inline-block;
  background-color: var(--primary-red);
  color: #ffffff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  text-align: center;
  line-height: 26px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 13px;
  color: #555555;
  margin-bottom: 0;
}

/* FAQ Section */
.faq-container {
  margin: 25px 0 35px 0;
}

.faq-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #111111;
}

.faq-item {
  margin-bottom: 18px;
}

.faq-question {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 6px;
  display: block;
}

.faq-answer {
  color: #444444;
  font-size: 14px;
}

/* Related Platform Cards (Exactly like BDG Win, ShowWin from screenshot) */
.related-cards-section {
  margin: 30px 0;
}

.related-card {
  background: #fbfbfb;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.badge-tag {
  display: inline-block;
  background-color: #e9d5ff;
  color: #6b21a8;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.related-card p {
  margin: 0;
  font-size: 14px;
  color: #444444;
}

.related-card a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid #eeeeee;
  padding: 22px 0 30px 0;
  margin-top: 40px;
  font-size: 13px;
  color: #666666;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--link-blue);
  text-decoration: none;
  margin-left: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 75px;
  right: 20px;
  width: 36px;
  height: 36px;
  background-color: var(--link-blue);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: opacity 0.3s, transform 0.2s, background-color 0.2s;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background-color: var(--link-blue-hover);
  transform: translateY(-2px);
}

/* Mobile Sticky Bottom CTA Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-around;
  padding: 8px 12px;
  z-index: 1000;
}

.mobile-bottom-bar .btn-mobile {
  flex: 1;
  margin: 0 5px;
  text-align: center;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none !important;
}

.btn-mobile-login {
  background: #ffffff;
  color: var(--primary-red) !important;
  border: 1.5px solid var(--primary-red);
}

.btn-mobile-register {
  background: var(--primary-red);
  color: #ffffff !important;
  border: 1.5px solid var(--primary-red);
}

.btn-mobile-download {
  background: #28a745;
  color: #ffffff !important;
  border: 1.5px solid #28a745;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background-color: #222222;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 2000;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .header-main-nav {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .header-breadcrumbs {
    text-align: right;
  }
  .site-brand-title {
    font-size: 19px;
  }
  .page-title {
    font-size: 22px;
  }
  .app-icon-img {
    width: 110px;
    height: 110px;
    border-radius: 22px;
  }
  .details-table th, .details-table td {
    padding: 8px 10px;
    font-size: 13px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-links a {
    margin: 0 6px;
  }
}
