/*
Theme Name: Chicken Road Review
Theme URI: https://example.com/
Author: TWS_Crew + ChatGPT
Author URI: https://example.com/
Description: Modern, mobile-first WordPress theme for reviewing the casino game “Chicken Road”, with a “Best Casinos” block, CTA button, and multilingual switcher compatibility.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chickenroad
Tags: blog, news, one-column, two-columns, custom-logo, featured-images, translation-ready
*/

:root{
  --cr-bg: #0f1012;
  --cr-card: #14161a;
  --cr-text: #f2f3f5;
  --cr-muted: #b7bcc6;
  --cr-border: rgba(255,255,255,.10);
  --cr-accent: #f2a900; /* warm gold */
  --cr-accent-2: #7dd3fc; /* cool accent */
  --cr-quote-bg: #f1e5d4; /* light brown for quotes */
  --cr-quote-text: #2b1d12;
  --cr-link: #f5c16b;
  --cr-link-hover: #ffd79a;
  --cr-radius: 16px;
  --cr-shadow: 0 18px 50px rgba(0,0,0,.35);
  --cr-max: 1120px;
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(242,169,0,.18), transparent 65%),
              radial-gradient(900px 500px at 85% 0%, rgba(125,211,252,.14), transparent 60%),
              var(--cr-bg);
  color: var(--cr-text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.6;
  font-size: 18px;
}

@media (max-width: 720px){
  body{ font-size: 19px; } /* bigger on mobile */
}

img{ max-width: 100%; height: auto; }
a{
  color: var(--cr-link);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: .08em;
}
a:hover, a:focus{ color: var(--cr-link-hover); }

strong{ font-weight: 700; }
em{ font-style: italic; }

.container{
  width: min(var(--cr-max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left: 12px; top: 12px; width:auto; height:auto; padding: 10px 12px;
  background: #111; border: 1px solid var(--cr-border); border-radius: 10px;
  z-index: 9999;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(15,16,18,.75);
  border-bottom: 1px solid var(--cr-border);
}
.header-inner{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.custom-logo{
  width: clamp(120px, 16vw, 200px);
  height: auto;
}
.site-title{
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.site-title a{ text-decoration: none; color: var(--cr-text); }
.site-tagline{
  margin: 0;
  font-size: 13px;
  color: var(--cr-muted);
}

.nav-wrap{
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Primary nav */
.primary-nav{
  display: flex;
  align-items: center;
  gap: 10px;
}
.primary-nav ul{
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
}
.primary-nav a{
  display: inline-flex;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--cr-text);
}
.primary-nav a:hover{
  background: rgba(255,255,255,.06);
}

/* Language switcher */
.lang-switcher{
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--cr-border);
  border-radius: 999px;
  background: rgba(20,22,26,.65);
}
.lang-switcher a, .lang-switcher span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 24px;
  border-radius: 10px;
  text-decoration: none;
}
.lang-switcher a:hover{ background: rgba(255,255,255,.06); }
.lang-switcher img{ width: 20px; height: 14px; border-radius: 2px; }

/* Mobile language dropdown (inside burger menu) */
.mobile-lang-wrap{ display: none; }
.lang-switcher-mobile{ width: 100%; }
.lang-switcher-mobile__summary{
  list-style: none;
  cursor: pointer;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(20,22,26,.50);
  border: 1px solid var(--cr-border);
  color: var(--cr-text);
}
.lang-switcher-mobile__summary::-webkit-details-marker{ display:none; }
.lang-switcher-mobile__summary-inner{
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switcher-mobile__summary img{ width: 20px; height: 14px; border-radius: 2px; }
.lang-switcher-mobile__label{ font-weight: 700; font-size: 14px; }
.lang-switcher-mobile__list{
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.lang-switcher-mobile__item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--cr-text);
  background: rgba(20,22,26,.45);
  border: 1px solid var(--cr-border);
}
.lang-switcher-mobile__item:hover{ background: rgba(20,22,26,.55); }
.lang-switcher-mobile__item img{ width: 20px; height: 14px; border-radius: 2px; }
.lang-switcher-mobile__item.is-active{ box-shadow: 0 0 0 2px rgba(242,169,0,.20) inset; }

/* CTA */
.header-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(242,169,0,.95), rgba(245,193,107,.95));
  color: #1b1209;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(242,169,0,.16);
  white-space: nowrap;
}
.header-cta:hover{ filter: brightness(1.03); }

/* Mobile menu */
.menu-toggle{
  display: none;
  border: 1px solid var(--cr-border);
  background: rgba(20,22,26,.6);
  color: var(--cr-text);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
}
@media (max-width: 860px){
  .primary-nav{ display: none; }
  .menu-toggle{ display: inline-flex; }
  .nav-wrap{ gap: 10px; }
  .lang-switcher{ display: none; }
  .mobile-lang-wrap{ display: block; }
}
.mobile-nav{
  display: none;
  border-top: 1px solid var(--cr-border);
  padding: 10px 0 14px;
}
.mobile-nav .mobile-lang-wrap{ display: block; }
.mobile-nav.is-open{ display: block; }
.mobile-nav ul{
  margin: 0; padding: 0; list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.mobile-nav a{
  display: flex;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--cr-text);
  background: rgba(20,22,26,.50);
  border: 1px solid var(--cr-border);
}
.mobile-nav a:hover{ background: rgba(255,255,255,.06); }

/* Main */
.site-main{
  padding: 26px 0 54px;
}
.card{
  background: rgba(20,22,26,.70);
  border: 1px solid var(--cr-border);
  border-radius: var(--cr-radius);
  box-shadow: var(--cr-shadow);
}

