/* ---- TEMALAR ---- */
:root {
  --bg: #f5f6f8;
  --text: #1e1e2f;
  --card: #ffffff;
  --accent: #5c6b7f;
  --muted-bg: #e6e9ef;
  --muted-border: #d1d5db;
  --header-bg: #ffffff;
  --footer-bg: #f9fafb;
}

[data-theme="dark"] {
  --bg: #0f121b;
  --text: #d3d3d3;
  --card: #1b1f2a;
  --accent: #7a8ca5;
  --muted-bg: #161a28;
  --muted-border: #2c3143;
  --header-bg: #1b1f2a;
  --footer-bg: #161a28;
}

/* ---- GENEL ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  min-height: 100%;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease;
}

/* ---- HEADER ---- */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 20px 40px;
  background: var(--header-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background 0.4s ease;
  text-align: center;
}

/* Site Başlık */
#site-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#name { font-size: 1.8rem; font-weight: 700; color: var(--text); }
#title { font-size: 1rem; opacity: 0.8; color: var(--text); }

/* Tema Toggle */
#theme-toggle {
  position: absolute;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.2);
  background-color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#theme-toggle:hover { transform: scale(1.1); }

/* Karanlık Mod */
[data-theme="dark"] #theme-toggle {
  border-color: rgba(255, 255, 255, 0.2); /* daha yumuşak beyaz */
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1); /* soft glow */
}

/* ---- HAMBURGER ---- */
#menu-toggle {
  position: absolute;
  left: 20px;
  width: 46px;
  height: 46px;
  border: none;
  background: var(--card);
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: none; /* masaüstünde gizli */
  transition: transform 0.3s ease;
}

#menu-toggle.active {
  transform: rotate(90deg);
}

/* ---- ANA YAPI ---- */
.container {
  display: flex;
  gap: 24px;
  padding: 40px;
  flex-wrap: wrap;
}

.sidebar {
  width: 260px;
  background: var(--muted-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.4s ease;
}

.profile {
  width: 160px; height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 2px solid var(--accent);
}

.profile img { width: 100%; height: 100%; object-fit: cover; }

.menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-item {
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.menu-item:hover,
.menu-item.active {
  background: var(--accent);
  color: #fff;
}

/* ---- CONTENT ---- */
.content {
  flex: 1;
  background: var(--card);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: background 0.4s ease, color 0.4s ease;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--footer-bg);
  color: var(--text);
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--muted-border);
  transition: background 0.4s ease, color 0.4s ease;
}

.footer .socials {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 10px;
}

.footer .socials img {
  width: 32px; height: 32px;
  transition: transform 0.3s ease;
}

.footer .socials img:hover { transform: scale(1.2); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .container { flex-direction: column; padding: 20px; }
  .sidebar { width: 100%; }
}

/* Mobil: Tam Ekran Sidebar */
@media (max-width: 768px) {
  #menu-toggle { display: flex; align-items: center; justify-content: center; }

  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    z-index: 999;
    border-radius: 0;
    box-shadow: none;
    padding-top: 80px;
    overflow-y: auto;
  }

  .sidebar.active {
    left: 0;
    background: var(--muted-bg);
  }

  .menu-item {
    font-size: 1.2rem;
    padding: 16px;
  }

  body.sidebar-open {
    overflow: hidden; /* menü açıkken sayfa kaymasın */
  }
}
