/* ══════════════════════════════════════════
   COSY GAMES — Professional Stylesheet
   ══════════════════════════════════════════ */

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

:root {
  --rose:        #e8a0b0;
  --rose-light:  #f5dce3;
  --lavender:    #b8a8d8;
  --lav-light:   #e8e0f5;
  --sage:        #8ab8a0;
  --sage-light:  #d8ede4;
  --butter:      #d4a840;
  --butter-light:#fdf0c8;
  --sky:         #7aaed0;
  --sky-light:   #dceef8;
  --cream:       #faf8f5;
  --white:       #ffffff;
  --surface:     #f5f2ef;
  --text-dark:   #1a1520;
  --text-mid:    #4a4055;
  --text-light:  #8a7f95;
  --text-xlight: #b5adc0;
  --border:      #e8e2ee;
  --border-dark: #d0c8dc;
  --shadow-sm:   0 1px 3px rgba(60,40,80,0.08);
  --shadow-md:   0 4px 16px rgba(60,40,80,0.10);
  --shadow-lg:   0 12px 40px rgba(60,40,80,0.13);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --accent:      #9b6fc5;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════
   TOP BANNER AD
   ══════════════════════════════════════════ */
/* ── INDIVIDUAL AD ITEM ── */
.ad-item {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.ad-item a { display: block; }
.ad-item img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.ad-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-xlight);
  margin-bottom: 3px;
}

/* ── BANNER AD SLOTS (top, mid, footer) — 2 ads side by side ── */
.ad-banner-top,
.ad-midpage,
.ad-footer-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.5rem;
}


/* Single ad stretches full width, two ads split evenly */
.ad-banner-top .ad-item:only-child,
.ad-midpage .ad-item:only-child,
.ad-footer-banner .ad-item:only-child {
  max-width: 600px;
  margin: 0 auto;
}

/* Divider between the two banner ads */
.ad-banner-top .ad-item + .ad-item,
.ad-midpage .ad-item + .ad-item,
.ad-footer-banner .ad-item + .ad-item {
  border-left: 1px solid var(--border);
  padding-left: 0.8rem;
}

/* ══════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════ */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 38px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

.logo-icon {
  font-size: 1.6rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.logo-text span { color: var(--accent); }

nav { display: flex; align-items: center; gap: 0.2rem; }

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: all 0.15s;
}

nav a:hover { background: var(--surface); color: var(--text-dark); }

.header-right { display: flex; align-items: center; gap: 0.6rem; }

.social-bar { display: flex; align-items: center; gap: 0.35rem; }

.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-light); text-decoration: none;
  transition: all 0.15s;
}

.social-link:hover { background: var(--lav-light); color: var(--accent); border-color: var(--lavender); }
.social-link svg { width: 15px; height: 15px; fill: currentColor; }

.admin-btn {
  font-size: 0.8rem; font-weight: 600; font-family: 'Inter', sans-serif;
  color: var(--text-mid); background: var(--surface);
  border: 1px solid var(--border); padding: 0.35rem 0.8rem;
  border-radius: 6px; cursor: pointer; text-decoration: none;
  transition: all 0.15s; display: inline-flex; align-items: center; gap: 0.3rem;
}

.admin-btn:hover { background: var(--lav-light); color: var(--accent); border-color: var(--lavender); }

/* ══════════════════════════════════════════
   HERO / PAGE BANNER
   ══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #f8f0fa 0%, #f0ebf8 40%, #eaf4f8 100%);
  border-bottom: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(155,111,197,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(122,174,208,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-flowers { font-size: 1.1rem; letter-spacing: 0.6rem; color: var(--text-xlight); margin-bottom: 0.8rem; position: relative; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  position: relative;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-mid);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

/* ══════════════════════════════════════════
   PAGE LAYOUT — with optional sidebars
   ══════════════════════════════════════════ */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.page-layout.has-left  { grid-template-columns: 160px 1fr; }
.page-layout.has-right { grid-template-columns: 1fr 160px; }
.page-layout.has-both  { grid-template-columns: 160px 1fr 160px; }

.sidebar-left  { grid-column: 1; }
.sidebar-right { grid-column: -1; }
.main-content  { min-width: 0; }

