/* Extracted from: inc/main.php */
/* <style> block #1, lines 6-327 */

:root {
    --brand-primary: #153d1e;
    --brand-primary-rgb: 21, 61, 30;
    --accent: #1e622d;
    --tab-active-bg: #2f8444;
    --chip-active-bg: rgb(40 119 58);
    --top-search-layer-bg: #0e4f32;

    --accent-gold: #c9a227;
    --accent-gold-bright: #e8c547;
    --accent-gold-deep: #8b6914;

    --primary: var(--tab-active-bg);
    --secondary: var(--brand-primary);
    --primary-rgb: rgba(47, 132, 68, 0.9);
    --primary-rgb2: rgba(47, 132, 68, 0.5);
    --primary-rgb3: rgba(47, 132, 68, 0.3);
    --hover-color: var(--accent-gold-bright);

    --main-bg-deep: #020907;
    --body-bg: #050f0d;
    --darkBG: #101c17;
    --white-color: #e5e5e5;
    --black-color: #fafafa;
    --darkGray: #9ca3af;
    --lightGray: #162822;
    --textwhite: 229, 229, 229;
    --headerBG: #0d1814;
    --menuBG: #13221c;
    --menu-text: #e8e8e8;
    --sidebarBG: #0f1d18;
    --footer-bg: #081210;
    --mobileFootIcon: var(--accent-gold-bright);
    --login-button-bg: var(--tab-active-bg);
    --login-button-text: #ffffff;
    --btntText: #ffffff;
    --betSlipBG: #121f1b;
    --gameBox: #172923;
    --oddBox: var(--tab-active-bg);
    --oddBoxHover: #52aa68;
    --gameBorder: rgba(201, 162, 39, 0.28);
    --dropdown-text: #e5e5e5;
    --tabText: #e5e5e5;
    --link-color: #9fd4ae;
    --link-hover: var(--accent-gold-bright);
    --scrollbar-thumb: var(--tab-active-bg);
    --scrollbar-track: #101b17;
    --base-con: var(--tab-active-bg);
    --max-width: 1400px;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html, body {
    overflow-x: hidden !important;
    max-width: 100%;
  }

  body {
    margin: 0;
    padding: 0;
    /* Neon zümrüt ana sayfa zeminı — katmanlı ışık + koyu taban */
    background-color: var(--body-bg);
    background-image:
      radial-gradient(ellipse 140% 75% at 50% -22%, rgba(86, 255, 190, 0.28), transparent 58%),
      radial-gradient(ellipse 100% 60% at 98% 28%, rgba(52, 211, 153, 0.18), transparent 54%),
      radial-gradient(ellipse 100% 55% at -2% 78%, rgba(16, 185, 129, 0.14), transparent 52%),
      linear-gradient(180deg, #103828 0%, #0b251c 36%, #071812 68%, #030c09 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: sans-serif;
    color: var(--white-color);
  }

  .title-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 15px;
  }

  .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
  }

  .title h2 {
    font-size: 21px;
    margin: 0;
    color: var(--darkGray);
  }

  .title a {
    color: var(--darkGray);
    text-decoration: none;
    opacity: 0.8;
  }

  .title a:hover {
    color: var(--primary);
    opacity: 1;
  }

  .games-container {
    padding: 20px 0 40px;
    width: 100%;
  }

  .games-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 8px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }

  @media (max-width: 1200px) {
    .games-inner { grid-template-columns: repeat(4, 1fr); }
  }

  @media (max-width: 992px) {
    .games-inner { grid-template-columns: repeat(3, 1fr); }
  }

  @media (max-width: 768px) {
    .games-inner {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      padding: 0 10px;
    }
    .game-cta { grid-column: 1 / -1; }
  }

  @media (max-width: 480px) {
    .games-inner { padding: 0 6px; gap: 10px; }
  }

  /* ========== DÜZELTİLMİŞ KART YAPISI - BOŞLUK YOK ========== */
  .game-cta,
  .game-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
    cursor: pointer;
    border: 1px solid var(--gameBorder);
    display: block;
  }

  .game-cta {
    grid-column: span 2;
    grid-row: span 2;
  }

  /* RESİMLER - BOŞLUK KALMAYACAK ŞEKİLDE DÜZENLENDİ */
  .game-cta img,
  .game-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover; /* GERİ GETİRİLDİ - boşluk kalmaz */
    object-position: center;
  }

  /* game-cta içindeki resimler için */
  .game-cta img {
    aspect-ratio: 16 / 9;
  }

  /* game-item içindeki resimler için - tam oturması için */
  .game-item img {
    aspect-ratio: 1 / 1; /* 1:1 oranı - kare, hiç boşluk kalmaz */
  }

  /* live casino'daki farklı resimler için - esnek oran */
  .games-inner:last-of-type .game-item img {
    aspect-ratio: 4 / 3; /* live casino için 4:3 */
  }

  .game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-rgb);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    border-radius: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
  }

  .game-item:hover .game-overlay,
  .game-cta:hover .game-overlay {
    opacity: 1;
  }

  .game-like {
    text-align: right;
    font-size: 24px;
    padding: 10px 15px 0 0;
  }

  .game-like::before {
    content: '\002764';
    color: #fff;
    cursor: pointer;
  }

  .game-like:hover::before {
    color: var(--base-con);
  }

  .play-btn {
    background-color: var(--primary);
    border-radius: 4px;
    padding: 8px 16px;
    width: 100px;
    margin: 0 auto 15px auto;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    text-align: center;
  }

  .play-btn:hover {
    background-color: var(--hover-color);
  }

  .game-title {
    font-size: 12px;
    padding: 8px 12px;
    background-color: var(--menuBG);
    border-radius: 0 0 8px 8px;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .game-title p {
    margin: 0;
    color: #fff;
  }

  .game-title p:first-child {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-align: left;
  }

  .game-title p:last-child {
    width: 30px;
    position: relative;
    text-align: right;
  }

  .game-title p:last-child::after {
    content: '\002B50';
    position: absolute;
    right: 0;
    top: 0;
    color: #FFD700;
  }

  /* Banner alanı */
  .hm-row-bc {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(8, 1fr);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
  }

  @media (max-width: 1199px) { .hm-row-bc { grid-template-columns: repeat(6, 1fr); } }
  @media (max-width: 1023px) { .hm-row-bc { grid-template-columns: repeat(5, 1fr); } }
  @media (max-width: 768px) { .hm-row-bc { grid-template-columns: repeat(3, 1fr); padding: 0 10px; } }
  @media (max-width: 480px) { .hm-row-bc { grid-template-columns: repeat(4, 1fr); padding: 0 6px; } }

  .product-banner-info-bc {
    display: block;
    width: 100%;
    text-decoration: none;
  }

  .product-banner-img-bc {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
  }

  .product-banner-img-bc:hover {
    border-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 132, 68, 0.35);
  }
