/* --- MODERN VARYASYON (KOMPAKT) --- */
body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(120deg, #f6f8fc 0%, #e8f0fe 100%);
  color: #27324b;
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.container {
  width: 92%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 1.2rem 0 1rem 0;
  box-sizing: border-box;
}

/* --- Header & Navigation (Desktop) --- */
header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(90deg, #4e6ef6 60%, #79e2ff 100%);
  box-shadow: 0 4px 24px rgba(78,110,246,.08);
  padding: 0;
  transition: background .18s;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.1rem !important;
  border-radius: 0 0 1.2rem 1.2rem;
  min-height: 54px;
  box-sizing: border-box;
}
.site-title a {
  color: #fff;
  font-size: 1.28rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-title a:hover { color: #ffe672; }
.nav-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* --- Desktop Menü --- */
.desktop-nav ul { display: flex; gap: 0.7rem; list-style: none; margin: 0; padding: 0;}
.desktop-nav ul li { position: relative;}
.desktop-nav ul li a {
  font-size: 1.03rem; font-weight: 600; color: #f3fcff !important;
  padding: 0.14rem 0.72rem; border-radius: 6px;
  transition: background .14s, color .14s;
  display: block; text-decoration: none;
}
.desktop-nav ul li a:hover,
.desktop-nav ul li a:focus { color: #ffe672 !important; background: #2747d6;}
.desktop-nav ul li ul {
  display: none; position: absolute; left: 0; top: 100%; min-width: 180px;
  background: #fff; box-shadow: 0 8px 28px rgba(78,110,246,0.15);
  border-radius: 0 0 0.9rem 0.9rem; padding: 0.45rem 0.2rem; z-index: 99;
}
.desktop-nav ul li:hover > ul,
.desktop-nav ul li:focus-within > ul { display: block;}
.desktop-nav ul li ul li a {
  color: #2d55b4 !important; background: none; border-radius: 5px;
  font-size: 0.99rem; font-weight: 500; padding: 0.36rem 0.8rem;
}
.desktop-nav ul li ul li a:hover,
.desktop-nav ul li ul li a:focus { background: #e8f0fe; color: #7238c4 !important;}

/* --- Giriş Yap Butonu (Desktop) --- */
.login-button {
  background: #4e6ef6;
  color: #fff !important;
  padding: 0.28rem 0.7rem;
  border-radius: 0.7rem;
  font-weight: 600;
  font-size: .93rem;
  margin-left: 0.9rem;
  border: none;
  transition: background .18s, box-shadow .14s;
  box-shadow: 0 2px 7px rgba(78,110,246,0.12);
}
.login-button:hover, .login-button:focus {
  background: #2d55b4;
  color: #fff;
  box-shadow: 0 3px 13px rgba(78,110,246,0.15);
}

/* --- HERO (Banner) --- */
.hero {
  background: linear-gradient(90deg, #e0eafc 60%, #f8e3fc 100%);
  padding: 1.1rem 0 0.8rem 0 !important;
  border-radius: 1.1rem;
  width: 100vw !important;
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  text-align: center !important;
  box-shadow: 0 6px 20px rgba(140,180,255,0.09);
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-size: 1.5rem !important;
  font-weight: 800;
  color: #4e6ef6;
  margin-bottom: 0.22rem;
  text-shadow: 0 1px 4px rgba(78,110,246,.06);
  letter-spacing: -0.01em;
}
.hero p {
  font-size: .96rem !important;
  margin: 0;
  color: #6b2dc1;
  font-weight: 500;
}

/* --- Bölüm Kutuları --- */
#intro, #detail, #affiliate, #faq, #related, #previous {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 18px rgba(60,110,180,0.08);
  max-width: 1000px;
  margin: 1.2rem auto 1.2rem auto !important;
  padding: 1.2rem 1.4rem;
  position: relative;
}
#affiliate {
  background: linear-gradient(120deg, #ffffff 70%, #eaf5fb 100%);
}
.section-title {
  color: #2d55b4;
  margin-bottom: 0.85rem;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(60,110,180,.04);
}

/* --- Kartlar --- */
#affiliate .affiliate-cards {
  display: flex; flex-direction: column; gap: 1.1rem;
  align-items: center; width: 100%; margin: 0 auto;
}
#affiliate .card {
  width: 100%; max-width: 480px;
  background: linear-gradient(120deg, #fff 85%, #f4e6ff 100%);
  border-radius: 0.8rem; box-shadow: 0 2px 7px rgba(120,90,200,0.08);
  overflow: hidden; margin: 0 auto; transition: transform .12s, box-shadow .12s;
  border: none; padding: 0; position: relative;
  display: flex; flex-direction: column;
}
#affiliate .card:hover {
  transform: scale(1.01) translateY(-2px);
  box-shadow: 0 3px 9px rgba(120,90,200,0.11);
}
#affiliate .card img {
  display: block; width: 100%; height: 110px; max-height: 120px;
  object-fit: contain; background: #f3efff; border-bottom: 1px solid #e5dbfa;
  margin: 0; padding: 0.17rem 0;
}
#affiliate .card-content {
  display: flex; flex-direction: row; align-items: center;
  justify-content: space-between; padding: 0.37rem 0.6rem 0.37rem 0.6rem; min-height: 48px;
}
#affiliate .card-title {
  font-size: 0.84rem; font-weight: 700; color: #7238c4;
  margin-bottom: 0; letter-spacing: -0.01em; flex-shrink: 0;
}
#affiliate .card-desc {
  font-size: 0.73rem; color: #4e6ef6; margin-bottom: 0; line-height: 1.2;
  margin-left: 0.44rem; flex: 1;
}
#affiliate .card .btn-main {
  background: linear-gradient(90deg, #fa61ac, #57d3ff 80%);
  color: #fff; border-radius: 0.7rem; padding: 0.33rem 0.77rem;
  font-size: 0.77rem; border: none; font-weight: 700; margin-left: 0.6rem;
  box-shadow: 0 1px 4px rgba(120,60,200,.07);
  transition: background .13s, box-shadow .10s, transform .09s;
}
#affiliate .card .btn-main:hover {
  background: linear-gradient(90deg, #57d3ff, #fa61ac 80%);
  box-shadow: 0 2px 7px rgba(120,60,200,.10); transform: scale(1.04);
}

