/* EVENTS */
.events{
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 20px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-color);
}

.events-tabs {
    display: inline-flex;
    gap: 10px;
    background: var(--block-bg);
    border: 1px solid var(--color-bmx-shadow3);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 15px;
    max-width: 210px;
}

.events-tabs > button[role="tab"] {
    border: 0;
    background: transparent;
    color: var(--text-color);
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
}

.events-tabs > button[aria-selected="true"]{
  background: var(--color-bmx-darker);
  color: var(--text-color-negative);
}

.events h5{ font-size: 40px; font-weight: 700; margin: 0 0 5px; }
.events h1{ font-size: 36px; font-weight: 700; margin: 0 0 36px; }
.events h2{ font-size: 32px; font-weight: 700; margin: 0 0 22px; }
.events h3{ font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.events h4{ font-size: 16px; font-weight: 550; margin: 5px 0 5px; }
.events p{ margin: 0; opacity: .9; }

/* ===================== HERO / BLOCK HEADER (A:3fr, B:1fr) ===================== */
.block-header{
  display: grid;
  grid-template-columns: 3fr 1fr;   /* A: title+lead, B: stats */
  grid-auto-rows: min-content;
  column-gap: 16px;
  row-gap: 12px;
  margin-bottom: 40px;
}
.block-header .stats{
  grid-column: 2;        /* sağ sütun */
  grid-row: 1 / span 2;  /* iki satırı kapla */
  justify-self: end;     /* yatayda sağa */
  align-self: center;    /* dikeyde ortaya */
  text-align: right;
}

/* chip */
img.chip-icon{ height: 32px; }
.entries-chip{
  display:flex; align-items:center; gap:10px;
  background: var(--block-bg);
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid var(--color-bmx-shadow3);
}
.chip-label{ font-size:12px; opacity:.85; }
.chip-value{ font-size:18px; font-weight:800; }

/* ===================== CARD LIST (giveaway + airdrop) ===================== */
.g-card, .a-card{
  display:grid;
  grid-template-columns: 1.1fr .9fr;  /* sol içerik + sağ panel */
  gap:16px;
  background: var(--block-bg);
  border-radius:16px;
  padding:18px;
  margin-bottom:10px;
}
.g-card:hover, .a-card:hover{ box-shadow: 0 0 24px var(--color-bmx-shadow) }

.g-left, .a-left{ display:flex; gap:14px; align-items:center; }
.g-card .coin, .a-card .coin{ width:56px; height:56px; border-radius:50%; }
.g-badges, .a-badges{ display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; }
.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:4px 8px; border-radius:999px; font-size:12px; font-weight:700;
  background: var(--block-bg); border:1px solid var(--color-bmx-shadow3);
}
.badge .mini-ico{ width:14px; height:14px; }
.badge--period{ letter-spacing:.3px; }

/* sağ panel */
.g-right, .a-right{
  display:grid; grid-template-columns:1fr; grid-auto-rows:min-content;
  row-gap:12px; justify-items:end; align-items:center; text-align:right;
}

/* sayaç */
.g-cd-timer, .a-cd-timer{
  background: var(--block-bg); border:1px solid var(--color-bmx-shadow3);
  border-radius:10px; padding:8px 10px; font-weight:700;
  display:flex; gap:10px; justify-content:center; min-width:180px;
}
.g-cd-timer [data-d]::after, .a-cd-timer [data-d]::after { content: "d"; }
.g-cd-timer [data-h]::after, .a-cd-timer [data-h]::after { content: "h"; }
.g-cd-timer [data-m]::after, .a-cd-timer [data-m]::after { content: "m"; }
.g-cd-timer [data-s]::after, .a-cd-timer [data-s]::after { content: "s"; }

