/* =============================================
   AMONBET — style.css
   ============================================= */

:root {
  --bg-main: #0B0E14;
  --bg-panel: #161A24;
  --bg-sidebar: #11141C;
  --bg-header: rgba(17, 20, 28, 0.95);
  
  --color-text: #B4B9C4;
  --color-heading: #FFFFFF;
  --color-accent: #FFC000;
  --color-accent-hover: #E5AC00;
  
  --border-color: rgba(255, 255, 255, 0.05);
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  
  --sidebar-width: 260px;
  --sidebar-width-collapsed: 80px;
  --header-height: 70px;
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--color-text);
  line-height: 1.5;
}

body {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

body.sidebar-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-accent);
  color: #000;
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn--outline {
  border: 1px solid var(--border-color);
  color: var(--color-heading);
}

.btn--outline:hover {
  border-color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.05);
}

/* ---------- Layout ---------- */
.app-container {
  display: flex;
  width: 100%;
}

.main-content {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s ease;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .main-content {
    margin-left: 0;
  }
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  z-index: 100;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar__header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar__logo {
  font-size: 24px;
  font-weight: 900;
  color: var(--color-heading);
  letter-spacing: 1px;
}

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

.sidebar__nav {
  padding: 24px 0;
}

.sidebar__item {
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: var(--color-text);
  font-weight: 500;
  transition: all 0.2s;
}

.sidebar__item:hover, .sidebar__item.is-active {
  color: var(--color-heading);
  background-color: rgba(255, 255, 255, 0.03);
}

.sidebar__item i {
  width: 20px;
  margin-right: 12px;
  font-size: 18px;
  text-align: center;
  opacity: 0.7;
}

.sidebar__item:hover i, .sidebar__item.is-active i {
  opacity: 1;
  color: var(--color-accent);
}

.sidebar__badge {
  margin-left: auto;
  background-color: #00E700;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.sidebar__divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 16px 0;
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
}

/* ---------- Header ---------- */
.site-header {
  height: var(--header-height);
  background-color: var(--bg-header);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid var(--border-color);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.burger {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.burger span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--color-heading);
  transition: all 0.3s;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { bottom: 0; }

.burger.is-open span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s;
}

.header-nav__link:hover, .header-nav__link.is-active {
  color: var(--color-heading);
  background-color: rgba(255, 255, 255, 0.05);
}

.header-nav__link i {
  color: var(--color-accent);
}

.header-search {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: all 0.2s;
}

.header-search:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-heading);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 1024px) {
  .burger { display: block; }
  .header-nav { display: none; }
  .header-left { gap: 16px; }
}

@media (max-width: 480px) {
  .header-right .btn--outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(11, 14, 20, 0.2), var(--bg-main));
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 0 24px;
}

.hero__label {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero__title {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 8px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero__subtitle {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 32px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero .btn--primary {
  height: 54px;
  padding: 0 40px;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(255, 192, 0, 0.4);
}

.hero__payments {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 24px;
  align-items: center;
  background-color: rgba(22, 26, 36, 0.8);
  backdrop-filter: blur(5px);
  padding: 12px 32px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
}

.hero__payments img {
  height: 24px;
  opacity: 0.8;
  filter: grayscale(0.5);
  transition: all 0.2s;
}

.hero__payments img:hover {
  opacity: 1;
  filter: grayscale(0);
}

@media (max-width: 768px) {
  .hero { height: 400px; }
  .hero__payments { display: none; }
}

/* ---------- Sections ---------- */
.section {
  padding: 40px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-heading);
}

.section-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: all 0.2s;
}

.slider-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-heading);
}

/* ---------- Game Cards ---------- */
.games-row {
  position: relative;
}

.games-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 16px;
}

.games-grid::-webkit-scrollbar {
  display: none;
}

.game-card {
  flex: 0 0 calc(16.666% - 14px);
  min-width: 160px;
  max-width: 240px;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s;
}

@media (max-width: 1400px) { .game-card { flex: 0 0 calc(20% - 13px); } }
@media (max-width: 1200px) { .game-card { flex: 0 0 calc(25% - 12px); } }
@media (max-width: 900px) { .game-card { flex: 0 0 calc(33.333% - 11px); } }
@media (max-width: 600px) { .game-card { flex: 0 0 calc(50% - 8px); } }

.game-card:hover {
  transform: translateY(-4px);
}

.game-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background-color: var(--bg-panel);
}

.game-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #00E700;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.game-card__badge--exclusive {
  background-color: #B565FF;
  color: #fff;
}

.game-card__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}

.game-card:hover .game-card__overlay {
  opacity: 1;
}

.play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transform: scale(0.8);
  transition: transform 0.2s;
}

.game-card:hover .play-btn {
  transform: scale(1);
}

/* ---------- Promo Banner ---------- */
.promo-banner {
  margin: 40px 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #1D2133, #161A24);
  display: flex;
  min-height: 300px;
  border: 1px solid var(--border-color);
}

.promo-banner__content {
  flex: 1;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.promo-banner__title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.promo-banner__text {
  font-size: 20px;
  color: var(--color-heading);
  font-weight: 500;
  margin-bottom: 32px;
}

.promo-banner .btn--primary {
  align-self: flex-start;
  height: 48px;
  padding: 0 32px;
  font-size: 16px;
}

.promo-banner__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

@media (max-width: 768px) {
  .promo-banner {
    flex-direction: column;
  }
  .promo-banner__content {
    padding: 32px 24px;
    align-items: center;
    text-align: center;
  }
  .promo-banner .btn--primary {
    align-self: center;
  }
  .promo-banner__bg {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--bg-sidebar);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 24px;
  margin-top: 60px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-size: 28px;
  font-weight: 900;
  color: var(--color-heading);
  letter-spacing: 1px;
}

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

.footer-apps {
  display: flex;
  gap: 16px;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--border-radius);
  transition: all 0.2s;
}

.app-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.app-btn i {
  font-size: 24px;
  color: var(--color-heading);
}

.app-btn span {
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.2;
}

.app-btn span strong {
  display: block;
  font-size: 14px;
  color: var(--color-heading);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  transition: transform 0.2s;
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link--ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-link--tg { background-color: #0088cc; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--color-text);
}

.footer-col ul a:hover {
  color: var(--color-heading);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 24px;
}

.footer-badges {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0.5;
}

.footer-badges span {
  font-size: 24px;
  font-weight: 700;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  color: var(--color-heading);
  cursor: pointer;
}
