/* Sizdengelenler.css - updated: make mobile card borders uniformly thin on all sides
   and support per-table mobile labels via CSS class overrides (no JS required)
*/

/* Page container tweak */
.page-content{ padding-top: 18px; padding-bottom: 60px; }

/* --- GLOBAL SPACING / ACCENT --- */
:root{
  --incoming-gap: 36px; /* eşit boşluk (üst, aralar, alt) */
  --incoming-accent: #f4b400; /* divider / button yellow (değiştirilebilir) */
  --incoming-accent-2: #ffb63d; /* gradient ikinci renk */
}

/* incoming-section / block */
.incoming-block{
  margin: var(--incoming-gap) 0;
}
.incoming-block--spaced{ margin-top: var(--incoming-gap); }

/* Container / header row */
.incoming-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  padding: 10px 6px;
}
.incoming-title h2{
  margin:0;
  font-size:20px;
  font-weight:800;
  color: var(--text);
}
.incoming-title .muted{
  margin:6px 0 0;
  color: var(--muted-text);
  font-size:13px;
  opacity: 0.95;
}

/* action button */
.incoming-action .btn{
  background: linear-gradient(180deg,var(--incoming-accent),var(--incoming-accent-2));
  color:#111;
  padding:10px 16px;
  border-radius:10px;
  font-weight:800;
  box-shadow: 0 6px 20px rgba(245,160,45,0.12);
}

/* Table wrapper */
.incoming-table-wrap{
  background: rgba(8,8,10,0.35);
  border-radius:8px;
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  overflow:hidden;
}

/* Table: ensure no odd cell-spacing artefacts */
.incoming-table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
  font-family: var(--font-family, "Poppins", system-ui, sans-serif);
}

/* Header row */
.incoming-table thead tr{
  background: #2f2314;
  color: #f2b63d;
  font-weight:700;
}
.incoming-table thead th{
  padding:14px 18px;
  text-align:left;
  font-size:14px;
  vertical-align:middle;
}

/* Table body cells */
.incoming-table tbody tr{ background: transparent; transition: background .12s; }
.incoming-table tbody tr td{
  padding: 18px;
  vertical-align: middle;
  font-size:15px;
  color: var(--text);
  background: transparent;
}

/* spacing and alternating rows */
.incoming-table tbody tr + tr{ border-top: 8px solid transparent; }
.incoming-table tbody tr:nth-child(even){ background: rgba(255,255,255,0.03); }
.incoming-table tbody tr:nth-child(odd){ background: rgba(0,0,0,0); }
.incoming-table tbody tr.alt td{ background: transparent !important; }

/* columns */
.col-user { width: 26%; }
.col-game { width: 34%; }
.col-bet, .col-win, .col-date { width: 10%; text-align: right; }
.col-watch { width: 8%; text-align:center; }