/* ── SIDEBAR AD SLOTS — up to 5 ads stacked ── */
.ad-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: sticky;
  top: 80px;
  align-self: start;
}

.ad-sidebar .ad-item img {
  max-height: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════════
   FEATURED REVIEW — Compact professional
   ══════════════════════════════════════════ */
.section-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-light);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  width: 100%;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 12px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.featured-review {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 340px 1fr;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 2.5rem;
}

.featured-review:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.featured-img {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.featured-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.img-placeholder {
  width: 100%; height: 100%; min-height: 280px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 4rem; gap: 0.6rem;
}

.img-placeholder .game-title-overlay {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: rgba(50,30,70,0.55); font-weight: 600;
}

.featured-content {
  padding: 2rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-top { flex: 1; }

.review-tag {
  display: inline-block;
  font-size: 0.67rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem; border-radius: 4px;
  margin-bottom: 0.7rem;
}

.tag-cosy      { background: var(--sage-light);   color: #2d6045; }
.tag-adventure { background: var(--sky-light);    color: #1a4060; }
.tag-farming   { background: #e8f4e0;             color: #2a4020; }
.tag-rpg       { background: var(--lav-light);    color: #4a2a70; }
.tag-social    { background: var(--rose-light);   color: #702030; }

.review-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem; font-weight: 700;
  line-height: 1.25; color: var(--text-dark);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.review-subtitle { color: var(--text-light); font-size: 0.8rem; margin-bottom: 0.8rem; }

.score-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.9rem; }

.score-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: var(--butter-light); border: 1px solid #e8d080;
  border-radius: 6px; padding: 0.25rem 0.65rem;
  font-weight: 700; font-size: 0.9rem; color: #7a5010;
}

.star-rating { display: flex; align-items: center; gap: 0.15rem; }
.star        { font-size: 0.95rem; }
.star.filled { color: #e8b830; }
.star.half   { color: #e8b830; opacity: 0.5; }
.star.empty  { color: var(--border-dark); }
.rating-text { margin-left: 0.35rem; font-size: 0.78rem; font-weight: 600; color: var(--text-light); }

.review-excerpt {
  color: var(--text-mid); line-height: 1.65;
  font-size: 0.875rem; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.meta-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }

.meta-chip {
  font-size: 0.75rem; color: var(--text-mid);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 0.2rem 0.5rem;
}

.meta-chip strong { color: var(--text-light); font-weight: 500; margin-right: 0.2rem; }

.featured-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 1rem; }

.pros-mini { display: flex; gap: 0.4rem; flex-wrap: wrap; flex: 1; margin-right: 1rem; }

.pro-tag {
  font-size: 0.72rem; color: #2d6045;
  background: var(--sage-light); border-radius: 4px;
  padding: 0.15rem 0.5rem;
}

.read-more-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent); color: white; border: none;
  padding: 0.55rem 1.2rem; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.82rem;
  cursor: pointer; text-decoration: none; transition: all 0.15s;
  white-space: nowrap; flex-shrink: 0;
}

.read-more-btn:hover { background: #8560b5; box-shadow: 0 4px 12px rgba(155,111,197,0.35); }

/* ══════════════════════════════════════════
   MID-PAGE AD SLOT
   ══════════════════════════════════════════ */
/* ad-midpage — see ad-banner-top combined rules above */

/* ══════════════════════════════════════════
   REVIEWS GRID
   ══════════════════════════════════════════ */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 0.6rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  display: block; color: inherit; text-decoration: none;
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.card-img {
  height: 160px; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}

.card-img-photo { background: var(--surface); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-body { padding: 1rem; }

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--text-dark); margin: 0.4rem 0 0.3rem;
  letter-spacing: -0.01em;
}

.card-excerpt {
  color: var(--text-light); font-size: 0.8rem; line-height: 1.5;
  margin-bottom: 0.7rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 0.6rem; border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--text-light);
}

.card-score { font-weight: 700; color: var(--text-mid); }

/* ══════════════════════════════════════════
   FOOTER AD + FOOTER
   ══════════════════════════════════════════ */
/* ad-footer-banner — see ad-banner-top combined rules above */

footer {
  background: var(--text-dark);
  padding: 2.5rem 2rem;
  text-align: center;
}

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

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; color: var(--white);
  margin-bottom: 0.3rem;
}

.footer-logo span { color: #c4a0e8; }

footer p { color: rgba(255,255,255,0.45); font-size: 0.8rem; }
.footer-emoji { font-size: 1.2rem; margin-bottom: 0.6rem; }

/* ══════════════════════════════════════════
   REVIEW MODAL
   ══════════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(10,5,20,0.6); z-index: 500;
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 820px; width: 100%; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 32px 80px rgba(10,5,20,0.4);
  animation: modalIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}

@keyframes modalIn {
  from { opacity:0; transform: scale(0.93) translateY(16px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}

.modal-header-img {
  height: 240px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
}
.modal-header-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-body { padding: 1.8rem 2rem 2rem; }
.modal-close {
  position: absolute; top: 0.8rem; right: 0.8rem;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
  border: 1px solid var(--border); border-radius: 50%;
  width: 34px; height: 34px; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); z-index: 10; transition: all 0.15s;
}
.modal-close:hover { background: white; box-shadow: var(--shadow-lg); }

/* Modal detail grid */
.modal-details-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.6rem; margin-bottom: 1.2rem; }
.modal-chip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.5rem 0.7rem; }
.modal-chip strong { display: block; font-size: 0.67rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-xlight); margin-bottom: 0.1rem; }
.modal-chip span { font-size: 0.82rem; font-weight: 600; color: var(--text-dark); }

