/* ============================================================
   MIRAI CASINO GUIDE – style.css
   Approach: Mobile-First (min-width breakpoints)
   Breakpoints: 480px | 768px | 1024px | 1200px
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── RESET & BASE ── */
img,svg{display:block;max-width:100%}
a{color:inherit}
ul,ol{padding-left:20px}
button{cursor:pointer;border:none;background:none;font:inherit}

/* ── CONTAINER ── */
.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}
@media(min-width:768px){.container{padding:0 32px}}
@media(min-width:1200px){.container{padding:0 40px}}

/* ============================================================
   LISTING SECTION
   ============================================================ */
.listing-section{
  padding:32px 0 24px;
  background:var(--clr-bg);
}
.section-title{
  font-size:clamp(18px,3.5vw,26px);
  font-weight:700;
  color:var(--clr-text);
  margin-bottom:10px;
  line-height:1.3;
}
.section-subtitle{
  font-size:14px;
  color:var(--clr-text-muted);
  margin-bottom:24px;
  max-width:72ch;
  line-height:1.6;
}
@media(min-width:768px){
  .listing-section{padding:48px 0 36px}
  .section-subtitle{font-size:15px;margin-bottom:32px}
}

/* ── CASINO LIST ── */
.casino-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}
@media(min-width:768px){.casino-list{gap:20px}}

