/* ===== GENEL RESPONSIVE CSS ===== */
/* Bu CSS tüm sayfalar için ortak responsive kuralları içerir */

:root{ 
  --bg:#0f1226; --card:#171a36; --accent:#ff6ac1; --accent-2:#6ad7ff; 
  --text:#e9ecff; --muted:#9aa3c7; --base-font-size: 16px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0; 
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial; 
  color: var(--text); 
  background: radial-gradient(1200px 600px at 15% -10%, #1b1f46 0%, #0f1226 45%, #0b0e1f 100%);
  font-size: var(--base-font-size);
  line-height: 1.6;
}

a { color: var(--accent); }

/* ===== HEADER - RESPONSIVE ===== */
header {
  position: sticky; top: 0; z-index: 20; 
  backdrop-filter: saturate(140%) blur(8px); 
  background: linear-gradient(180deg, rgba(15,18,38,.85), rgba(15,18,38,.55)); 
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav {
  max-width: 980px; margin: auto; 
  display: flex; align-items: center; justify-content: space-between; 
  padding: 14px 20px; flex-wrap: wrap; gap: 12px;
}

.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800;
}

.logo {
  width: 30px; height: 30px; flex-shrink: 0;
  background: conic-gradient(from 0deg, var(--accent), #ffd1f0, var(--accent-2), #a4ffea, var(--accent)); 
  border-radius: 8px;
}

nav ul {
  display: flex; gap: 16px; list-style: none; padding: 0; margin: 0; 
  flex-wrap: wrap;
}

nav a {
  color: var(--text); font-weight: 600; padding: 8px 12px; border-radius: 10px;
  transition: background .2s ease;
}

nav a:hover { background: rgba(255,255,255,.06); }

/* ===== MAIN CONTENT - RESPONSIVE ===== */
main {
  max-width: 980px; margin: 24px auto 70px; padding: 0 20px;
}

.card {
  background: linear-gradient(180deg, rgba(23,26,54,.85), rgba(23,26,54,.55)); 
  border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 22px;
}

h1 {
  font-size: 34px; margin: 0 0 6px; line-height: 1.2;
}

h2 {
  margin-top: 26px; margin-bottom: 8px; font-size: 20px;
}

h3 {
  margin-top: 20px; margin-bottom: 6px; font-size: 18px;
}

h4 {
  margin-top: 16px; margin-bottom: 4px; font-size: 16px;
}

h5 {
  margin-top: 14px; margin-bottom: 4px; font-size: 15px;
}

.meta {
  color: var(--muted); margin-bottom: 18px; font-size: 14px;
}

p, ul, li {
  color: #dfe3ff;
}

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 4px;
}

.callout {
  border-left: 4px solid var(--accent); 
  padding: 10px 12px; 
  background: rgba(255,255,255,.04); 
  border-radius: 12px;
  margin: 16px 0;
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 
  background: rgba(255,255,255,.08); 
  padding: 2px 6px; 
  border-radius: 6px;
  font-size: 0.9em;
}

table {
  width: 100%; border-collapse: collapse; margin: 10px 0 16px;
  overflow-x: auto; display: block; white-space: nowrap;
}

th, td {
  padding: 10px 12px; 
  border-bottom: 1px solid rgba(255,255,255,.08); 
  text-align: left; vertical-align: top;
}

th {
  color: #f0f2ff; font-weight: 700;
}

.row {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px; 
  padding: 10px 14px; border-radius: 12px; 
  background: linear-gradient(180deg, #2a2f69, #1e2351); 
  border: 1px solid rgba(255,255,255,.1); 
  color: var(--text); font-weight: 700; cursor: pointer;
  text-decoration: none; font-size: 14px;
  transition: transform .15s ease, filter .15s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-accent {
  background: linear-gradient(180deg, var(--accent), #ff3fae);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), #ff3fae);
}

.note {
  color: #bfc7f5; font-size: 14px;
}

/* ===== FOOTER - RESPONSIVE ===== */
footer {
  border-top: 1px solid rgba(255,255,255,.06); 
  background: rgba(15,18,38,.7);
}

.footer {
  max-width: 980px; margin: 0 auto; padding: 18px 20px; 
  display: flex; justify-content: space-between; flex-wrap: wrap; 
  gap: 12px; align-items: center;
}

.footer a {
  color: #cbd3ff;
}

/* ===== COOKIE BANNER - RESPONSIVE ===== */
.cookie-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(23,26,54,.98), rgba(23,26,54,.92));
  color: #e9ecff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px 16px 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  backdrop-filter: saturate(140%) blur(6px);
}

.cookie-banner strong {
  display: block;
  font-size: 15px;
  letter-spacing: .01em;
  margin-bottom: 4px;
}

.cookie-banner .note {
  color: #b9c1e6;
  font-size: 14px;
  margin: 6px 0 0;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.cookie-banner .btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, #2a2f69, #1e2351);
  color: #e9ecff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.cookie-banner .btn-primary {
  background: linear-gradient(180deg, #ff6ac1, #ff3fae);
  border-color: transparent;
}

.cookie-banner a {
  color: #cbd3ff;
  text-decoration: none;
  font-weight: 600;
}

.cookie-banner a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav {
    padding: 14px 24px;
  }
  
  main {
    padding: 0 24px;
  }
  
  .footer {
    padding: 18px 24px;
  }
  
  table {
    display: table;
    white-space: normal;
  }
}

/* Mobile Landscape (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  :root {
    --base-font-size: 15px;
  }
  
  .nav {
    padding: 12px 20px;
  }
  
  .brand {
    font-size: 16px;
  }
  
  nav ul {
    gap: 12px;
  }
  
  nav a {
    padding: 6px 10px;
    font-size: 14px;
  }
  
  main {
    margin: 20px auto 50px;
    padding: 0 20px;
  }
  
  .card {
    padding: 20px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  h2 {
    font-size: 18px;
  }
  
  table {
    font-size: 13px;
  }
  
  th, td {
    padding: 8px 10px;
  }
  
  .footer {
    padding: 16px 20px;
    flex-direction: column;
    text-align: center;
  }
  
  .footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
}

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
  :root {
    --base-font-size: 14px;
  }
  
  .nav {
    padding: 10px 16px;
  }
  
  .brand {
    font-size: 15px;
  }
  
  .logo {
    width: 28px;
    height: 28px;
  }
  
  nav ul {
    gap: 8px;
    width: 100%;
    justify-content: center;
  }
  
  nav a {
    padding: 6px 8px;
    font-size: 13px;
  }
  
  main {
    margin: 16px auto 40px;
    padding: 0 16px;
  }
  
  .card {
    padding: 16px;
  }
  
  h1 {
    font-size: 24px;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 16px;
    margin-top: 20px;
  }
  
  h3 {
    font-size: 15px;
  }
  
  h4, h5 {
    font-size: 14px;
  }
  
  .meta {
    font-size: 13px;
  }
  
  p, ul, li {
    font-size: 14px;
  }
  
  ul {
    padding-left: 16px;
  }
  
  .callout {
    padding: 8px 10px;
  }
  
  table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  th, td {
    padding: 6px 8px;
    min-width: 80px;
  }
  
  .row {
    gap: 8px;
  }
  
  .btn {
    padding: 8px 12px;
    font-size: 13px;
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }
  
  .footer {
    padding: 14px 16px;
    flex-direction: column;
    text-align: center;
  }
  
  .footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    font-size: 13px;
  }
  
  .cookie-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 12px;
  }
  
  .cookie-actions {
    gap: 8px;
  }
  
  .cookie-banner .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Extra Small Mobile (< 320px) */
@media (max-width: 319px) {
  :root {
    --base-font-size: 13px;
  }
  
  .nav {
    padding: 8px 12px;
  }
  
  main {
    padding: 0 12px;
  }
  
  .card {
    padding: 12px;
  }
  
  h1 {
    font-size: 20px;
  }
  
  .footer {
    padding: 12px;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .cookie-banner {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 20px;
  }
  
  main {
    margin: 12px auto 30px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner .btn,
  .btn {
    transition: none;
  }
  
  .cookie-banner .btn:hover,
  .btn:hover {
    transform: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --accent: #ff8cc8;
    --text: #ffffff;
    --muted: #cccccc;
  }
  
  .btn {
    border: 2px solid var(--accent);
  }
  
  .card {
    border: 2px solid rgba(255,255,255,.2);
  }
}