/*
Theme Name: AidWorks
Theme URI: https://aid.works/
Author: Aid.Works
Author URI: https://aid.works/
Description: Casino review theme for Aid.Works. Clean, editorial casino comparison layout.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: aidworks
*/

:root {
  --aw-bg: #ffffff;
  --aw-bg-soft: #f6f8f7;
  --aw-ink: #1a1d21;
  --aw-ink-soft: #5a6472;
  --aw-line: #e6e9ec;
  --aw-green: #0f7a52;
  --aw-green-dark: #0b5c3e;
  --aw-gold: #f0a83a;
  --aw-red: #c0392b;
  --aw-radius: 10px;
  --aw-shadow: 0 1px 3px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.06);
  --aw-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--aw-font); color: var(--aw-ink); background: var(--aw-bg);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
}
a { color: var(--aw-green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--aw-ink); }
h1 { font-size: 1.8rem; margin: 0 0 .6rem; }
h2 { font-size: 1.3rem; margin: 1.7rem 0 .6rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .55rem .75rem; border: 1px solid var(--aw-line); text-align: left; font-size: .95rem; }
th { background: var(--aw-bg-soft); font-weight: 600; width: 40%; }
ul { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin-bottom: .3rem; }
.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 6px; top: 6px; background: var(--aw-green); color: #fff; padding: .5rem .8rem; z-index: 999; position: fixed; }

/* layout */
#page { display: flex; flex-direction: column; min-height: 100vh; }
.header-inner, .content-inner, .footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.site-content .content-inner { display: flex; gap: 2rem; padding-top: 1.5rem; padding-bottom: 2rem; align-items: flex-start; }
#primary { flex: 1 1 auto; min-width: 0; }
#secondary { flex: 0 0 280px; }

/* header */
.site-header { border-bottom: 1px solid var(--aw-line); background: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-top: .8rem; padding-bottom: .8rem; flex-wrap: wrap; }
.site-branding { display: flex; align-items: center; gap: .6rem; }
.site-title { margin: 0; font-size: 1.25rem; font-weight: 700; }
.site-title a { color: var(--aw-ink); }
.site-description { margin: 0; font-size: .78rem; color: var(--aw-ink-soft); }
.custom-logo { display: block; }
.main-navigation { margin-left: auto; }
.main-navigation ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.main-navigation a { color: var(--aw-ink-soft); font-weight: 600; font-size: .95rem; }
.main-navigation a:hover, .main-navigation .current-menu-item a { color: var(--aw-green); text-decoration: none; }