/* qty (opsiyonel — airdrop’ta olmayabilir) */
.g-qty, .a-qty{
  display:inline-flex; align-items:center;
  background: var(--block-bg);
  border-radius:10px; padding:4px;
  border:1px solid var(--color-bmx-shadow3);
  max-width: 100px;
}
.g-ticket-step, .a-ticket-step{
  width:28px; height:28px; border-radius:8px; border:0; cursor:pointer;
  background:transparent; color:var(--text-color); font-weight:900; font-size:16px;
}
.g-qty .qty, .a-qty .qty{
  width:54px; height:28px; border:0; background:transparent; color:var(--text-color);
  text-align:center; font-weight:700;
}
/* input oklarını gizle */
.g-qty .qty::-webkit-outer-spin-button,
.g-qty .qty::-webkit-inner-spin-button{
  -webkit-appearance:none; margin:0;
}
.g-qty .qty, .a-qty .qty{
  -moz-appearance:textfield; appearance:textfield;
}
.g-qty .qty:focus, .a-qty .qty:focus{ outline:none; }

/* stake & action */
.stake-line{ opacity:.9; font-size:13px; justify-self:end; }
.btn-enter{
  display:inline-flex; align-items:center; justify-content:center;
  height:44px; padding:0 18px; border-radius:10px;
  font-weight:700; color:var(--text-color-negative);
  background:var(--color-bmx-darker);
  text-decoration:none; transition: transform .12s ease, filter .12s ease;
  justify-self:end;
}
.btn-enter:hover{ filter:brightness(1.05); }
.btn-enter:active{ transform: translateY(1px); }
.btn-enter[disabled]{ opacity:.6; cursor:not-allowed; }

/* ===================== RULES / FAQ ===================== */
section.rules{
  background: var(--bg-color);
  border-radius: 16px;
  padding: 18px 20px;
  display:flex; flex-direction:column; gap:10px;
  margin-top: 60px;
}
.rules .rules-title{ font-size:28px; font-weight:700; margin:0 0 12px; }

.give-item{
  border-radius:10px;
  background: var(--block-bg);
}
.give-q{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; background:transparent; color:inherit; border:0;
  padding:12px 14px; cursor:pointer;
}
.give-caret{
  width:24px; height:24px;
  transition: transform .25s ease, filter .18s ease;
}
.give-item.is-open .give-caret,
.give-q[aria-expanded="true"] .give-caret{
  transform: rotate(180deg);
  filter: var(--filter-bmx-darker);
}
/* accordion body (height animasyonu JS kontrolünde) */
.give-a{
  margin-top: 0; padding-top: 0;
  height: 0; overflow: hidden; opacity: 0;
  transition: height .28s ease, opacity .28s ease, padding .28s ease, margin .28s ease;
  will-change: height, opacity;
}
.give-item.is-open .give-a{
  opacity: 1; margin: 0 20px 20px; /* height auto'ya JS geçiyor */
}

/* utility */
.hidden{ display:none; }

/*Tablet*/
@media (max-width: 1279px) and (min-width: 621px) {

  .events { padding-top: 84px; }

  .events-tabs { width: auto; justify-content: center; }

  .block-header .stats{
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: center;
    text-align: right;
  }


  .g-card, .a-card { grid-template-columns: 1.1fr .9fr; }
  .g-right, .a-right { justify-items: end; text-align: right; }
  .stake-line, .btn-enter { justify-self: end; }
}

/* ===== Mobile: ≤512 px ===== */
@media (max-width: 620px) {

.events h1, .events h2, .events h5{
  text-align: center;
}

  .events { padding-top: 84px; }

  /* tabs: mobilde tam genişlik */
  .events-tabs { width: 100%; justify-content: center;  margin-inline: auto; }

  /* header tek kolona düşsün */
  .block-header { grid-template-columns: 1fr; }
  
  .block-header p.lead {
    text-align: center;
}
  
  .block-header .stats{
    grid-column: 1; grid-row: auto;
    justify-self: start; text-align: left; margin-top: 8px;
    margin-inline: auto;
  }

  /* iki dikey kolon */
  .g-card, .a-card{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "right";
    row-gap: 12px;
  }

 .g-left, .a-left {
    grid-area: left;
    justify-self: center;
    text-align: center;
    margin: 0px 0px 10px;
    padding: 2px;
}

  /* ALT: right (ortalı) */
  .g-right, .a-right{
    grid-area: right;
    justify-self: center;
    justify-items: center;
    text-align: center;
  }

  /* küçük iyileştirmeler */
  .stake-line, .btn-enter{ justify-self: center; }

  section.rules{
    margin-bottom: 30px;
  }
}
