@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Roboto&display=swap');

/* Temel Ayarlar */
:root {
  --bg-color: #0f111a;
  --sidebar-color: #181b29;
  --text-color: #fff;
  --highlight-color: #00f7ff;
  --menu-bg: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] {
  --bg-color: #f4f4f8;
  --sidebar-color: #ffffff;
  --text-color: #222;
  --highlight-color: #0077ff;
  --menu-bg: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Partikül Efekti */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
  animation: particles 60s linear infinite;
}

@keyframes particles {
  from { background-position: 0 0; }
  to { background-position: 1000px 1000px; }
}

/* Tema Geçiş Butonu */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99;
  background: var(--highlight-color);
  color: #000;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: 0.3s ease;
  box-shadow: 0 0 12px var(--highlight-color);
}

.theme-toggle:hover {
  transform: scale(1.05);
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--sidebar-color);
  padding: 30px 20px;
  border-right: 2px solid #30344e;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 10;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.15);
}

.sidebar h3 {
  margin-bottom: 20px;
  color: var(--highlight-color);
  font-size: 1.4rem;
  border-bottom: 2px solid var(--highlight-color);
  padding-bottom: 10px;
  text-shadow: 0 0 8px var(--highlight-color);
}

.sidebar a {
  display: block;
  margin: 12px 0;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 12px;
  border-left: 4px solid transparent;
  transition: 0.3s ease;
}

.sidebar a:hover {
  background: var(--highlight-color);
  color: #000;
  border-left: 4px solid #000;
}

/* Content */
.content {
  margin-left: 260px;
  padding: 40px;
  flex: 1;
  z-index: 1;
}

/* Menu Bar */
.menu-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--menu-bg);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.menu-bar a {
  flex: 1 1 120px;
  text-align: center;
  padding: 12px 16px;
  background: linear-gradient(145deg, #101321, #1f2233);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.menu-bar a:hover {
  background: var(--highlight-color);
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 0 10px var(--highlight-color);
}

/* Açılır Menü */
.menu-bar a::after {
  content: '👇';
  margin-left: 6px;
  font-size: 0.8rem;
  opacity: 0.6;
  transition: 0.3s;
}

.menu-bar a:hover::after {
  transform: rotate(180deg);
  opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f111a;
}

::-webkit-scrollbar-thumb {
  background: var(--highlight-color);
  border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 2px solid #30344e;
  }

  .content {
    margin-left: 0;
    padding: 20px;
  }

  .menu-bar {
    flex-direction: column;
  }

  .menu-bar a {
    flex: 1 1 100%;
  }
}