/* language switch */
.tp-lang { display: flex; gap: .35rem; flex-wrap: wrap; }
.tp-lang a { font-size: .74rem; color: var(--aw-ink-soft); border: 1px solid var(--aw-line); border-radius: 5px; padding: .15rem .45rem; }
.tp-lang a.active { background: var(--aw-green); color: #fff; border-color: var(--aw-green); }
.tp-lang a:hover { text-decoration: none; border-color: var(--aw-green); }

/* entry */
.entry-title { margin-top: .2rem; }
.entry-meta { font-size: .82rem; color: var(--aw-ink-soft); margin: .3rem 0 1rem; }
.entry-meta .byline { font-weight: 600; color: var(--aw-ink); }
.entry-intro { font-size: 1.02rem; color: var(--aw-ink-soft); max-width: 72ch; }

/* promo banner / hero */
.promo-hero { margin-bottom: 1.4rem; }
.promo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(120deg, var(--aw-green), var(--aw-green-dark));
  color: #fff; border-radius: var(--aw-radius); padding: 1.1rem 1.4rem; margin: 1rem 0;
}
.promo-text .promo-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; opacity: .85; margin-bottom: .2rem; }
.promo-text strong { font-size: 1.3rem; }
.promo-btn { background: var(--aw-gold); color: #1a1d21; font-weight: 700; border-radius: 8px; padding: .7rem 1.3rem; white-space: nowrap; }
.promo-btn:hover { text-decoration: none; filter: brightness(1.05); }

/* brand cards */
.brand-grid { display: grid; grid-template-columns: 1fr; gap: .9rem; margin: 1rem 0 1.5rem; }
.brand-card {
  display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--aw-line);
  border-radius: var(--aw-radius); padding: 1rem 1.1rem; box-shadow: var(--aw-shadow);
}
.brand-logo img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: var(--aw-bg-soft); }
.brand-main { flex: 1 1 auto; }
.brand-name { margin: 0 0 .3rem; font-size: 1.1rem; }
.brand-bonus { margin: 0 0 .3rem; font-size: .92rem; }
.brand-score { margin: 0; font-size: .85rem; color: var(--aw-ink-soft); }
.brand-score strong { color: var(--aw-green); font-size: 1rem; }
.brand-cta { flex: 0 0 auto; display: flex; flex-direction: column; gap: .5rem; }
.btn { display: inline-block; border-radius: 8px; padding: .55rem 1rem; font-weight: 700; font-size: .9rem; text-align: center; }
.btn-primary { background: var(--aw-green); color: #fff; }
.btn-primary:hover { background: var(--aw-green-dark); text-decoration: none; }
.btn-outline { border: 1px solid var(--aw-green); color: var(--aw-green); }
.btn-outline:hover { background: var(--aw-bg-soft); text-decoration: none; }

/* rating widget */
.rating-box { display: flex; gap: 1.5rem; align-items: stretch; background: var(--aw-bg-soft); border: 1px solid var(--aw-line); border-radius: var(--aw-radius); padding: 1.1rem 1.3rem; margin: 1rem 0; flex-wrap: wrap; }
.rating-overall { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 110px; }
.rating-score { font-size: 2.6rem; font-weight: 800; color: var(--aw-green); line-height: 1; }
.rating-of { font-size: 1rem; color: var(--aw-ink-soft); }
.rating-title { font-size: .8rem; color: var(--aw-ink-soft); margin-top: .2rem; }
.rating-breakdown { flex: 1 1 200px; display: flex; flex-direction: column; gap: .4rem; justify-content: center; }
.rating-row { display: flex; align-items: center; gap: .7rem; }
.rating-label { flex: 0 0 110px; font-size: .85rem; }
.rating-bar { flex: 1 1 auto; height: 8px; background: #dfe4e8; border-radius: 4px; overflow: hidden; }
.rating-fill { display: block; height: 100%; background: var(--aw-gold); border-radius: 4px; }
.rating-val { flex: 0 0 30px; text-align: right; font-weight: 700; font-size: .9rem; }

/* pros/cons */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.review-pros, .review-cons { border: 1px solid var(--aw-line); border-radius: var(--aw-radius); padding: 1rem 1.2rem; }
.review-pros { border-top: 3px solid var(--aw-green); }
.review-cons { border-top: 3px solid var(--aw-red); }
.review-pros h2, .review-cons h2 { margin-top: 0; font-size: 1.05rem; }
.review-pros ul, .review-cons ul { margin: 0; }

/* review body */
.review-body { max-width: 76ch; }
.games-list, .payments-list { columns: 2; column-gap: 2rem; }
.games-list li, .payments-list li { break-inside: avoid; }

/* trustpilot */
.trustpilot-quote { margin: 1.3rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--aw-green); background: var(--aw-bg-soft); border-radius: 0 var(--aw-radius) var(--aw-radius) 0; }
.trustpilot-quote p { font-style: italic; margin-bottom: .3rem; }
.trustpilot-quote cite { font-size: .8rem; color: var(--aw-ink-soft); font-style: normal; }

/* voices */
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.3rem 0; }
.voice { background: var(--aw-bg-soft); border: 1px solid var(--aw-line); border-radius: var(--aw-radius); padding: 1rem 1.1rem; }
.voice .who { font-size: .78rem; font-weight: 700; color: var(--aw-green); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .4rem; }
.voice p { margin: 0; font-size: .94rem; }

