/* ULUSLARARASI TEM - Temizlenmiş Stil Dosyası (v2) */
:root {
  --bg-primary: #0a0c10;
  --bg-card: rgba(22, 26, 34, 0.85);
  --accent-gold: #c5a059;
  --accent-gold-hover: #e5be75;
  --text-main: #e6e8ec;
  --border-color: #2a3241;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Segoe UI', -apple-system, sans-serif;
  overflow-x: hidden;
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body.nav-open { overflow: hidden; }

/* Arka plan */
.bg-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-primary);
}
#flag-canvas, #grid-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* Header */
header {
  background: rgba(10, 12, 15, 0.97);
  border-bottom: 2px solid var(--accent-gold);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2500;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  max-width: 75%;
  overflow: hidden;
}

.logo-badge-img {
  width: 45px; height: 45px;
  min-width: 45px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text { min-width: 0; }

.logo-text .logo-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-text .logo-sub {
  display: block;
  font-size: 0.55rem;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Masaüstü menü */
nav ul {
  display: flex;
  list-style: none;
  gap: 15px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

nav a:hover, nav a.active { color: var(--accent-gold); }

.nav-icon { display: none; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  width: 40px; height: 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.menu-toggle:hover { background: rgba(197, 160, 89, 0.15); }

/* Karartma perdesi: header'ın ALTINDA (2400 < 2500) */
.nav-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 2400;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* İçerik */
.main-content {
  padding: 30px 15px;
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  width: 100%;
  overflow-x: hidden;
}

.page-container { max-width: 1100px; margin: 0 auto; width: 100%; }

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-gold);
  padding: 20px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  word-break: break-word;
  overflow-wrap: break-word;
}

.content-card h2,
.content-card h3 {
  color: var(--accent-gold);
  margin-bottom: 15px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.content-card p { line-height: 1.7; color: #d1d5db; }

/* Footer */
footer {
  background: rgba(10, 12, 15, 0.95);
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 20px 15px;
  color: #888;
  font-size: 0.8rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  word-break: break-word;
}
footer a { color: var(--accent-gold); text-decoration: none; }

/* MOBİL (<=1024px) - tek ve temiz yöntem */
@media screen and (max-width: 1024px) {
  header { padding: 10px 12px; }

  .menu-toggle { display: flex; }

  .logo-badge-img {
    width: 36px; height: 36px;
    min-width: 36px;
  }
  .logo-text .logo-title { font-size: 0.95rem; }
  .logo-text .logo-sub { font-size: 0.5rem; }

  nav {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    height: 100dvh;
    width: 280px;
    max-width: 80vw;
    background: #0f1218;
    border-right: 1px solid var(--accent-gold);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 70px 15px 35px;
    z-index: 2600;
  }

  nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
  }

  nav li { width: 100%; }

  nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    min-height: 44px;
    color: #fff;
  }

  .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 6px;
    background: rgba(197, 160, 89, 0.15);
    color: var(--accent-gold);
    font-size: 0.85rem;
    flex-shrink: 0;
  }
}