/* ===================================================
   Royal X Casino - download/index.css
   Page-specific styles for the Download page
   =================================================== */

/* ---- Breadcrumb extras ---- */
.breadcrumb-sep {
  color: #999;
}
.breadcrumb-item.current {
  color: var(--text-body);
  font-weight: 500;
}

/* ---- Download Hero ---- */
.dl-hero {
  background: #ffffff;
  padding: 30px 0 50px;
  border-bottom: 1px solid var(--border);
}

.dl-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dl-actions-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  width: 100%;
}

.dl-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff8e1;
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.dl-h1 {
  font-size: clamp(1.5rem, 3.8vw, 2.1rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.dl-h1-sub {
  display: block;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  font-weight: 500;
  color: var(--gold-dark);
  margin-top: 6px;
}

.dl-intro {
  color: var(--text-body);
  font-size: 17px;
  margin-bottom: 30px;
  line-height: 1.65;
}
.dl-intro strong {
  color: var(--text-dark);
}

/* Primary download button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.4);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.btn-download svg {
  width: 22px;
  height: 22px;
  fill: var(--text-dark);
  flex-shrink: 0;
}
.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 162, 39, 0.55);
  text-decoration: none;
  color: var(--text-dark);
}

/* Download badges */
.dl-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  border: 1px solid var(--border);
  color: var(--text-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}
.dl-badge svg {
  width: 13px;
  height: 13px;
  fill: var(--gold-dark);
}

.dl-trust-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #991b1b;
  max-width: 540px;
}
.dl-trust-note svg {
  width: 16px;
  height: 16px;
  fill: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}
.dl-trust-note strong {
  color: #7f1d1d;
}

/* App spec card */
.dl-logo {
  display: none;
}

.app-spec-card {
  width: 100%;
  margin-top: 36px;
}
.spec-card-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
}
.spec-card-icon {
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--text-dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  color: var(--text-dark);
}
.spec-table tr:nth-child(even) {
  background: #f5f5f5;
}
.spec-table td {
  padding: 12px 16px;
}
.spec-table td:first-child {
  font-weight: 800;
  width: 44%;
  text-align: left;
}
.spec-table td:last-child {
  text-align: right;
  color: var(--text-body);
}

/* ---- Stats Bar ---- */
.stats-bar {
  background: #f5f5f5;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
}
.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.stat-item {
  text-align: center;
}
.stat-val {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold-dark);
  line-height: 1.1;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- About version ---- */
.about-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.about-text {
  flex: 1;
  min-width: 0;
}
.about-text p {
  margin-bottom: 16px;
  color: var(--text-body);
}

.sub-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 14px;
}

/* What's new badges */
.what-new-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.what-new-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
}
.wn-icon {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wn-icon.new {
  background: #dcfce7;
  color: #15803d;
}
.wn-icon.fix {
  background: #fef9c3;
  color: #854d0e;
}
.wn-icon.imp {
  background: #dbeafe;
  color: #1d4ed8;
}
.wn-icon.sec {
  background: #fce7f3;
  color: #9d174d;
}

/* Rating card */
.about-side {
  flex-shrink: 0;
  min-width: 220px;
}
.rating-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.rating-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.rating-score {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.rating-stars {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.star.half {
  opacity: 0.5;
}
.rating-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.rb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-body);
}
.rb-row span:first-child {
  width: 30px;
  flex-shrink: 0;
}
.rb-row span:last-child {
  width: 28px;
  flex-shrink: 0;
  text-align: right;
}
.rb-track {
  flex: 1;
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}
.rb-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
}

/* ---- System Requirements ---- */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.req-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
}
.req-icon {
  width: 40px;
  height: 40px;
  background: #fff8e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.req-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gold-dark);
}
.req-card h3 {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.req-min {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.req-rec {
  font-size: 13px;
  color: var(--gold-dark);
}
.req-min strong,
.req-rec strong {
  font-weight: 700;
  color: var(--text-dark);
}

.compat-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff9e6;
  border: 1px solid #e8c84a;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13.5px;
  color: #7a5c0a;
}
.compat-note svg {
  fill: var(--gold-dark);
  flex-shrink: 0;
  margin-top: 2px;
}
.compat-note strong {
  color: #5a4008;
}

/* ---- Install Guide ---- */
.method-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border);
}
.method-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.method-tab svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.method-tab.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}
.method-tab:hover {
  color: var(--gold-dark);
}
.method-content {
  display: none;
}
.method-content.active {
  display: block;
}