.hero{
  padding: 24px;
  border-radius: var(--cr-radius);
  border: 1px solid var(--cr-border);
  background: radial-gradient(900px 500px at 20% 10%, rgba(242,169,0,.16), transparent 60%),
              radial-gradient(900px 500px at 80% 0%, rgba(125,211,252,.10), transparent 60%),
              rgba(20,22,26,.55);
}
.hero h1{
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.hero p{
  margin: 0;
  color: var(--cr-muted);
  max-width: 68ch;
}

/* Content typography */
.entry-content{
  max-width: 76ch;
}
.entry-content h2, .entry-content h3, .entry-content h4{
  line-height: 1.2;
  letter-spacing: -.01em;
}
.entry-content h2{ margin-top: 32px; font-size: 26px; }
.entry-content h3{ margin-top: 26px; font-size: 22px; }
.entry-content h4{ margin-top: 22px; font-size: 19px; color: var(--cr-muted); }
.subtitle{
  color: var(--cr-muted);
  font-size: 18px;
  margin-top: -6px;
}

.entry-content ul, .entry-content ol{
  padding-left: 1.2em;
}
.entry-content li{ margin: 6px 0; }

/* Quotes */
blockquote, .wp-block-quote{
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--cr-quote-bg);
  color: var(--cr-quote-text);
  border: 1px solid rgba(43,29,18,.12);
}
blockquote cite{ opacity: .8; font-style: normal; }

/* Featured image */
.featured-image{
  margin: 18px 0 16px;
  border-radius: var(--cr-radius);
  overflow: hidden;
  border: 1px solid var(--cr-border);
}
.featured-image img{ display: block; width: 100%; }

/* Archive grid */
.posts-grid{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 980px){
  .posts-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .posts-grid{ grid-template-columns: 1fr; }
}

.post-card{
  padding: 14px;
  border-radius: var(--cr-radius);
  border: 1px solid var(--cr-border);
  background: rgba(20,22,26,.55);
}
.post-card a{ text-decoration: none; color: var(--cr-text); }
.post-card h2{
  margin: 10px 0 6px;
  font-size: 18px;
  line-height: 1.25;
}
.post-card p{ margin: 0; color: var(--cr-muted); font-size: 15px; }
.post-card .thumb{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--cr-border);
}
.post-card .thumb img{ display:block; width:100%; aspect-ratio: 16/10; object-fit: cover; }

/* Pagination */
.pagination{
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pagination a, .pagination span{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--cr-border);
  text-decoration: none;
  color: var(--cr-text);
  background: rgba(20,22,26,.55);
}
.pagination .current{
  background: rgba(242,169,0,.18);
  border-color: rgba(242,169,0,.35);
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--cr-border);
  padding: 34px 0;
  background: rgba(10,11,13,.8);
}
.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
}
@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer-card{
  padding: 18px;
  border-radius: var(--cr-radius);
  border: 1px solid var(--cr-border);
  background: rgba(20,22,26,.45);
}
.footer-title{
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--cr-muted);
}
.site-footer ul{
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 8px;
}
.site-footer a{
  color: var(--cr-text);
  text-decoration: none;
}
.site-footer a:hover{ text-decoration: underline; }

.footer-bottom{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: var(--cr-muted);
  font-size: 14px;
}

/* Forms */
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--cr-border);
  background: rgba(20,22,26,.55);
  color: var(--cr-text);
}
label{ display:block; margin: 10px 0 6px; color: var(--cr-muted); }
button, input[type="submit"]{
  width: auto;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--cr-border);
  background: rgba(242,169,0,.15);
  color: var(--cr-text);
  font-weight: 700;
  cursor: pointer;
}
button:hover, input[type="submit"]:hover{ background: rgba(242,169,0,.22); }

/* Best Casinos block */
.cr-bestcasinos{
  margin: 24px 0;
  padding: 16px;
  border-radius: var(--cr-radius);
  border: 1px solid rgba(242,169,0,.22);
  background: radial-gradient(900px 400px at 20% 0%, rgba(242,169,0,.14), transparent 60%),
              rgba(20,22,26,.55);
}
.cr-bestcasinos .cr-bc-header{
  display:flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cr-bestcasinos .cr-bc-title{
  margin:0;
  font-size: 20px;
}
.cr-bestcasinos .cr-bc-note{
  margin:0;
  color: var(--cr-muted);
  font-size: 14px;
}
.cr-bestcasinos .cr-casino-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 980px){
  .cr-bestcasinos .cr-casino-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .cr-bestcasinos .cr-casino-grid{ grid-template-columns: 1fr; }
}
.cr-bestcasinos .cr-casino-card{
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--cr-border);
  background: rgba(15,16,18,.35);
}
.cr-bestcasinos .cr-casino-card h3{
  margin: 0 0 8px;
  font-size: 18px;
}
.cr-bestcasinos .cr-casino-card p{
  margin: 0 0 12px;
  color: var(--cr-muted);
  font-size: 15px;
}
.cr-bestcasinos .cr-casino-card .cr-casino-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(242,169,0,.18);
  border: 1px solid rgba(242,169,0,.30);
  text-decoration: none;
  color: var(--cr-text);
  font-weight: 700;
}
.cr-bestcasinos .cr-casino-card .cr-casino-cta:hover{
  background: rgba(242,169,0,.24);
}

/* WordPress basics */
.alignwide{ width: min(1200px, 100%); margin-inline:auto; }
.alignfull{ width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption{ max-width: 100%; }
.screen-reader-text{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
