/* ============================================
   Meritking - Main Stylesheet
   ============================================ */

/* === RESET & BASE === */
:root {
  --bg-primary: #0f1220;
  --bg-secondary: #151a2e;
  --bg-card: #1a2035;
  --bg-card-hover: #1e2540;
  --gold: #c9a84c;
  --gold-light: #e2c66d;
  --gold-dark: #a68a3a;
  --text-primary: #ffffff;
  --text-secondary: #b0b8cc;
  --text-muted: #7a839a;
  --border: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(201, 168, 76, 0.25);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.15);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER === */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 18, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-box {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--bg-primary);
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold);
}

.vip-badge {
  font-size: 0.65rem;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: super;
  font-weight: 700;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-item:hover, .nav-item.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.btn-header-login {
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.88rem;
}

.btn-header-login:hover {
  background: rgba(201, 168, 76, 0.1);
}

.btn-header-register {
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 0.88rem;
}

.btn-header-register:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 18, 32, 0.7) 0%,
    rgba(15, 18, 32, 0.85) 50%,
    rgba(15, 18, 32, 0.97) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-wrapper {
  text-align: center;
  padding: 60px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--gold-light);
  margin-bottom: 28px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.rainbow-text {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: 12px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.btn-primary-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(201, 168, 76, 0.35);
}

.btn-arrow {
  font-size: 1.2rem;
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 12px;
  transition: var(--transition);
}

.btn-secondary-hero:hover {
  background: rgba(201, 168, 76, 0.08);
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.feature-emoji {
  font-size: 1.3rem;
}

.active-players {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.active-players strong {
  color: var(--gold);
  font-size: 1.1rem;
}

/* === STATS === */
.stats {
  padding: 50px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-box {
  text-align: center;
  padding: 28px 16px;
}

.stat-emoji {
  font-size: 2rem;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 6px;
}

.stat-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === SECTION TITLES === */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title.light .white, .section-title .white {
  color: #fff;
}

.title-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}

.title-badge.white {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.section-title h2.white {
  color: #fff;
}

.section-title p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-title p.white {
  color: rgba(255, 255, 255, 0.75);
}

/* === WHY US === */
.why {
  padding: 90px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  overflow: hidden;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.why-number {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.why-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Card color accents */
.card-blue { border-top: 3px solid #4a90d9; }
.card-pink { border-top: 3px solid #d94a8a; }
.card-green { border-top: 3px solid #4ad97a; }
.card-orange { border-top: 3px solid #d9974a; }
.card-purple { border-top: 3px solid #8a4ad9; }
.card-cyan { border-top: 3px solid #4ad9d9; }

/* === GAMES === */
.games {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.games-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow);
}

.game-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.game-emoji-big {
  font-size: 2.4rem;
}

.game-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.game-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.game-highlights {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.highlight {
  text-align: center;
  flex: 1;
  padding: 12px 8px;
  background: rgba(201, 168, 76, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.highlight strong {
  display: block;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 2px;
}

.highlight span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.game-link {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.game-link:hover {
  border-bottom-color: var(--gold);
}

/* === BONUSES === */
.bonuses {
  padding: 90px 0;
}

.bonus-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.bonus-hero {
  background: linear-gradient(135deg, var(--bg-card), rgba(201, 168, 76, 0.08));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}

.bonus-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--gold);
  color: var(--bg-primary);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.bonus-percent {
  font-size: 4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
}

.bonus-hero h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.bonus-hero p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.bonus-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.spec-item {
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.spec-item span {
  color: var(--text-muted);
}

.spec-item strong {
  color: var(--gold);
  display: block;
  margin-top: 2px;
}

.btn-bonus-main {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  font-weight: 800;
  border-radius: 12px;
  transition: var(--transition);
}

.btn-bonus-main:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.bonus-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bonus-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.bonus-mini:hover {
  border-color: var(--border-gold);
}

.mini-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.mini-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.mini-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* === GUIDE === */
.guide {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}

.guide-card:hover {
  border-color: var(--border-gold);
}

.guide-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gold-light);
}

.guide-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* === ARTICLE SECTION (TXT Makale) === */
.article-section {
  padding: 70px 0;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.article-block {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

.article-block h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--gold);
}

.article-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-light);
}

.article-block p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* === AUTH === */
.auth {
  padding: 90px 0;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
}

.auth-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.small-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input {
  width: 100%;
  padding: 13px 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.input:focus {
  border-color: var(--gold);
}

.btn-form {
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-form:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* === FAQ === */
.faq {
  padding: 90px 0;
  background: var(--bg-secondary);
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq-block.active {
  border-color: var(--border-gold);
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-btn:hover {
  color: var(--gold);
}

.faq-icon {
  font-size: 1.4rem;
  color: var(--gold);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-block.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-content p {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* === CTA === */
.cta-section {
  padding: 80px 0;
}

.cta-wrapper {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--bg-card), rgba(201, 168, 76, 0.06));
  border: 1px solid var(--border-gold);
  border-radius: 20px;
}

.cta-wrapper h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-wrapper p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.btn-cta-big {
  display: inline-block;
  padding: 18px 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 14px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.btn-cta-big:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 45px rgba(201, 168, 76, 0.35);
}

/* === FOOTER === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 14px;
  line-height: 1.7;
}

.footer-license {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gold);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-column a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* === SCROLL UP === */
.scroll-up {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--bg-primary);
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  box-shadow: var(--shadow-gold);
}

.scroll-up.show {
  opacity: 1;
  visibility: visible;
}

.scroll-up:hover {
  transform: translateY(-3px);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .navbar { display: none; }
  .header-buttons { display: none; }
  .mobile-toggle { display: flex; }
  .navbar.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 18, 32, 0.97);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .navbar.open + .header-buttons {
    display: flex;
    position: absolute;
    top: calc(100% + 240px);
    left: 0;
    right: 0;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 18, 32, 0.97);
    border-bottom: 1px solid var(--border);
  }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .games-showcase { grid-template-columns: repeat(2, 1fr); }
  .bonus-layout { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .section-title h2 { font-size: 1.6rem; }
  .why-grid { grid-template-columns: 1fr; }
  .games-showcase { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .hero-features { flex-direction: column; align-items: center; gap: 12px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn-primary-hero, .btn-secondary-hero { width: 100%; justify-content: center; }
}