/* FAQ */
.faq-accordion details { border: 1px solid var(--aw-line); border-radius: var(--aw-radius); margin-bottom: .5rem; background: #fff; overflow: hidden; }
.faq-accordion summary { cursor: pointer; padding: .75rem 1rem; font-weight: 600; font-size: .95rem; }
.faq-accordion summary:hover { color: var(--aw-green); }
.faq-accordion details p { padding: 0 1rem .8rem; margin: 0; color: var(--aw-ink-soft); }
.faq-list { display: grid; gap: .5rem; margin: 1rem 0; }
.faq-link { display: block; border: 1px solid var(--aw-line); border-radius: 8px; padding: .65rem 1rem; color: var(--aw-ink); font-weight: 600; }
.faq-link:hover { border-color: var(--aw-green); text-decoration: none; }
.faq-answer { font-size: 1.05rem; max-width: 74ch; }
.back-link { font-weight: 600; }
.resp-note { font-size: .85rem; color: var(--aw-ink-soft); border-top: 1px solid var(--aw-line); padding-top: 1rem; }

/* team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.team-member { border: 1px solid var(--aw-line); border-radius: var(--aw-radius); padding: 1rem 1.2rem; }
.team-member .role { font-size: .78rem; font-weight: 700; color: var(--aw-green); text-transform: uppercase; letter-spacing: .03em; }

/* sidebar */
.widget-area { font-size: .92rem; }
.widget { border: 1px solid var(--aw-line); border-radius: var(--aw-radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.widget-title { font-size: 1rem; margin-top: 0; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: .3rem 0; border-bottom: 1px solid var(--aw-line); }
.widget ul li:last-child { border-bottom: 0; }

/* footer */
.site-footer { background: #14171c; color: #c9d1da; margin-top: auto; }
.footer-inner { padding-top: 2rem; padding-bottom: 1.4rem; }
.footer-widgets { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 1.5rem; }
.widget-title { color: #fff; }
.site-footer a { color: #fff; }
.site-footer .widget ul { list-style: none; padding: 0; margin: 0; }
.trust-badges { display: flex; gap: 1rem; align-items: center; margin: 1.2rem 0; padding-top: 1rem; border-top: 1px solid #2a2f38; font-size: .82rem; }
.badge-18 { background: var(--aw-red); color: #fff; font-weight: 700; border-radius: 50%; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; }
.site-info { font-size: .8rem; color: #8d95a6; border-top: 1px solid #2a2f38; padding-top: 1rem; }
.site-info p { margin-bottom: .3rem; }
.wp-credit { opacity: .7; }
.footer-inner .tp-lang a { color: #c9d1da; border-color: #2a2f38; }

@media (max-width: 860px) {
  .site-content .content-inner { flex-direction: column; }
  #secondary { flex: 0 0 auto; width: 100%; }
  .review-grid, .voices, .team, .footer-widgets { grid-template-columns: 1fr; }
  .games-list, .payments-list { columns: 1; }
  .brand-card { flex-wrap: wrap; }
  .brand-cta { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ===== language dropdown ===== */
.lang-switch {
  font-family: inherit; font-size: .82rem; color: var(--aw-ink-soft);
  background: #fff; border: 1px solid var(--aw-line); border-radius: 6px;
  padding: .3rem .4rem; cursor: pointer; max-width: 130px;
}

/* ===== coloured logo squares ===== */
.brand-logo {
  width: 56px; height: 56px; border-radius: 10px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.brand-logo img { width: 42px; height: 42px; object-fit: contain; background: transparent; border-radius: 0; }

/* ===== narrow logo sidebar ===== */
#secondary { flex: 0 0 52px; }
#secondary .widget-area { width: 100%; }
.side-logo {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 9px; margin-bottom: 8px;
  transition: transform .12s ease;
}
.side-logo:hover { transform: scale(1.08); }
.side-logo img { width: 28px; height: 28px; object-fit: contain; }

/* ===== sticky footer bar ===== */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: #11151c; color: #e7ecf2; box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem 1rem; font-size: .92rem;
}
.sticky-bar.show { transform: translateY(0); }
.sticky-logo { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sticky-logo img { width: 20px; height: 20px; object-fit: contain; }
.sticky-text { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-text strong { color: #fff; }
.sticky-cta {
  background: var(--aw-gold); color: #1a1d21; font-weight: 700;
  border-radius: 7px; padding: .45rem .9rem; flex: 0 0 auto; font-size: .86rem;
}
.sticky-cta:hover { text-decoration: none; filter: brightness(1.06); }
.sticky-close {
  background: transparent; border: 0; color: #9aa4b2; font-size: 1.4rem;
  line-height: 1; cursor: pointer; padding: 0 .1rem;
}
body { padding-bottom: 0; }

@media (max-width: 860px) {
  .sticky-text { white-space: normal; font-size: .82rem; }
  .side-logo { width: 36px; height: 36px; }
}

/* ===== Bootstrap-like flag dropdown ===== */
.lang-dropdown { position: relative; }
.lang-details > .lang-btn { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .35rem; background: #fff; border: 1px solid var(--aw-line); border-radius: 6px; padding: .35rem .6rem; font-size: 1.05rem; line-height: 1; }
.lang-details > summary::-webkit-details-marker { display: none; }
.lang-details > summary::marker { content: ""; }
.lang-btn .caret { border: solid var(--aw-ink-soft); border-width: 0 2px 2px 0; display: inline-block; padding: 2px; transform: rotate(45deg) translateY(-1px); }
.lang-details[open] .lang-btn .caret { transform: rotate(225deg) translateY(1px); }
.lang-menu { position: absolute; top: calc(100% + 5px); right: 0; background: #fff; border: 1px solid var(--aw-line); border-radius: 8px; box-shadow: var(--aw-shadow); padding: .35rem; display: flex; flex-direction: column; z-index: 70; min-width: 48px; }
.lang-menu a { padding: .3rem .55rem; border-radius: 5px; font-size: 1.15rem; line-height: 1; text-align: center; }
.lang-menu a:hover, .lang-menu a.active { background: var(--aw-bg-soft); text-decoration: none; }

/* ===== sticky sidebar (vertical, logos in squares) ===== */
#secondary { flex: 0 0 52px; position: sticky; top: 86px; align-self: flex-start; max-height: calc(100vh - 100px); overflow-y: auto; }
#secondary::-webkit-scrollbar { display: none; }

/* ===== sticky footer bar = 15% of screen ===== */
.sticky-bar {
  height: 15vh; min-height: 96px; align-items: center;
  padding: .8rem 1.4rem; gap: 1rem;
}
.sticky-logo { width: 44px; height: 44px; border-radius: 9px; }
.sticky-logo img { width: 30px; height: 30px; }
.sticky-text { font-size: 1.05rem; }
.sticky-cta { font-size: 1rem; padding: .6rem 1.3rem; }
.sticky-close { font-size: 1.7rem; }

/* ===== featured + verdict ===== */
.featured { position: relative; border: 1px solid var(--aw-gold); border-radius: var(--aw-radius); padding: .6rem .6rem 0; margin: .8rem 0 1.2rem; background: #fffdf7; }
.featured-label { position: absolute; top: -11px; left: 14px; background: var(--aw-gold); color: #1a1d21; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .15rem .6rem; border-radius: 999px; }
.featured .brand-card { border: 0; box-shadow: none; background: transparent; }
.verdict { background: var(--aw-bg-soft); border-left: 4px solid var(--aw-green); border-radius: 0 var(--aw-radius) var(--aw-radius) 0; padding: 1rem 1.2rem; margin: 1rem 0; }
.verdict h2 { margin-top: 0; }
.verdict p { margin: 0; }

@media (max-width: 860px) {
  #secondary { display: none; }
  .sticky-bar { height: auto; min-height: 0; padding: .6rem 1rem; }
  .sticky-text { font-size: .85rem; }
}

/* ===== black header, white text ===== */
.site-header { background: #11151c; border-bottom: 1px solid #232a35; }
.site-title a { color: #ffffff; }
.site-description { color: #9aa4b2; }
.main-navigation a { color: #c9d1da; }
.main-navigation a:hover, .main-navigation .current-menu-item a { color: #f0a83a; text-decoration: none; }
.lang-details > .lang-btn { background: transparent; border-color: #2a3442; }
.lang-btn .caret { border-color: #c9d1da; }

/* ===== promo banner: overlay with button on the right ===== */
.promo-banner {
  position: relative; border-radius: var(--aw-radius); margin: 1rem 0; overflow: hidden;
  background-size: cover; background-position: center; min-height: 128px;
}
.promo-overlay {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  padding: 1.3rem 1.6rem; min-height: 128px;
  background: linear-gradient(90deg, rgba(8,11,16,.82) 0%, rgba(8,11,16,.45) 60%, rgba(8,11,16,.2) 100%);
}
.promo-text { flex: 0 1 auto; }
.promo-text .promo-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #f0a83a; font-weight: 700; margin-bottom: .25rem; }
.promo-text strong { color: #fff; font-size: 1.35rem; line-height: 1.2; }
.promo-btn {
  flex: 0 0 auto; margin-left: auto; background: #f0a83a; color: #1a1d21;
  font-weight: 700; border-radius: 8px; padding: .75rem 1.4rem; font-size: 1rem; white-space: nowrap;
}
.promo-btn:hover { text-decoration: none; filter: brightness(1.06); }

/* ===== updated badge ===== */
.updated-badge {
  display: inline-block; background: #e7f6ec; color: #0f7a52;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  padding: .15rem .55rem; border-radius: 999px; border: 1px solid #b7e4c7;
  margin-right: .6rem; vertical-align: middle;
}

/* ===== mobile-friendly fixes (prevent horizontal overflow) ===== */
@media (max-width: 860px) {
  .entry-meta { display: flex; flex-wrap: wrap; gap: .35rem .5rem; line-height: 1.5; }
  .updated-badge { white-space: nowrap; }
  .sticky-text { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; word-break: break-word; }
  .promo-text strong, .brand-bonus strong, .brand-score { overflow-wrap: anywhere; word-break: break-word; }
  .promo-overlay { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .promo-btn { align-self: flex-start; margin-left: 0; }
  .rating-row { flex-wrap: wrap; row-gap: .15rem; }
  .rating-label { flex: 1 1 100%; }
  .brand-card { flex-wrap: wrap; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-main { flex: 1 1 180px; min-width: 0; }
  .brand-cta { flex-direction: row; flex-wrap: wrap; }
  .sticky-bar { height: auto; min-height: 0; flex-wrap: wrap; }
  .sticky-text { flex: 1 1 100%; }
  .facts-table th, .facts-table td { word-break: break-word; }
  .verdict p, .review-body p { overflow-wrap: anywhere; }
  h1 { font-size: 1.5rem; overflow-wrap: anywhere; }
}

/* ensure content isn't hidden behind the fixed sticky bar */
body { padding-bottom: 15vh; }
@media (max-width: 860px) { body { padding-bottom: 0; } .sticky-bar { position: sticky; bottom: 0; } }

/* ===== personal experience + screenshots ===== */
.experience {
  background: #fffdf5; border: 1px solid #f0e2b6; border-left: 4px solid var(--aw-gold);
  border-radius: 0 var(--aw-radius) var(--aw-radius) 0; padding: 1rem 1.2rem; margin: 1.2rem 0;
}
.experience h2 { margin-top: 0; }
.experience p { margin: 0; font-size: .98rem; }
.screenshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; margin: 1rem 0; }
.screenshot { margin: 0; border: 1px solid var(--aw-line); border-radius: var(--aw-radius); overflow: hidden; background: var(--aw-bg-soft); }
.screenshot img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .screenshots { grid-template-columns: 1fr; } }
