﻿/* ================================================
   style.css — Desktop + Base Styles
   ufa899.it.com
================================================ */

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

:root {
  --gold: #c9a227;
  --gold-light: #f0c040;
  --gold-dark: #a07800;
  --bg-dark: #1a1a1a;
  --bg-card: #202020;
  --bg-header: #0d0d0d;
  --text-white: #ffffff;
  --text-gray: #aaaaaa;
  --radius: 8px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  min-height: 100vh;
}

a { color: var(--text-gray); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; }
img { display: block; max-width: 100%; }

.content-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid #2a2a2a;
  position: sticky; top: 0; z-index: 100;
}

.header-container {
  max-width: 1200px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 10px;
}
.logo-wrap { flex: 0 0 auto; margin-right: auto; }

.logo-wrap { display: inline-flex; flex-direction: column; align-items: center; }

.logo-text {
  font-size: 2.2rem; font-weight: 900; letter-spacing: 4px;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(240,192,64,0.4);
  line-height: 1;
}

.logo-sub { font-size: 0.38rem; letter-spacing: 0.8px; color: var(--text-gray); margin-top: 1px; white-space: nowrap; }

.logo-img { height: 28px; width: auto; display: block; max-width: 100%; }

/* header-right removed — elements are now direct children of header-container */

.header-info { display: flex; align-items: center; gap: 14px; font-size: 0.75rem; color: var(--text-gray); }

.lang-selector { display: flex; align-items: center; gap: 4px; cursor: pointer; color: var(--text-white); font-size: 0.8rem; }
.lang-selector:hover { color: var(--gold-light); }

.auth-btns { display: flex; gap: 8px; }

.btn { padding: 7px 22px; border-radius: 4px; font-size: 0.85rem; font-weight: 600; transition: all var(--transition); }

.btn-login { background: transparent; border: 1px solid var(--gold); color: var(--gold-light); }
.btn-login:hover { background: var(--gold); color: #000; }

.btn-register { background: var(--gold); border: 1px solid var(--gold-dark); color: #000; }
.btn-register:hover { background: var(--gold-light); }

/* ===== BANNER SLIDER ===== */
.banner-section { position: relative; width: 100%; overflow: hidden; aspect-ratio: 1920/400; max-height: 280px; }

.slider-wrapper { position: relative; width: 100%; height: 100%; overflow: hidden; }

.slider-track {
  display: flex; width: 300%; height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  width: calc(100% / 3); height: 100%; flex-shrink: 0;
  position: relative; overflow: hidden;
}

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: var(--text-white); border: 1px solid rgba(255,255,255,0.15);
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition); z-index: 10;
}
.slider-btn:hover { background: rgba(201,162,39,0.7); }
.slider-btn.prev { left: 14px; }
.slider-btn.next { right: 14px; }

.slider-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); cursor: pointer; transition: all var(--transition); }
.dot.active { background: var(--gold-light); width: 22px; border-radius: 4px; }

/* ===== PROVIDERS STRIP ===== */

.providers-strip { background: #111; border-top: 1px solid #222; border-bottom: 1px solid #222; padding: 10px 0; }

.providers-list {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 0 20px; gap: 4px;
}

.provider-item {
  padding: 4px 12px; border: 1px solid #333; border-radius: 20px;
  background: #1a1a1a; cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
  height: 36px;
}
.provider-item img { height: 20px; width: auto; object-fit: contain; filter: brightness(0.8); transition: filter var(--transition); }
.provider-item:hover { border-color: var(--gold); background: rgba(201,162,39,0.08); }
.provider-item:hover img { filter: brightness(1.2); }

/* ===== CATEGORY NAV ===== */
.category-nav { background: #111; border-bottom: 1px solid #222; }

.cat-list {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: center;
}

.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 20px; cursor: pointer; font-size: 0.78rem; font-weight: 600;
  color: var(--text-gray); border-bottom: 2px solid transparent;
  transition: all var(--transition); white-space: nowrap;
}
.cat-item:hover { color: var(--text-white); border-bottom-color: rgba(201,162,39,0.4); }
.cat-item.active { color: var(--gold-light); border-bottom-color: var(--gold); }

.cat-icon-img { width: 36px; height: 36px; object-fit: contain; }
.cat-label { font-size: 0.78rem; font-weight: 600; color: inherit; }
.page-layout-wrapper { display: block; }

/* Performance: lazy images */
img[loading="lazy"] { content-visibility: auto; }

/* ===== GAMES SECTION ===== */
.games-section { padding: 18px 0 40px; }

.section-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  max-width: 1200px; margin-left: auto; margin-right: auto;
  padding: 0 20px 12px; border-bottom: 1px solid #2a2a2a;
}

