*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #101019;
  --text: #fffdf0;
  --heading: #c0c7db;
  --muted: #979ba6;
  --line: #2f3645;
  --panel: #0b0b11;
  --nav-active: #2a3145;
  --channel: #0688ca;
  --card-art: url("https://vipkingler.com/wp-content/uploads/2025/09/blob.png");
  --sidebar: 230px;
  --header: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Üst şerit: Telegram kanalları ───────────────────────────────────────── */
.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 35px 0 14px;
  background: var(--bg);
}

.channels {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channels a {
  display: block;
  padding: 12px 10px;
  border-radius: 8px;
  background: var(--channel);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.channels a:hover {
  background: #0577b1;
}

.channels li:first-child a {
  animation: pulse 1.5s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.5);
  }
  80% {
    box-shadow: 0 0 0 14px rgba(0, 136, 204, 0);
  }
}

/* ── Sol menü ────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  width: var(--sidebar);
  padding: 80px 0 0 14px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.sidebar .brand {
  display: block;
  width: 130px;
  margin: 0 0 34px 44px;
}

.sidebar ul {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar li {
  margin-bottom: 10px;
  border-radius: 8px;
  font-family: "Saira", sans-serif;
  font-size: 16px;
  transition: background 0.2s;
}

.sidebar li > a {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: #fff;
}

.sidebar li:hover,
.sidebar li.active {
  background: var(--nav-active);
}

.sidebar li svg {
  width: 30px;
  height: 30px;
  margin-right: 12px;
  flex-shrink: 0;
}

.sidebar li.contact {
  margin-top: auto;
  margin-bottom: 28px;
}

/* ── İçerik ──────────────────────────────────────────────────────────────── */
.page {
  margin-left: var(--sidebar);
  padding: calc(var(--header) + 10px) 25px 60px 10px;
}

.marquee {
  height: 75px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track img {
  width: 218px;
  height: 73px;
  margin: 0 50px;
  object-fit: contain;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.leader {
  display: block;
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
  line-height: 0;
}

.leader img {
  width: 100%;
  height: auto;
}

.stage {
  display: flex;
  align-items: flex-start;
  gap: 1px;
  margin: 20px -10px 0 -9px;
}

.sky {
  position: sticky;
  top: calc(var(--header) + 10px);
  flex: 0 0 94px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  line-height: 0;
}

.sky img {
  width: 100%;
  height: 561px;
  object-fit: cover;
}

.center {
  flex: 1;
  min-width: 0;
  padding: 30px 10px 0;
}

#q {
  width: 100%;
  height: 50px;
  padding: 5px 15px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 18px;
  outline: none;
}

#q::placeholder {
  color: var(--muted);
}

.block {
  padding-top: 30px;
  scroll-margin-top: calc(var(--header) + 20px);
}

.block h2 {
  margin: 0 0 5px;
  font-family: "Saira", sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--heading);
  text-align: center;
}

#ana-sponsorlar {
  margin-top: 130px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc(25% - 10px);
  max-width: 226px;
  height: 125px;
  margin: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-art) center / cover no-repeat;
}

.card img {
  position: relative;
  width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.card .logo-text {
  position: relative;
  font-family: "Saira", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #3b4dd2;
  box-shadow: 0 0 12px rgba(59, 77, 210, 0.8);
}

#ana-grid .card {
  max-width: 231px;
}

.card.hidden {
  display: none;
}

/* VIP kartlarında sırayla dolaşan yeşil parlama */
#vip-grid .card {
  animation: cardCycle 10s linear infinite;
  animation-delay: calc(var(--i, 0) * 1s);
}

@keyframes cardCycle {
  0%,
  25%,
  50%,
  100% {
    border-color: var(--line);
    box-shadow: 0 0 0 rgba(0, 255, 0, 0);
  }
  6.25% {
    border-color: rgba(0, 255, 0, 1);
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.8);
  }
}

.no-result {
  width: 100%;
  margin: 10px 0 0;
  font-size: 18px;
  color: #fff;
  text-align: center;
}

/* ── Telegram grupları ve duyuru kanalları ──────────────────────────────── */
.tg {
  margin-top: 90px;
}

.tg .tg-list + h2 {
  margin-top: 44px;
}

.tg-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 960px;
  margin: 14px auto 0;
}

.tg-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  transition: 0.2s;
}

.tg-list a::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231b92d1' d='M21.9 4.3 18.6 19.9c-.2 1.1-.9 1.4-1.8.9l-5-3.7-2.4 2.3c-.3.3-.5.5-1 .5l.4-5.1 9.3-8.4c.4-.4-.1-.6-.6-.2L6 13.4l-4.9-1.5c-1.1-.3-1.1-1.1.2-1.6L20.5 2.9c.9-.3 1.7.2 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tg-list a:hover {
  border-color: var(--channel);
  box-shadow: 0 0 12px rgba(6, 136, 202, 0.6);
  transform: translateY(-2px);
}

/* ── Tanıtım metni ───────────────────────────────────────────────────────── */
.about {
  max-width: 940px;
  margin: 90px auto 0;
  padding: 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.about h1 {
  margin: 0 0 12px;
  font-family: "Saira", sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--heading);
}

.about h2 {
  margin: 28px 0 8px;
  font-family: "Saira", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--heading);
}

.about h3 {
  margin: 18px 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.about p {
  margin: 0 0 12px;
}

.about ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.about a {
  color: #7cc7f0;
}

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 70px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.foot img {
  width: 136px;
}

.mobile-bar {
  display: none;
}

/* ── Tablet ve telefon ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sky {
    display: none;
  }

  .stage {
    margin-left: 0;
  }
}

@media (max-width: 880px) {
  :root {
    --sidebar: 0px;
  }

  .top,
  .sidebar ul {
    display: none;
  }

  .sidebar {
    position: static;
    width: auto;
    padding: 12px 0 0;
    align-items: center;
  }

  .sidebar .brand {
    margin: 0;
  }

  .page {
    padding: 12px 10px 110px;
  }

  .marquee {
    height: 36px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    margin: 0 -10px;
  }

  .marquee-track img {
    width: 100px;
    height: 30px;
    margin: 0 30px;
  }

  .leader {
    margin-top: 26px;
  }

  .leader img {
    height: 58px;
    object-fit: cover;
    object-position: left center;
  }

  .center {
    padding: 22px 0 0;
  }

  .block {
    padding-top: 34px;
  }

  #ana-sponsorlar {
    margin-top: 20px;
  }

  .stage {
    margin: 0;
  }

  .block h2 {
    font-size: 22px;
  }

  .card {
    flex-basis: calc(25% - 6px);
    height: 47px;
    margin: 3px;
  }

  .tg {
    margin-top: 50px;
  }

  .tg-list {
    gap: 8px;
  }

  .tg-list a {
    padding: 8px 10px;
    font-size: 12px;
  }

  .about {
    margin-top: 60px;
  }

  .about h1 {
    font-size: 22px;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    height: 70px;
    padding: 0 6px;
    background: var(--bg);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45);
  }

  .mobile-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 0 4px;
    border-left: 1px solid var(--line);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
  }

  .mobile-bar a:first-child {
    border-left: 0;
  }
}
