/* ========================================
   CASINO ONLINE PORTUGAL — ARTICLE STYLES
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ── */
:root {
  --gold:        #FFD700;
  --gold-light:  #FFE85C;
  --gold-dark:   #B8960C;
  --red:         #C0392B;
  --red-bright:  #E74C3C;
  --bg-deep:     #080808;
  --bg-dark:     #111111;
  --bg-mid:      #1a1a1a;
  --bg-card:     #1e1e1e;
  --text-main:   #F0EAD6;
  --text-muted:  #9E8F75;
  --text-light:  #FFFFFF;
  --border:      rgba(255, 215, 0, 0.2);
  --border-mid:  rgba(255, 215, 0, 0.4);
  --radius:      8px;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
}

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

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ── TOP ORNAMENT BAR ── */
.top-bar {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red-bright), var(--gold-light), var(--red));
  background-size: 300% 100%;
  animation: barShimmer 4s linear infinite;
}

@keyframes barShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ── HEADER ── */
header {
  background: linear-gradient(180deg, #0d0d0d 0%, #111 100%);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px 24px;
  text-align: center;
}

.site-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  padding: 4px 14px;
  margin-bottom: 10px;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

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

/* ── MAIN WRAPPER ── */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ── ARTICLE HERO ── */
.article-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.article-category::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--gold);
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-light);
  margin-bottom: 24px;
}

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

.article-intro {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #c8bfa8;
  border-left: 3px solid var(--red);
  padding-left: 20px;
  margin-bottom: 28px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── HERO IMAGE ── */
.hero-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 52px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(255, 215, 0, 0.07);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image figcaption {
  background: var(--bg-mid);
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ── ARTICLE BODY ── */
article {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-main);
}

/* ── HEADINGS ── */
h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 700;
  color: var(--text-light);
  margin: 56px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--red));
}

h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--gold-light);
  margin: 36px 0 14px;
}

/* ── PARAGRAPHS ── */
p {
  margin-bottom: 22px;
  color: #d4c9b0;
}

/* ── INLINE KEYWORDS ── */
.kw {
  color: var(--gold-light);
  font-weight: 500;
}

/* ── INLINE IMAGE (mid-article) ── */
.inline-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0;
  border: 1px solid var(--border);
  box-shadow: 0 6px 32px rgba(255, 215, 0, 0.06);
}

.inline-image img {
  width: 100%;
  height: auto;
  display: block;
}

.inline-image figcaption {
  background: var(--bg-mid);
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ── PULL QUOTE ── */
blockquote {
  margin: 40px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(192,57,43,0.12), rgba(255,215,0,0.07));
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.7;
}

/* ── TABLES ── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 32px 0 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-mid);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,215,0,0.08);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-card);
}

thead tr {
  background: linear-gradient(90deg, #1a0a00, #1c1200, #1a0a00);
  border-bottom: 2px solid var(--gold);
}

thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid rgba(255,215,0,0.08);
  transition: background 0.2s;
}

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

tbody tr:nth-child(even) {
  background: rgba(255,215,0,0.03);
}

tbody tr:hover {
  background: rgba(255,215,0,0.07);
}

tbody td {
  padding: 13px 18px;
  color: #d4c9b0;
  vertical-align: top;
  line-height: 1.6;
}

tbody td:first-child {
  color: var(--text-light);
  font-weight: 500;
}

/* special highlight cells */
.td-good {
  color: #4CAF50 !important;
  font-weight: 500;
}

.td-bad {
  color: var(--red-bright) !important;
}

.td-gold {
  color: var(--gold) !important;
  font-weight: 600;
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 52px 0 0;
  opacity: 0.5;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-icon {
  font-size: 1rem;
  color: var(--gold);
}

/* ── FAQ SECTION ── */
.faq-section {
  margin-top: 60px;
}

.faq-section h2 {
  margin-top: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

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

.faq-question {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-question::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  background: var(--red);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-top: 1px;
}

.faq-answer {
  color: #c8bfa8;
  font-size: 0.97rem;
  line-height: 1.8;
  padding-left: 36px;
  margin-bottom: 0;
}

/* ── CONCLUSION BOX ── */
.conclusion {
  margin: 52px 0 0;
  padding: 36px 32px;
  background: linear-gradient(135deg, rgba(192,57,43,0.1) 0%, rgba(255,215,0,0.08) 100%);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.conclusion::before {
  content: '♠';
  position: absolute;
  top: -10px;
  right: 20px;
  font-size: 8rem;
  color: rgba(255,215,0,0.04);
  pointer-events: none;
  line-height: 1;
}

.conclusion h2 {
  margin-top: 0;
  border-bottom-color: rgba(255,215,0,0.3);
}

/* ── FOOTER ── */
footer {
  margin-top: 80px;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg-dark);
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
}

.footer-suits {
  font-size: 1.3rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}

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

/* ── SCROLL TO TOP ── */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 22px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--red), var(--gold-dark));
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  main {
    padding: 0 16px 60px;
  }

  .article-hero {
    padding: 40px 0 30px;
    margin-bottom: 32px;
  }

  h2 {
    margin-top: 44px;
  }

  h3 {
    margin-top: 28px;
  }

  blockquote {
    padding: 18px 20px;
    font-size: 1.05rem;
  }

  .conclusion {
    padding: 26px 20px;
  }

  table {
    font-size: 0.83rem;
  }

  thead th,
  tbody td {
    padding: 11px 14px;
  }

  .faq-answer {
    padding-left: 0;
  }

  .article-meta {
    gap: 12px;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 1.65rem;
  }
}
