/* Global UI/UX theme and small component improvements */

:root {
  --color-bg: #0b1020;
  --color-surface: #11162a;
  --color-surface-2: #0e1426;
  --color-text: #eaeef7;
  --color-text-muted: #b8c1d9;
  --color-border: rgba(255,255,255,0.08);
  --color-primary: #D4AF37;
  --color-primary-2: var(--color-primary); /* Tek ton altın: gradyan kaldırıldı */

  /* Legacy variable bridge for existing pages */
  --primary: var(--color-primary);
  --btntText: #000;
  --black-color: #000;
  --white-color: #fff;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-1: 0 6px 18px rgba(0,0,0,.25);
  --shadow-2: 0 10px 30px rgba(0,0,0,.35);

  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
}

/* Base */
html, body {
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

a { color: inherit; text-decoration: none; }
a:hover { filter: brightness(1.05); }

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: transform .15s ease, filter .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); filter: brightness(0.98); }
.btn-primary { background: var(--color-primary); color: #0b1020; }
.btn-secondary { background: var(--color-surface-2); }

 

/* Inputs */
input[type="text"], input[type="search"], select, .select, textarea {
  height: 34px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
}
select { appearance: none; }

/* Tabs (minimal) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { 
  padding: 6px 10px; 
  border-radius: 10px; 
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}
.tab.active { background: var(--color-primary); color: #0b1020; }

/* Cards */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.game-item {
  background: #000; /* siyah arkaplan */
  border: 2px solid var(--color-primary); /* altın sarısı çerçeve */
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  transition: transform .15s ease, filter .2s ease;
  overflow: hidden;
}
.game-item:hover { transform: translateY(-2px); filter: brightness(1.04); }
.game-item a.game-link { display: block; color: inherit; }
.game-item img { width: 100%; height: 120px; object-fit: cover; display: block; }
.game-item p { margin: 8px; font-size: var(--font-size-sm); color: var(--color-text); line-height: 1.3; }

/* Actions area (redefined above for modern look) */

/* Provider filter */
.provider-filter {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  padding: 6px 8px; border-radius: var(--radius-md);
}
.provider-filter .provider-select { height: 28px; padding: 4px 8px; font-size: var(--font-size-xs); }
.provider-filter .provider-label { font-size: var(--font-size-xs); color: var(--color-text-muted); }

/* Utility */
.muted { color: var(--color-text-muted); }
.hidden { display: none !important; }
/* Header - subtle glass effect */
.headBar { background: rgba(17,22,42,0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); }
.disclamer { background: rgba(212,175,55,0.12); color: var(--color-text); border: 1px solid var(--color-primary); border-radius: 10px; padding: 10px 12px; margin: 6px auto; max-width: 980px; box-shadow: var(--shadow-1); }
.disclamer .close-button { cursor: pointer; float: right; }

/* Section title */
.secTitle { display:flex; align-items:center; justify-content:space-between; gap:10px; margin: 14px 0; }
.secTitle h5 { margin:0; font-size: 18px; letter-spacing:.3px; color: var(--color-text); }
.secTitle .viewMore { color: var(--color-primary); font-size: 13px; }
.secTitle .viewMore i { margin-left:4px; }

/* Modal modern look (used in footer) */
.modal { display:none; position:fixed; inset:0; background: rgba(0,0,0,0.55); z-index: 9999; }
.modal-content { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: 14px; box-shadow: var(--shadow-2); width: min(720px, 92vw); margin: 6vh auto; overflow: hidden; }
.modal-header { display:flex; align-items:center; justify-content:space-between; padding: 12px 14px; border-bottom: 1px solid var(--color-border); }
.modal-body { padding: 14px; }
.modal-footer { display:flex; justify-content:flex-end; padding: 12px 14px; border-top: 1px solid var(--color-border); }
.modern-close-btn { border:none; background: transparent; color: var(--color-text); font-size: 20px; cursor:pointer; }
/* End */

/* Header minor refinements */
.headBar .userBtn, .headBar .depositBtn, .headBar .header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  gap: 6px;
}
.headBar .header-icon { color: var(--color-text-muted); }
.headBar .header-icon:hover { color: var(--color-text); }