/* Pros / Cons in modal */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.2rem; }
.pros, .cons { border-radius: var(--radius-sm); padding: 0.8rem; }
.pros { background: #f0faf5; border: 1px solid #b8e8d0; }
.cons { background: #fdf2f4; border: 1px solid #f0c0cc; }
.pros h4 { color: #1d6040; font-size: 0.75rem; margin-bottom: 0.4rem; }
.cons h4 { color: #6b1d2a; font-size: 0.75rem; margin-bottom: 0.4rem; }
.pros ul, .cons ul { list-style: none; }
.pros li, .cons li { font-size: 0.82rem; color: var(--text-mid); line-height: 1.6; }
.pros li::before { content: '✓ '; color: #1d6040; font-weight: 700; }
.cons li::before { content: '✕ '; color: #6b1d2a; font-weight: 700; }

/* Screenshots */
.screenshots-section { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.screenshots-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-light); margin-bottom: 0.7rem; }
.screenshots-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
.screenshot-thumb { border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; aspect-ratio: 16/9; border: 1px solid var(--border); transition: all 0.15s; }
.screenshot-thumb:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
.screenshot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ══════════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════════ */
.lightbox-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(5,0,15,0.96); align-items: center; justify-content: center; }
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: fixed; top: 1rem; right: 1.2rem; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 50%; width: 38px; height: 38px; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); color: white; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-counter { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 0.82rem; font-weight: 600; background: rgba(0,0,0,0.4); padding: 0.25rem 0.8rem; border-radius: 20px; }

/* ══════════════════════════════════════════
   NOTIFICATION
   ══════════════════════════════════════════ */
.notif {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--text-dark); color: white;
  border-radius: var(--radius-sm); padding: 0.75rem 1.2rem;
  font-size: 0.85rem; font-weight: 500; z-index: 9999;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.notif.show { transform: translateY(0); }

/* ══════════════════════════════════════════
   PASTEL BG HELPERS
   ══════════════════════════════════════════ */
.bg-mint     { background: linear-gradient(135deg, #c8f0e0, #ddf5ec); }
.bg-lavender { background: linear-gradient(135deg, #d8ccf0, #ebe4f8); }
.bg-blush    { background: linear-gradient(135deg, #f5c8d8, #fad8e4); }
.bg-butter   { background: linear-gradient(135deg, #f8e4a8, #fdf0c8); }
.bg-sky      { background: linear-gradient(135deg, #b8d8f0, #cce8f8); }
.bg-sage     { background: linear-gradient(135deg, #c0e0cc, #d4edd8); }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .featured-review { grid-template-columns: 1fr; }
  .img-placeholder { min-height: 200px; }
  .featured-content { padding: 1.4rem; }
  .page-layout.has-left, .page-layout.has-right, .page-layout.has-both {
    grid-template-columns: 1fr;
  }
  .sidebar-left, .sidebar-right { display: none; }
  .modal-details-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 1rem; gap: 0.6rem; }
  .page-layout { padding: 1.5rem 1rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: repeat(2,1fr); }
  .featured-footer { flex-direction: column; gap: 0.8rem; }
  .pros-mini { display: none; }
}


/* ══════════════════════════════════════════
   ADMIN STYLES
   ══════════════════════════════════════════ */
.admin-wrap { max-width: 940px; margin: 2.5rem auto; padding: 0 1.5rem 4rem; }
.admin-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.8rem; flex-wrap: wrap; gap: 1rem; }
.admin-header h1 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--text-dark); }
.admin-header p  { color: var(--text-light); font-size: 0.85rem; margin-top: 0.2rem; }

.admin-tabs { display: flex; gap: 0.3rem; margin-bottom: 1.8rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 0.6rem; }
.admin-tab { padding: 0.45rem 1rem; border-radius: 6px; border: none; background: none; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.82rem; color: var(--text-light); cursor: pointer; transition: all 0.15s; }
.admin-tab:hover  { background: var(--surface); color: var(--text-dark); }
.admin-tab.active { background: var(--accent); color: white; }

.admin-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); margin-bottom: 1.2rem; }
.admin-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--text-dark); margin-bottom: 0.3rem; }
.admin-card .card-desc { font-size: 0.82rem; color: var(--text-light); margin-bottom: 1.2rem; }

.form-group { margin-bottom: 0.9rem; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 0.875rem; color: var(--text-dark); background: var(--surface); transition: border 0.15s; outline: none; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); background: white; box-shadow: 0 0 0 3px rgba(155,111,197,0.12); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.save-btn { background: var(--accent); color: white; border: none; padding: 0.65rem 1.5rem; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 0.3rem; }
.save-btn:hover { background: #8560b5; box-shadow: 0 4px 12px rgba(155,111,197,0.3); }
.save-btn.danger { background: #c0304a; }
.save-btn.danger:hover { background: #a02038; box-shadow: 0 4px 12px rgba(192,48,74,0.3); }
.cancel-btn { background: none; border: 1px solid var(--border); padding: 0.65rem 1.5rem; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.875rem; cursor: pointer; color: var(--text-mid); transition: all 0.15s; text-decoration: none; display: inline-block; }
.cancel-btn:hover { background: var(--surface); border-color: var(--border-dark); }
.icon-btn { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 0.3rem 0.65rem; cursor: pointer; font-size: 0.82rem; transition: all 0.15s; color: var(--text-mid); font-family: 'Inter', sans-serif; }
.icon-btn:hover { background: var(--surface); color: var(--text-dark); border-color: var(--border-dark); }
.icon-btn.danger:hover { background: #fde8ec; border-color: #f0a8b8; color: #a02040; }

.admin-review-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem; background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--border); margin-bottom: 0.5rem; }
.admin-review-item .item-icon  { font-size: 1.3rem; flex-shrink: 0; }
.admin-review-item .item-info  { flex: 1; min-width: 0; }
.admin-review-item .item-title { font-weight: 600; font-size: 0.875rem; color: var(--text-dark); }
.admin-review-item .item-meta  { font-size: 0.75rem; color: var(--text-light); }
.featured-badge { background: var(--butter-light); border: 1px solid #e0c860; border-radius: 4px; padding: 1px 6px; font-size: 0.68rem; font-weight: 600; color: #7a5010; margin-left: 0.4rem; }

.alert { padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500; margin-bottom: 1rem; }
.alert-success { background: #f0faf5; border: 1px solid #b0dcc0; color: #1a5535; }
.alert-error   { background: #fdf2f4; border: 1px solid #f0b0c0; color: #8b1d30; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: linear-gradient(135deg, #f8f0fa, #f0ebf8, #eaf4f8); }
.login-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; max-width: 380px; width: 100%; box-shadow: var(--shadow-lg); text-align: center; }
.login-card .lock-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.login-card h1 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 0.3rem; }
.login-card p  { color: var(--text-light); font-size: 0.85rem; margin-bottom: 1.4rem; }

/* Image upload */
.upload-area { border: 2px dashed var(--border-dark); border-radius: var(--radius-sm); padding: 1.2rem; text-align: center; cursor: pointer; transition: all 0.15s; background: var(--surface); position: relative; }
.upload-area:hover { border-color: var(--accent); background: var(--lav-light); }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-area .upload-icon { font-size: 1.5rem; margin-bottom: 0.2rem; }
.upload-area p { font-size: 0.78rem; color: var(--text-light); }
.upload-area strong { color: var(--text-mid); }

.image-preview { display: none; position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.image-preview img { width: 100%; max-height: 160px; object-fit: cover; display: block; }
.image-preview .remove-img { position: absolute; top: 0.4rem; right: 0.4rem; background: rgba(10,5,20,0.7); color: white; border: none; border-radius: 50%; width: 26px; height: 26px; font-size: 0.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.image-preview .remove-img:hover { background: #c0304a; }

.screenshot-upload-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
.shot-slot { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-sm); overflow: hidden; }
.shot-slot .upload-area { height: 100%; padding: 0.4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.shot-slot .upload-area .upload-icon { font-size: 1rem; }
.shot-slot .upload-area p { font-size: 0.68rem; }
.shot-slot .image-preview { position: absolute; inset: 0; display: block; border-radius: var(--radius-sm); }
.shot-slot .image-preview img { height: 100%; max-height: none; }

.logo-preview-box { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.8rem 1rem; margin-bottom: 1rem; }
.logo-preview-box img { height: 40px; width: auto; max-width: 140px; object-fit: contain; }
.logo-preview-box .no-logo { font-size: 1.8rem; }

/* Ad preview box in admin */
.ad-preview-box {
  background: var(--surface); border: 1px dashed var(--border-dark);
  border-radius: var(--radius-sm); padding: 0.8rem; text-align: center;
  margin-top: 0.6rem; font-size: 0.78rem; color: var(--text-light);
}
.ad-preview-box img { max-height: 80px; max-width: 100%; border-radius: 4px; margin-bottom: 0.3rem; display: block; margin: 0 auto 0.3rem; }

/* Toggle switch */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid var(--border); margin-bottom: 0.8rem; }
.toggle-label { font-size: 0.875rem; font-weight: 500; color: var(--text-dark); }
.toggle-label small { display: block; font-size: 0.75rem; color: var(--text-light); font-weight: 400; }
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border-dark); border-radius: 24px; cursor: pointer; transition: 0.2s; }
.toggle-slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ══════════════════════════════════════════
   FREE GAMES
   ══════════════════════════════════════════ */

/* tag-free label on cards */
.tag-free {
  background: #d8f0ff;
  color: #1a4a70;
}

/* 🆓 badge on card footer */
.free-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1a7040;
  background: #d8f5e0;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}

/* Featured overlay badge on card image */
.free-featured-badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  background: rgba(215,175,0,0.92);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-img { position: relative; }

/* Genre filter pills on freegames.php */
.genre-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.genre-pill {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.15s;
}

.genre-pill:hover { border-color: var(--accent); color: var(--accent); }
.genre-pill.active { background: var(--accent); border-color: var(--accent); color: white; }

.pill-count {
  display: inline-block;
  background: rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 0 0.35rem;
  font-size: 0.7rem;
  margin-left: 0.2rem;
}

.genre-pill.active .pill-count { background: rgba(255,255,255,0.25); }

/* Features list inside free game modal */
.fg-features-list { list-style: none; }
.fg-features-list li { font-size: 0.85rem; color: var(--text-mid); padding: 0.2rem 0; }
.fg-features-list li::before { content: '✦ '; color: var(--sky); font-size: 0.7rem; }

/* Active nav link */
nav a.nav-active { background: var(--lav-light); color: var(--accent); }

/* Admin shield button — icon only */
.admin-btn.admin-shield {
  padding: 0.35rem 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