/* Install steps */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.install-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.install-step:last-child {
  border-bottom: none;
}

.is-num {
  width: 42px;
  height: 42px;
  background: var(--gold);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  flex-shrink: 0;
}
.is-body {
  flex: 1;
  min-width: 0;
}
.is-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.is-body p {
  font-size: 14.5px;
  color: var(--text-body);
  margin-bottom: 10px;
  line-height: 1.65;
}

.is-tip {
  background: #fff9e6;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #7a5c0a;
  margin-top: 10px;
}
.is-tip strong {
  color: #5a4008;
}

.is-next {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
  margin-top: 10px;
  font-weight: 600;
}

/* Android version subtabs */
.android-ver-box {
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 12px;
}
.av-tab-row {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.av-tab {
  padding: 8px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition:
    color 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}
.av-tab.active {
  color: var(--gold-dark);
  border-bottom-color: var(--gold);
}
.av-content {
  display: none;
}
.av-content.active {
  display: block;
}
.av-steps {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.av-steps li {
  font-size: 13.5px;
  color: var(--text-body);
}
.av-steps li strong {
  color: var(--text-dark);
}

/* ---- After Download ---- */
.after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.after-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}
.after-card:hover {
  border-color: var(--gold);
}
.after-card.highlight {
  border-color: var(--gold);
}
.after-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-dark);
  opacity: 0.7;
  margin-bottom: 8px;
  line-height: 1;
}
.after-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.after-card p {
  font-size: 13.5px;
  color: var(--text-body);
  margin-bottom: 14px;
  line-height: 1.6;
}
.after-link {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
}
.after-link:hover {
  color: var(--gold);
}

/* ---- Update Guide ---- */
.update-grid {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.update-steps {
  flex: 1;
  min-width: 280px;
}
.update-ol {
  padding-left: 22px;
  counter-reset: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.update-ol li {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.6;
}
.update-ol li strong {
  color: var(--text-dark);
}

.update-faq {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.uf-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-light);
}
.uf-item:first-child {
  padding-top: 0;
}
.uf-item:last-child {
  border-bottom: none;
}
.uf-item h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.uf-item p {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.6;
}

/* ---- Troubleshooting ---- */
.trouble-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}
.trouble-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.trouble-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: #f5f5f5;
  border-bottom: 1px solid var(--border);
}
.trouble-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--gold-dark);
  margin-top: 1px;
}
.trouble-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.trouble-body {
  padding: 14px 20px 18px 48px;
}
.trouble-body p {
  font-size: 14px;
  color: var(--text-body);
  margin-bottom: 8px;
  line-height: 1.65;
}
.trouble-body p:last-child {
  margin-bottom: 0;
}
.trouble-body strong {
  color: var(--text-dark);
}

.trouble-support {
  text-align: center;
  padding: 28px;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trouble-support p {
  color: var(--text-body);
  font-size: 15px;
  margin-bottom: 16px;
}

/* ---- Final CTA ---- */
.final-cta-box {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}
.fcta-logo {
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.fcta-text {
  flex: 1;
  min-width: 220px;
}
.fcta-text h2 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.fcta-text p {
  font-size: 15px;
  color: var(--text-body);
}
.fcta-text strong {
  color: var(--text-dark);
}
.fcta-btn {
  flex-shrink: 0;
  font-size: 15px;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 768px) {
  .method-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .av-tab-row {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .btn-download {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    justify-content: center;
    gap: 20px 32px;
  }

  .about-grid {
    flex-direction: column;
  }
  .about-side {
    width: 100%;
  }
  .rating-card {
    max-width: 320px;
    margin: 0 auto;
  }

  .update-grid {
    flex-direction: column;
  }

  .method-tab {
    padding: 10px 14px;
    font-size: 13px;
  }

  .final-cta-box {
    flex-direction: column;
    text-align: center;
  }
  .fcta-btn {
    width: 100%;
    justify-content: center;
  }

  .trouble-body {
    padding-left: 20px;
  }

  .av-tab {
    font-size: 11.5px;
    padding: 7px 10px;
  }
}

@media (max-width: 480px) {
  .req-grid {
    grid-template-columns: 1fr;
  }
  .after-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    gap: 16px 24px;
  }
  .stat-val {
    font-size: 1.1rem;
  }
  .dl-h1 {
    font-size: 1.45rem;
  }
  .dl-badges {
    gap: 8px;
  }
  .dl-badge {
    font-size: 11.5px;
    padding: 4px 10px;
  }
}
