/* ============================================================
   duel.reviews — Custom Stylesheet
   Base: Tailwind CSS (CDN) | Theme: dark navy + gold accent
   ============================================================ */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background-color: #0f0f23;
  color: #e2e2f0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}

/* ---------- Selection colour ---------- */
::selection { background: #f5a62366; color: #fff; }

/* ---------- Scrollbar (Webkit) ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f0f23; }
::-webkit-scrollbar-thumb { background: #2a2a4a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #f5a623; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid #f5a623;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0f0f23 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(245,166,35,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(74,74,200,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #f5a623;
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 8s infinite;
}

@keyframes particle-float {
  0%   { opacity: 0; transform: translateY(0) scale(0); }
  10%  { opacity: 0.7; transform: translateY(-20px) scale(1); }
  90%  { opacity: 0.3; transform: translateY(-200px) scale(0.5); }
  100% { opacity: 0; transform: translateY(-250px) scale(0); }
}

/* ---------- Star Rating ---------- */
.star-rating {
  display: inline-flex;
  gap: 2px;
}

.star {
  width: 1.25rem;
  height: 1.25rem;
  color: #f5a623;
}

.star.half  { color: #f5a623; opacity: 0.5; }
.star.empty { color: #2a2a4a; }

/* Stars inside gold overall-badge need black outline to stay visible */
.overall-badge .star:not(.empty) {
  filter:
    drop-shadow(-1px  0    0 #000)
    drop-shadow( 1px  0    0 #000)
    drop-shadow( 0   -1px  0 #000)
    drop-shadow( 0    1px  0 #000);
}
.overall-badge .star.empty {
  color: rgba(0, 0, 0, 0.25);
}

/* ---------- Rating Bar ---------- */
.rating-bar-track {
  height: 8px;
  background: #1a1a3e;
  border-radius: 4px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f5a623, #f7b84b);
  border-radius: 4px;
  transition: width 1s ease-out;
  width: 0;
}

/* ---------- Section Headings ---------- */
.section-heading {
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #f5a623, transparent);
  border-radius: 2px;
}

/* ---------- Feature Cards ---------- */
.feature-card {
  background: linear-gradient(135deg, #1a1a3e 0%, #141430 100%);
  border: 1px solid rgba(245, 166, 35, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: 0 8px 32px rgba(245, 166, 35, 0.1);
}

.feature-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: block;
}

/* ---------- Content Sections ---------- */
.content-section {
  border-radius: 16px;
  background: linear-gradient(135deg, #141430 0%, #0f0f23 100%);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2rem;
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.content-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f5a623;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.content-section p {
  color: #c0c0d0;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.content-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.content-section ul li {
  color: #c0c0d0;
  padding: 0.375rem 0 0.375rem 1.5rem;
  position: relative;
  line-height: 1.6;
}

.content-section ul li::before {
  content: '▸';
  color: #f5a623;
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  top: 0.5rem;
}

.content-section strong {
  color: #ffffff;
  font-weight: 600;
}

/* ---------- Pros / Cons Cards ---------- */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .pros-cons-grid { grid-template-columns: 1fr; }
}

.pros-card,
.cons-card {
  border-radius: 12px;
  padding: 1.5rem;
}

.pros-card {
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(16,185,129,0.03) 100%);
  border: 1px solid rgba(16,185,129,0.2);
}

.cons-card {
  background: linear-gradient(135deg, rgba(239,68,68,0.08) 0%, rgba(239,68,68,0.03) 100%);
  border: 1px solid rgba(239,68,68,0.2);
}

.pros-card h3 { color: #10b981; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.cons-card h3 { color: #ef4444; font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }

.pros-list li,
.cons-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: #c0c0d0;
  line-height: 1.5;
}

.pros-list li::before,
.cons-list li::before {
  content: none;
}

.pros-list li span.icon { color: #10b981; flex-shrink: 0; margin-top: 2px; }
.cons-list li span.icon { color: #ef4444; flex-shrink: 0; margin-top: 2px; }

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s;
}

.faq-question:hover { color: #f5a623; }

.faq-question[aria-expanded="true"] { color: #f5a623; }

.faq-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: #f5a623;
  transition: transform 0.3s ease;
  margin-top: 2px;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  color: #c0c0d0;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin: 0;
}

.faq-answer.open { display: block; }

/* ---------- CTA Button ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #f5a623 0%, #f7b84b 100%);
  color: #0f0f23;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.35);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: #f5a623;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid #f5a623;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: #f5a62315;
}

/* ---------- Overall Rating Badge ---------- */
.overall-badge {
  background: linear-gradient(135deg, #f5a623 0%, #d4890f 100%);
  color: #0f0f23;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(245,166,35,0.3);
}

.overall-badge .score {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
}

/* ---------- Trusted Badge ---------- */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f5a623;
}

/* ---------- Table styles ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table thead tr {
  background: rgba(245,166,35,0.1);
}

.data-table th {
  text-align: left;
  padding: 0.875rem 1rem;
  color: #f5a623;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(245,166,35,0.2);
}

.data-table td {
  padding: 0.875rem 1rem;
  color: #c0c0d0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ---------- Sticky ToC sidebar (large screens) ---------- */
@media (min-width: 1024px) {
  .layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2rem;
    align-items: start;
  }

  .sidebar-toc {
    position: sticky;
    top: 100px;
  }
}

.toc-card {
  background: #141430;
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: 12px;
  padding: 1.25rem;
}

.toc-card h4 {
  color: #f5a623;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.625rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #c0c0d0;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.toc-link:hover,
.toc-link.active {
  background: rgba(245,166,35,0.1);
  color: #f5a623;
}

.toc-link::before {
  content: '·';
  color: #f5a623;
  font-size: 1.25rem;
  line-height: 1;
}

/* ---------- Scroll animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Nav active state ---------- */
.nav-link.active { color: #f5a623; }

/* ---------- Announcement / alert bar ---------- */
.alert-bar {
  background: linear-gradient(90deg, #d4890f, #f5a623, #d4890f);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f0f23;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Crypto coins list ---------- */
.crypto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.crypto-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e2f0;
  transition: border-color 0.2s, background 0.2s;
}

.crypto-item:hover {
  border-color: rgba(245,166,35,0.3);
  background: rgba(245,166,35,0.05);
}

.crypto-symbol {
  font-size: 1.125rem;
}

/* ---------- Verdict section ---------- */
.verdict-highlight {
  background: linear-gradient(135deg, rgba(245,166,35,0.08) 0%, rgba(245,166,35,0.03) 100%);
  border-left: 4px solid #f5a623;
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* ---------- Mobile optimisations ---------- */
@media (max-width: 768px) {
  .content-section { padding: 1.25rem; }
  .content-section h2 { font-size: 1.5rem; }
  html { scroll-padding-top: 72px; }
}

/* ---------- Hero banner image ---------- */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.18;
  filter: saturate(0.6);
}

.hero-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f0f23 0%, rgba(15,15,35,0.5) 50%, #0f0f23 100%);
}

/* ---------- Screenshot figures ---------- */
.screenshot-figure {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.screenshot-figure:hover {
  box-shadow: 0 8px 40px rgba(245,166,35,0.15);
  transform: translateY(-2px);
}

.screenshot-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-figure figcaption {
  background: rgba(20,20,48,0.95);
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  color: #c0c0d0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.screenshot-figure figcaption::before {
  content: '📸';
  font-size: 0.875rem;
}

/* ---------- Screenshot grid (2-up) ---------- */
.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 640px) {
  .screenshot-grid { grid-template-columns: 1fr; }
}

/* ---------- Screenshot grid (3-up for wallets) ---------- */
.screenshot-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 768px) {
  .screenshot-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .screenshot-grid-3 { grid-template-columns: 1fr; }
}

.screenshot-grid-3 .screenshot-figure,
.screenshot-grid .screenshot-figure {
  margin: 0;
}

/* ---------- Providers strip ---------- */
.providers-figure {
  margin: 1.5rem 0 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(245,166,35,0.15);
}

.providers-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Language Dropdown ---------- */
.lang-flag {
  width: 20px !important;
  height: 15px !important;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  background-size: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}

#lang-dropdown-menu {
  animation: dropdownFadeIn 0.15s ease-out;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Print ---------- */
@media print {
  header, footer, .sidebar-toc, .btn-primary, .btn-secondary { display: none !important; }
  body { background: #fff; color: #000; }
  .content-section { border: 1px solid #ccc; break-inside: avoid; }
}