.section-icon { width: 22px; height: 22px; object-fit: contain; }

.section-title { font-size: 1rem; font-weight: 700; letter-spacing: 1.5px; }

/* Layout: Full 4-column grid */
.games-layout { max-width: 1000px; margin: 14px auto 0; padding: 0 20px; }
.game-featured { display: none !important; }



/* Game Cards Grid */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }

.game-card {
  border-radius: 12px; overflow: hidden;
  background: var(--bg-card); cursor: pointer;
  border: 1px solid #222;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  border-color: rgba(201,162,39,0.35);
}
.game-card.hidden { display: none; }

.card-thumb { position: relative; overflow: hidden; aspect-ratio: 3/2; background: #111; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--transition); }
.game-card:hover .card-thumb img { transform: scale(1.04); }

.card-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,100,200,0.9); color: #fff;
  font-size: 0.6rem; font-weight: 700; padding: 2px 8px; border-radius: 3px;
}
.badge-mobile { background: rgba(180,90,0,0.9); }

.commission-tag {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(201,162,39,0.92); color: #000;
  font-size: 0.6rem; font-weight: 700; padding: 3px 8px; border-radius: 3px;
}

.card-info {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; background: #1a1a1a;
}

.card-name {
  font-size: 0.72rem; font-weight: 600; color: var(--text-white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 82%;
}

.card-star { font-size: 0.8rem; color: var(--gold); cursor: pointer; flex-shrink: 0; }

/* ===== SEO SECTION ===== */
/* ===== PROMOTIONS SECTION ===== */
.promo-section { padding: 36px 0 48px; border-top: 1px solid #222; }
.promo-section .content-container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.promo-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.promo-heading h2 { font-size: 1.25rem; font-weight: 800; color: var(--text-white); letter-spacing: 1px; margin: 0; }
.promo-heading-line { flex: 1; height: 1px; background: linear-gradient(to right, #444, transparent); }

.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.promo-card {
  border-radius: 12px; overflow: hidden; background: #111;
  border: 1px solid #2a2a2a; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.promo-card-img { width: 100%; aspect-ratio: 16/7; object-fit: cover; display: block; }
.promo-card-body { padding: 12px 14px 14px; }
.promo-card-tag {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  background: var(--gold); color: #000;
  padding: 2px 8px; border-radius: 3px; margin-bottom: 7px;
}
.promo-card-title { font-size: 0.88rem; font-weight: 700; color: var(--text-white); margin-bottom: 5px; line-height: 1.3; }
.promo-card-desc { font-size: 0.75rem; color: var(--text-gray); line-height: 1.5; }
.promo-card-btn {
  display: block; width: 100%; margin-top: 12px; padding: 8px;
  background: var(--gold); color: #000; font-size: 0.78rem; font-weight: 700;
  border: none; border-radius: 6px; cursor: pointer; text-align: center;
  transition: background 0.2s; box-sizing: border-box;
}
.promo-card-btn:hover { background: var(--gold-light); }
.seo-article ul li { margin-bottom: 4px; }

/* ===== FOOTER ===== */
.site-footer { background: #0a0a0a; border-top: 1px solid #222; padding: 20px 0 10px; }

.footer-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

.footer-logo { display: inline-flex; flex-direction: column; align-items: center; }
.footer-logo .logo-text { font-size: 1.4rem; }
.footer-logo .logo-img { height: 28px; }
.footer-logo .logo-sub { font-size: 0.38rem; letter-spacing: 0.8px; white-space: nowrap; }

.footer-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.75rem; }
.footer-nav span { color: #444; font-size: 0.7rem; }

.footer-copy {
  max-width: 1200px; margin: 10px auto 0;
  padding: 10px 20px 0; border-top: 1px solid #1a1a1a; text-align: center;
}
.footer-copy p { font-size: 0.7rem; color: #555; }

/* Mobile bottom nav — hidden on desktop */
.mobile-bottom-nav { display: none; }
















/* Slider backgrounds */
.slide-1, .slide-2, .slide-3 { background-size: cover; background-position: center 35%; background-repeat: no-repeat; }
.slide-1 { background-image: url('../images/banners/banner1.webp'); }
.slide-2 { background-image: url('../images/banners/banner2.webp'); }
.slide-3 { background-image: url('../images/banners/banner3.webp'); }
/* ===== HAMBURGER + SIDE DRAWER ===== */
.hamburger-btn {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 6px; margin-right: 5px; z-index: 1001;
}
.hamburger-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.side-drawer {
  position: fixed; top: 0; left: 0;
  width: 300px; max-width: 85vw; height: 100%;
  background: #141414;
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  display: flex; flex-direction: column;
  border-right: 1px solid #2a2a2a;
}
.side-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #2a2a2a;
  background: #1a1a1a;
}
.drawer-close {
  background: none; border: 1px solid #444; color: #aaa;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1rem; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.drawer-close:hover { background: #333; color: #fff; }

.drawer-nav { display: flex; flex-direction: column; padding: 8px 0; }
.drawer-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; color: #ccc;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-left: 3px solid transparent;
}
.drawer-nav-item:hover, .drawer-nav-item.active {
  background: rgba(201,162,39,0.1);
  color: var(--gold-light);
  border-left-color: var(--gold-light);
}
.drawer-nav-item img { width: 22px; height: 22px; object-fit: contain; }

.drawer-divider { height: 1px; background: #2a2a2a; margin: 4px 0; }

.drawer-auth { padding: 12px 16px; }
.drawer-auth .btn { width: 100%; }
.drawer-auth .btn-login { margin-bottom: 8px; }

.drawer-article {
  padding: 16px;
  font-size: 0.78rem; color: #999; line-height: 1.6;
}
.drawer-article h3 { color: var(--gold-light); font-size: 0.9rem; margin-bottom: 8px; }
.drawer-article h4 { color: #ccc; font-size: 0.8rem; margin: 12px 0 6px; }
.drawer-article ul { list-style: none; padding: 0; }
.drawer-article ul li { padding: 3px 0; color: #aaa; }

.drawer-footer-links {
  margin-top: auto; padding: 16px;
  display: flex; flex-wrap: wrap; gap: 8px;
  border-top: 1px solid #2a2a2a;
}
.drawer-footer-links a {
  font-size: 0.7rem; color: #666;
  text-decoration: none; transition: color 0.2s;
}
.drawer-footer-links a:hover { color: var(--gold-light); }

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle { position: relative; margin-right: 5px; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1px solid #444; border-radius: 6px;
  color: #ccc; font-size: 0.75rem; font-weight: 600;
  padding: 4px 10px 4px 8px; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--gold-light); color: var(--gold-light); }
.lang-flag { line-height: 1; } .lang-flag .fi { font-size: 1.1rem; }
.lang-arrow { font-size: 0.55rem; opacity: 0.6; margin-left: 2px; }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); right: 0;
  background: #1a1a1a; border: 1px solid #333; border-radius: 10px;
  min-width: 160px; z-index: 9999; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.lang-dropdown.open { display: block; }
.lang-dropdown-title {
  padding: 10px 14px 8px; font-size: 0.7rem; color: #888;
  border-bottom: 1px solid #2a2a2a; font-weight: 600; letter-spacing: 0.5px;
}
.lang-choice {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; cursor: pointer; font-size: 0.82rem; color: #ccc;
  transition: background 0.15s;
}
.lang-choice:hover { background: rgba(255,255,255,0.05); }
.lang-choice.selected { color: #fff; }
.lang-choice-flag .fi { font-size: 1.25rem; }
.lang-check { margin-left: auto; color: var(--gold); font-size: 0.85rem; opacity: 0; }
.lang-choice.selected .lang-check { opacity: 1; }

/* ===== PROMOTIONS PAGE ===== */
.promo-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.promo-img-card { cursor: pointer; }
.promo-img {
  width: 100%; border-radius: 12px; display: block;
  transition: transform 0.2s;
}
.promo-img-card:hover .promo-img { transform: scale(1.02); }


#promoGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 16px auto 0;
  max-width: 1200px;
}
#promoGrid img {
  width: 100%; border-radius: 12px;
  display: block; cursor: pointer;
  transition: transform 0.2s;
}
#promoGrid img:hover { transform: scale(1.02); }