/* user cell */
.user-cell{ display:flex; align-items:center; gap:12px; }
.u-avatar{ width:40px; height:40px; border-radius:50%; object-fit:cover; display:inline-block; border:2px solid rgba(255,255,255,0.04); }
.u-name{ font-weight:800; color: #fff; }

/* watch button */
.watch-btn{
  background: linear-gradient(180deg,var(--incoming-accent),var(--incoming-accent-2));
  border: none;
  color:#111;
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
  box-shadow: 0 6px 16px rgba(245,160,45,0.12);
}

/* ---------------- RESPONSIVE ADJUSTMENTS ---------------- */
/* Medium */
@media (max-width:992px){
  .incoming-title h2{ font-size:18px; }
  .incoming-table tbody tr td{ padding:14px; font-size:14px; }
  .col-game { width: 40%; }
  .col-user { width: 30%; }
  .col-bet, .col-win, .col-date { width: auto; font-size:14px; text-align:right; }
}

/* Small screens: card mode with THIN uniform 1px frame around each card */
@media (max-width:575px){
  /* hide header */
  .incoming-table thead{ display: none; }

  /* card style for rows */
  .incoming-table tbody tr{
    display: block;
    margin-bottom: 12px;
    padding: 12px; /* space inside the framed card */
    border-radius: 10px;
    background: rgba(8,8,10,0.28);
    box-shadow: 0 6px 16px rgba(0,0,0,0.30);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
  }

  /* pseudo-element draws the thin gradient frame on all four sides uniformly */
  .incoming-table tbody tr::before{
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 10px;
    padding: 1px;
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    box-sizing: border-box;
    background:
      linear-gradient(90deg, var(--incoming-accent), var(--incoming-accent-2));
  }

  .incoming-table tbody tr > *{ position: relative; z-index: 1; }

  .incoming-table tbody tr td{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    font-size: 14px;
    border: none;
  }

  /* default mobile labels for tables without special class (upper table) */
  .incoming-table:not(.incoming-table--alt) tbody tr td:nth-child(1)::before{ content: "Üye"; }
  .incoming-table:not(.incoming-table--alt) tbody tr td:nth-child(2)::before{ content: "Oyun Adı"; }
  .incoming-table:not(.incoming-table--alt) tbody tr td:nth-child(3)::before{ content: "Bet"; }
  .incoming_table:not(.incoming-table--alt) tbody tr td:nth-child(4)::before{ content: "Kazanç"; }
  .incoming-table:not(.incoming-table--alt) tbody tr td:nth-child(5)::before{ content: "Tarih"; }
  .incoming-table:not(.incoming-table--alt) tbody tr td:nth-child(6)::before{ content: "İzle"; }

  /* ----- PER-TABLE OVERRIDES: alt table (use this to set different mobile labels) ----- */
  .incoming-table.incoming-table--alt tbody tr td:nth-child(1)::before{ content: "ÜYE İSMİ"; }
  .incoming-table.incoming-table--alt tbody tr td:nth-child(2)::before{ content: "SİTE ADI"; }
  .incoming-table.incoming-table--alt tbody tr td:nth-child(3)::before{ content: "ÇEKİM HIZI"; }
  .incoming-table.incoming-table--alt tbody tr td:nth-child(4)::before{ content: "KAZANÇ"; }
  .incoming-table.incoming-table--alt tbody tr td:nth-child(5)::before{ content: "TARİH"; }
  .incoming-table.incoming-table--alt tbody tr td:nth-child(6)::before{ content: "RESİM"; }

  .incoming-table tbody tr td.user-cell{ padding: 6px 10px; }
  .incoming-table tbody tr td.user-cell::before{ min-width: 70px; }
  .u-avatar{ width:36px; height:36px; }
  .watch-btn{ padding:8px 12px; border-radius:8px; font-size:14px; }
  .game-cell{ white-space: normal; text-align: left; padding-left: 6px; }
  .incoming-action .btn{ padding:8px 10px; font-size:13px; }

  /* Mobile: nudge header logo to the right by 35px (updated per request) */
  .site-header .logo {
    transform: translateX(35px) !important;
    display: inline-block !important;
  }
  .site-header .logo img {
    display: block !important;
    transform: translateX(0) !important;
  }

  /* keep uniform card background */
  .incoming-table tbody tr:nth-child(even),
  .incoming-table tbody tr:nth-child(odd){
    background: rgba(8,8,10,0.28);
  }
}

/* ---------------- WATCH MODAL ---------------- */
.watch-modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.watch-modal.is-open{ display: flex; }
.watch-modal__overlay{ position: absolute; inset: 0; background: rgba(2,4,20,0.65); backdrop-filter: blur(2px); }
.watch-modal__dialog{
  position: relative;
  width: min(920px, 92%);
  max-height: 86vh;
  background: linear-gradient(180deg, rgba(4,8,16,0.98), rgba(6,10,18,0.98));
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.6);
  padding: 18px;
  z-index: 10000;
  overflow: auto;
}
.watch-modal__close{ position: absolute; top: 12px; right: 12px; background: transparent; border: none; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.watch-modal__content{ padding-top: 6px; text-align: center; }

/* Snowflake style (kept for parity with Sponsorlar) */
.sg-snow{ position: fixed; top: -40px; width: 12px; height: 12px; background: radial-gradient(circle at 50% 45%, #fff 0 30%, rgba(255,255,255,0.05) 70%, transparent 71%); border-radius:50%; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)); pointer-events:none; animation: sg-fall linear infinite; z-index: 45; }
@keyframes sg-fall{ 0% { transform: translateY(-20vh) translateX(0); opacity: 0; } 10%{ opacity: 0.9; } 100% { transform: translateY(120vh) translateX(40px); opacity: 0.6; } }