/* Show-more button sizing */
.btn-show-more { padding: 12px 24px; border-radius: 6px; font-weight: 600; font-size: 14px; display: inline-block; cursor: pointer; }

/* === Modern UI additions === */
/* Section title (refined) */
.secTitle { display:flex; align-items:center; justify-content:space-between; gap:10px; margin: 16px 0; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); }
.secTitle h5 { margin:0; font-size: 19px; letter-spacing:.3px; color: var(--color-text); }
.secTitle .viewMore { color: var(--color-primary); font-size: 13px; font-weight: 600; }
.secTitle .viewMore i { margin-left:4px; }

/* Feature cards (homepage sections) */
.featureCardGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.featureCard { position: relative; border-radius: 14px; overflow: hidden; background: var(--color-surface-2); border: 1px solid var(--color-border); box-shadow: var(--shadow-1); transition: transform .18s ease, box-shadow .25s ease, filter .2s ease; min-height: 140px; }
.featureCard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); filter: brightness(1.03); }
.featureCard .bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.95); transition: filter .2s ease; }
.featureCard:hover .bg { filter: brightness(1.02); }
.featureCard .content { position: relative; z-index: 2; padding: 10px; }
.featureCard .badges { display: none !important; }

/* Game grid refinements */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; align-items: start; }
.game-item { transition: transform .18s ease, filter .2s ease, box-shadow .25s ease; }
.game-item:hover { transform: translateY(-3px); filter: brightness(1.05); box-shadow: var(--shadow-2); }

/* Livecasino search bar */
.livecasino-search { display:flex; align-items:center; gap:10px; flex-wrap: wrap; background: rgba(17,22,42,0.65); backdrop-filter: blur(8px); border: 1px solid var(--color-border); padding: 10px; border-radius: 12px; margin: 14px 0; box-shadow: var(--shadow-1); }
.livecasino-search input[type="text"] { flex: 1 1 300px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); }
.livecasino-search select { height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); }

/* Game-type tabs (pill style) */
.game-type-tabs { display:flex; flex-wrap: wrap; gap:8px; margin: 12px 0; }
.game-type-tab { display:inline-flex; align-items:center; gap:6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font-size: var(--font-size-sm); cursor: pointer; transition: transform .15s ease, filter .2s ease, background .2s ease; }
.game-type-tab:hover { transform: translateY(-1px); filter: brightness(1.06); }
.game-type-tab .count { background: rgba(212,175,55,0.18); color: var(--color-primary); padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.game-type-tab.active, .game-type-tab[aria-selected="true"] { background: var(--color-primary); color: #0b1020; }

/* Show-more button (modern) */
.btn-show-more { padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 14px; display: inline-block; cursor: pointer; border: none; background: linear-gradient(135deg, #D4AF37 0%, #e9c559 100%); color: #0b1020; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; }
.btn-show-more:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.35); filter: brightness(1.05); }
.btn-show-more:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* Placeholder color normalization */
::placeholder { color: var(--color-text-muted); opacity: 0.85; }

/* === Minimal side-by-side game action buttons === */
.game-actions { display:flex; gap:8px; align-items:center; justify-content:center; width:100%; margin-top:8px; }
.game-actions .btn-real, .game-actions .btn-demo {
  display: inline-flex; align-items:center; justify-content:center;
  height: 32px; padding: 0 10px; border-radius: 8px;
  font-size: var(--font-size-sm); font-weight: 600;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  flex: 1 1 0;
  transition: transform .12s ease, filter .18s ease, box-shadow .18s ease;
}
.game-actions .btn-real { background: var(--color-primary); color: #0b1020; border-color: rgba(212,175,55,.35); }
.game-actions .btn-demo { background: var(--color-surface); color: var(--color-text); }
.game-actions .btn-real:hover, .game-actions .btn-demo:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.game-actions .btn-real:active, .game-actions .btn-demo:active { transform: translateY(0); box-shadow: none; }
.game-actions .btn-real:focus, .game-actions .btn-demo:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }
@media (max-width: 420px) {
  .game-actions .btn-real, .game-actions .btn-demo { height: 30px; font-size: var(--font-size-xs); padding: 0 8px; }
}