/* --- SSS ve detaylı açıklama kartları --- */
#faq .faq-item, #detail .detail-item {
  background: linear-gradient(90deg, #f8e3fc 0%, #e0eafc 100%);
  border-radius: 0.7rem; margin-bottom: 1.1rem;
  padding: 0.8rem 0.95rem 0.8rem 1.1rem; box-shadow: 0 1px 4px rgba(60,110,180,0.06);
}
#faq .faq-item h3 { font-size: .97rem; color: #ae4cf6; font-weight: 600;}
#faq .faq-item p { font-size: .91rem; color: #2d55b4; }

/* --- Collapsible Details --- */
details {
  margin-bottom: 0.7rem; border: 1px solid #e2dbff; border-radius: 0.8rem;
  padding: 0.9rem; background: #f4f6fc;
}
summary { cursor: pointer; font-weight: 700; color: #7238c4; }

/* --- Footer --- */
footer {
  margin-top: 2.2rem;
  background: linear-gradient(90deg, #4e6ef6 80%, #79e2ff 100%);
  padding: 1.1rem 0; text-align: center; color: #fff;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -2px 9px rgba(78,110,246,.07);
  font-size: .99rem;
}

/* --- Mobilde NAV & MENÜ & HEADER düzeni --- */
@media (max-width: 900px) {
  header .container {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0.7rem 0.6rem 0.4rem 0.6rem !important;
    min-height: unset !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
  .site-title {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 0.18rem !important;
    margin-top: 0 !important;
    text-align: center !important;
    font-size: 1.17rem !important;
    order: 1 !important;
  }
  .nav-wrapper {
    order: 2 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.30rem !important;
    margin: 0.05rem 0 0.28rem 0 !important;
    max-width: 260px !important;
    align-self: center !important;
  }
  .mobile-nav, .login-button {
    flex: 1 1 0 !important;
    min-width: 68px !important;
    max-width: 106px !important;
    min-height: 32px !important;
    padding: 0.06rem 0.18rem !important;
    font-size: 0.96rem !important;
    background: #fff !important;
    color: #7b3bd1 !important;
    font-weight: 700 !important;
    border: 2px solid #c7baf7 !important;
    border-radius: 0.7rem !important;
    box-shadow: 0 1px 5px #b7c6e51a !important;
    outline: none !important;
    cursor: pointer !important;
    text-align: center !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .15s, color .15s, border .13s;
  }
  .login-button:hover, .mobile-nav summary:hover,
  .login-button:focus, .mobile-nav summary:focus {
    background: #f4f6ff !important;
    color: #4e6ef6 !important;
    border-color: #a697e7 !important;
  }
  .desktop-nav { display: none !important; }
  .mobile-nav { display: block !important; position: relative !important; }
  .mobile-nav summary {
    font-size: 0.96rem !important;
    min-width: 68px !important;
    max-width: 106px !important;
    min-height: 32px !important;
    padding: 0.06rem 0.18rem !important;
  }
  .mobile-nav ul {
    position: absolute !important;
    left: 0; right: 0; top: 100%;
    margin: 0 auto !important;
    min-width: 150px;
    max-width: 90vw;
    z-index: 99999;
    background: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 7px 21px rgba(78,110,246,0.10);
    padding: 0.24rem 0;
    list-style: none !important;
    box-sizing: border-box;
  }
  .mobile-nav ul li a {
    display: block;
    color: #3a46b4 !important;
    background: none;
    border-radius: 7px;
    padding: 0.22rem 0.53rem;
    margin: 0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    box-shadow: none;
    transition: background .13s, color .13s;
  }
  .mobile-nav ul li a:hover, .mobile-nav ul li a:focus {
    background: #f2f8ff;
    color: #7b3bd1 !important;
  }
  .mobile-nav ul, .mobile-nav ul ul, .mobile-nav ul li, .mobile-nav ul li ul, .mobile-nav ul li ul li {
    list-style: none !important; list-style-type: none !important;
    margin-left: 0 !important; padding-left: 0 !important;
  }
}

/* --- Desktopta Mobil Menü Tamamen Gizli --- */
@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}

/* --- Extra küçük ekran ayarı --- */
@media (max-width: 600px) {
  .container {
    padding: 0.6rem 0 0.25rem 0;
  }
  #intro, #detail, #affiliate, #faq, #related, #previous {
    padding: 0.6rem 0.4rem 0.6rem 0.4rem;
  }
  .hero {
    padding: 0.7rem 0 0.6rem 0 !important;
    border-radius: 0.7rem;
  }
}

/* --- Scrollbar (daha modern görünüm için) --- */
::-webkit-scrollbar { width: 8px; background: #f4f6fc;}
::-webkit-scrollbar-thumb { background: linear-gradient(120deg, #c5d8fc, #e5dbfa 90%); border-radius: 5px;}