/* ── CASINO CARD ── */
.casino-card{
  background:var(--clr-surface);
  border:1px solid var(--clr-border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
  display:flex;
  gap:0;
  overflow:hidden;
  transition:box-shadow .2s,border-color .2s;
  position:relative;
}
.casino-card:hover{
  box-shadow:var(--shadow-md);
  border-color:#c8dfc9;
}
.casino-card--featured{
  border-color:#c8a84b;
  border-width:2px;
}
.casino-card--featured::after{
  content:'⭐ Miglior Scelta';
  position:absolute;
  top:0;
  right:0;
  background:var(--clr-gold);
  color:#fff;
  font-size:10px;
  font-weight:700;
  padding:4px 10px;
  border-bottom-left-radius:var(--radius-sm);
  letter-spacing:.03em;
}

/* Card rank badge */
.card-rank{
  background:var(--clr-text);
  color:#fff;
  font-size:13px;
  font-weight:700;
  writing-mode:vertical-rl;
  text-orientation:mixed;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  padding:8px 6px;
  flex-shrink:0;
  letter-spacing:.05em;
}
.casino-card--featured .card-rank{background:var(--clr-gold)}

/* Card body */
.card-body{
  flex:1;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:0;
}
@media(min-width:480px){.card-body{padding:20px}}
@media(min-width:768px){
  .card-body{
    display:grid;
    grid-template-columns:200px 1fr 1fr;
    grid-template-rows:auto auto;
    gap:12px 20px;
    align-items:center;
    padding:20px 24px;
  }
}
@media(min-width:1024px){
  .card-body{
    grid-template-columns:220px 1fr 1fr auto;
    grid-template-rows:auto;
    align-items:center;
  }
}

/* Card brand */
.card-brand{
  display:flex;
  align-items:center;
  gap:12px;
}
@media(min-width:768px){
  .card-brand{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    grid-row:1/3;
  }
}
@media(min-width:1024px){.card-brand{grid-row:1}}

.brand-logo-wrap{
  flex-shrink:0;
  width:100px;
  aspect-ratio:5/2;
  display:flex;
  align-items:center;
  border:1px solid var(--clr-border);
  border-radius:var(--radius-sm);
  padding:6px 8px;
  background:#fafafa;
}
@media(min-width:768px){.brand-logo-wrap{width:120px}}

.brand-logo{
  width:100%;
  height:auto;
  object-fit:contain;
  aspect-ratio:3/1;
}

.brand-info{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.brand-name{
  font-weight:700;
  font-size:15px;
  color:var(--clr-text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-stars{
  display:flex;
  align-items:center;
  gap:2px;
}
.star{
  width:14px;
  height:14px;
  fill:var(--clr-gold);
  flex-shrink:0;
}
.star--empty{fill:#dde1e7}
.star--half{fill:var(--clr-gold)}
.rating-text{
  font-size:12px;
  font-weight:600;
  color:var(--clr-text-muted);
  margin-left:4px;
}

/* Card bonus */
.card-bonus{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.bonus-label{
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--clr-accent-green);
  text-transform:uppercase;
}
.bonus-text{
  font-size:14px;
  font-weight:600;
  color:var(--clr-text);
  line-height:1.4;
}
@media(min-width:768px){.bonus-text{font-size:15px}}

/* Card features */
.card-features{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.card-features li{
  display:flex;
  align-items:flex-start;
  gap:8px;
  font-size:13px;
  color:var(--clr-text-muted);
  line-height:1.4;
}
.check-icon{
  width:16px;
  height:16px;
  fill:var(--clr-accent-green);
  flex-shrink:0;
  margin-top:1px;
}

/* Card CTA */
.card-cta{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:flex-start;
}
@media(min-width:1024px){
  .card-cta{align-items:center}
}

.btn-play{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--clr-accent-red);
  color:#fff;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  padding:10px 22px;
  border-radius:var(--radius-sm);
  white-space:nowrap;
  transition:background .2s,transform .1s;
  width:100%;
}
.btn-play:hover{
  background:var(--clr-accent-red-hover);
  transform:translateY(-1px);
}
@media(min-width:480px){.btn-play{width:auto}}
@media(min-width:1024px){.btn-play{min-width:130px}}

.cta-note{
  font-size:10px;
  color:var(--clr-text-muted);
  line-height:1.4;
  max-width:160px;
}

/* ============================================================
   CONTENT ARTICLE
   ============================================================ */
.content-article{
  padding:40px 0;
  background:var(--clr-surface);
  border-top:1px solid var(--clr-border);
}
@media(min-width:768px){.content-article{padding:56px 0}}

.content-article h2{
  font-size:clamp(18px,3vw,24px);
  font-weight:700;
  color:var(--clr-text);
  margin:36px 0 14px;
  line-height:1.3;
  padding-top:8px;
}
.content-article h2:first-child{margin-top:0}

.content-article h3{
  font-size:clamp(15px,2.5vw,18px);
  font-weight:600;
  color:var(--clr-text);
  margin:24px 0 10px;
  line-height:1.4;
}

.content-article p{
  font-size:15px;
  line-height:1.75;
  color:#2d3340;
  margin-bottom:14px;
  max-width:78ch;
}

.content-article ul,
.content-article ol{
  font-size:15px;
  line-height:1.7;
  color:#2d3340;
  margin-bottom:16px;
  padding-left:22px;
}
.content-article li{margin-bottom:6px}
.content-article strong{color:var(--clr-text);font-weight:600}
.content-article em{color:var(--clr-text-muted)}

@media(min-width:768px){
  .content-article p,
  .content-article ul,
  .content-article ol{font-size:16px}
}

/* ── TABLES ── */
.table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:20px 0 24px;
  border:1px solid var(--clr-border);
  border-radius:var(--radius-md);
}
table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
  min-width:480px;
}
thead th{
  background:#f1f4f8;
  font-weight:700;
  color:var(--clr-text);
  text-align:left;
  padding:10px 14px;
  border-bottom:2px solid var(--clr-border);
  white-space:nowrap;
}
tbody td{
  padding:10px 14px;
  border-bottom:1px solid var(--clr-border);
  color:#2d3340;
  vertical-align:middle;
  line-height:1.5;
}
tbody tr:last-child td{border-bottom:none}
tbody tr:hover{background:#f8f9fa}
tbody tr:nth-child(even){background:#fcfcfc}
@media(min-width:768px){
  table{font-size:14px}
  thead th,tbody td{padding:12px 16px}
}

/* ── PROS AND CONS ── */
.pros_and_cons{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin:20px 0 24px;
}
@media(min-width:600px){.pros_and_cons{grid-template-columns:1fr 1fr}}

.pros,
.cons{
  border-radius:var(--radius-md);
  padding:18px;
  border:1px solid;
}
.pros{
  border-color:#b8e0c0;
  background:#f0faf2;
}
.cons{
  border-color:#f0c4be;
  background:#fdf2f1;
}
.pros .title,
.cons .title{
  font-weight:700;
  font-size:14px;
  margin-bottom:10px !important;
  display:flex;
  align-items:center;
  gap:6px;
}
.pros .title{color:var(--clr-accent-green)}
.cons .title{color:var(--clr-accent-red)}
.pros .title::before{content:'✓';font-size:16px}
.cons .title::before{content:'✗';font-size:16px}
.pros ul,
.cons ul{
  margin-bottom:0 !important;
  font-size:14px;
}
.pros li{color:#1f5c32}
.cons li{color:#7b2d26}

/* ── FAQ ── */
.faq{
  margin-top:40px;
  padding-top:32px;
  border-top:2px solid var(--clr-border);
}
.faq h2{margin-top:0 !important}
.faq__item{
  border:1px solid var(--clr-border);
  border-radius:var(--radius-md);
  padding:18px 20px;
  margin-bottom:12px;
  background:var(--clr-surface);
  transition:border-color .2s;
}
.faq__item:hover{border-color:#c8dfc9}
.faq__item h3{
  font-size:15px;
  font-weight:600;
  color:var(--clr-text);
  margin:0 0 8px;
  line-height:1.4;
}
.faq__item p{
  font-size:14px;
  color:var(--clr-text-muted);
  margin:0;
  line-height:1.65;
  max-width:none;
}
@media(min-width:768px){
  .faq__item h3{font-size:16px}
  .faq__item p{font-size:15px}
}

/* ============================================================
   AUTHOR SECTION
   ============================================================ */
.author-section{
  background:var(--clr-bg);
  padding:32px 0;
  border-top:1px solid var(--clr-border);
  border-bottom:1px solid var(--clr-border);
}
.author-card{
  display:flex;
  gap:16px;
  align-items:flex-start;
  background:var(--clr-surface);
  border:1px solid var(--clr-border);
  border-radius:var(--radius-lg);
  padding:20px;
  box-shadow:var(--shadow-sm);
}
@media(min-width:600px){.author-card{padding:24px;gap:20px}}
.author-avatar{
  flex-shrink:0;
  width:60px;
  height:60px;
  border-radius:50%;
  overflow:hidden;
  border:2px solid var(--clr-accent-green);
}
@media(min-width:600px){.author-avatar{width:72px;height:72px}}
.author-avatar svg{width:100%;height:100%}
.author-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.author-name{
  font-size:16px;
  font-weight:700;
  color:var(--clr-text);
  margin:0;
}
.author-role{
  font-size:13px;
  color:var(--clr-accent-green);
  font-weight:500;
  margin:0;
}
.author-bio{
  font-size:14px;
  color:var(--clr-text-muted);
  line-height:1.65;
  margin-top:6px;
}
@media(min-width:768px){.author-bio{font-size:15px}}

/* ============================================================
   TECH BLOCK
   ============================================================ */
.tech-block{
  padding:32px 0;
  background:#f1f4f8;
  border-top:1px solid var(--clr-border);
}
@media(min-width:768px){.tech-block{padding:48px 0}}

.tech-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}
@media(min-width:480px){.tech-grid{grid-template-columns:1fr 1fr}}
@media(min-width:900px){.tech-grid{grid-template-columns:repeat(4,1fr)}}

.tech-item{
  background:var(--clr-surface);
  border:1px solid var(--clr-border);
  border-radius:var(--radius-md);
  padding:16px;
}
.tech-item h3{
  font-size:13px;
  font-weight:700;
  color:var(--clr-text);
  margin:0 0 8px;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.tech-item p{
  font-size:12px;
  color:var(--clr-text-muted);
  line-height:1.6;
  margin:0;
}
.tech-item a{
  color:var(--clr-accent-green);
  text-decoration:underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background:#1a1a2e;
  color:rgba(255,255,255,.75);
  padding:32px 0 24px;
}

.footer-responsible{
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:flex-start;
  margin-bottom:24px;
  padding-bottom:24px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
@media(min-width:600px){
  .footer-responsible{
    flex-direction:row;
    align-items:flex-start;
    gap:20px;
  }
}

.adm-logo{flex-shrink:0}
.adm-logo svg{width:88px;height:auto}

.footer-warning{
  font-size:12px;
  line-height:1.65;
  color:rgba(255,255,255,.65);
  max-width:72ch;
}
.footer-warning a{
  color:rgba(255,255,255,.85);
  text-decoration:underline;
}

.footer-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  margin-bottom:20px;
}
.footer-nav a{
  font-size:12px;
  color:rgba(255,255,255,.6);
  text-decoration:none;
  transition:color .2s;
}
.footer-nav a:hover{color:#fff}

.footer-copy{
  font-size:11px;
  color:rgba(255,255,255,.4);
  line-height:1.6;
  margin:0;
}

/* ============================================================
   UTILITIES
   ============================================================ */
/* Skip to content (accessibility) */
.skip-link{
  position:absolute;
  top:-100%;
  left:0;
  background:var(--clr-accent-green);
  color:#fff;
  padding:8px 16px;
  font-size:14px;
  font-weight:600;
  z-index:999;
  text-decoration:none;
}
.skip-link:focus{top:0}

/* Focus visible */
a:focus-visible,
button:focus-visible,
.btn-cta:focus-visible,
.btn-play:focus-visible{
  outline:3px solid var(--clr-accent-green);
  outline-offset:2px;
}

/* Reduced motion */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
  }
  html{scroll-behavior:auto}
}

/* ── Responsive: no horizontal scroll ── */
html,body{overflow-x:hidden}

/* ── Print ── */
@media print{
  .site-header,.btn-cta,.btn-play,.card-cta,.site-footer{display:none}
  .casino-card{box-shadow:none;border:1px solid #ccc}
  body{background:#fff;color:#000}
}
