/* === DEĞİŞKENLER === */
:root {
  --bg-color: #ffffff;
  --text-color: #202020;
  --header-bg: #0d6efd;
  --footer-bg: #e9ecef;
  --link-color: #0066cc;
  --sidebar-color: #343a40;
  --card-color: #bebebe;
  --primary-color: #6c5ce7;
  --secondary-color: #a8a5e6;
  --text-muted: #494949;
}

[data-theme="dark"] {
  --bg-color: #0d0d0d;
  --text-color: #f8f9fa;
  --header-bg: #1a1a1a;
  --footer-bg: #0d0d0d;
  --link-color: #4dabf7;
  --sidebar-color: black;
  --card-color: #3f3f3f;
  --bs-body-bg: #121212;
  --bs-body-color: #f8f9fa;
  --primary-color: #2eb6ce;
  --text-muted: #8f8f8f;
}

/* === TEMEL STİLLER === */
body {
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

h1, p { color: var(--text-color); }
a { color: var(--link-color); text-decoration: none; }
.text-muted { color: var(--text-muted) !important; }

/* === HEADER ve NAVBAR === */
.header, .navbar, .bg-primary {
  background-color: var(--header-bg) !important;
}

.header {
  line-height: 100px;
  transition: height 0.3s, line-height 0.3s;
}

.logo, #Logo, #Logo:hover {
  font-size: 2rem;
  font-weight: bold;
  color: #e95031;
  transition: 1s ease-in-out;
}

.navbar {
  z-index: 10;
}

.navbar .dropdown-menu {
  background-color: var(--sidebar-color);
  border: 1px solid rgba(255,255,255,0.1);
}

.navbar .dropdown-item {
  color: #fff;
  transition: background-color 0.3s;
}

.navbar .dropdown-item:hover {
  background-color: #575d63;
}

/* === PROFİL MENÜSÜ - YOUTUBE STİLİ === */
.profile-wrapper {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 15;
}

.profile-pic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
  border: 2px solid var(--sidebar-color);
}

.profile-dropdown {
  margin-top: 0.3rem;
  background-color: var(--sidebar-color);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: absolute;
  top: 42px;
  min-width: 140px;
  font-size: 14px;
  text-align: left;
}

.profile-dropdown a {
  display: block;
  padding: 8px 12px;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s;
}

.profile-dropdown a:hover {
  background-color: #4a4a4a;
}

@media (min-width: 768px) {
  .profile-wrapper {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 767px) {
  .profile-wrapper {
    left: 1rem;
    top: 1rem;
    transform: none;
  }

  #navbarbuton {
    display: none !important;
  }
}

/* === SİDEBAR === */
.sidebar {
  height: 100%;
  width: 250px;
  position: fixed;
  top: 0;
  left: -250px;
  background-color: var(--sidebar-color);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  z-index: 2;
}

.sidebar a {
  padding: 10px 15px;
  font-size: 18px;
  color: #fff;
  display: block;
  transition: 0.3s;
}

.sidebar a:hover {
  background-color: #575d63;
}

#sidebar-toggle {
  width: 2rem;
  font-size: 24px;
  margin-top: 25%;
  position: fixed;
  cursor: pointer;
  color: whitesmoke;
  background-color: var(--sidebar-color);
  border: none;
  z-index: 2;
  transition: 0.5s;
}

/* === TEMA DEĞİŞTİRME === */
#themeToggle {
  padding: 0.5rem 1rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--text-color);
  border-radius: 4px;
  cursor: pointer;
  margin: 0 1rem 1rem 0;
  z-index: 10;
}

.theme-icon { transition: transform 0.5s ease; }
#themeToggle.active .theme-icon { transform: rotate(360deg); }
.theme-text { transition: opacity 0.3s ease; }

@media (max-width: 576px) {
  .theme-text { display: none; }
  #themeToggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
}

/* === KARTLAR ve BİLEŞENLER === */
.card-body, .accordion-header, .accordion, .contact-card {
  background-color: var(--card-color) !important;
  color: var(--text-color) !important;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card-body:hover, .accordion-header:hover, .contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.accordion-item {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* === CAROUSEL === */
.carousel {
  margin-top: 3rem;
  max-width: 100vw;
  z-index: 1;
}

.carousel-item img {
  width: 100%;
  height: 50rem;
  filter: blur(1px);
  object-fit: cover;
}

.caro-text {
  color: whitesmoke;
  text-shadow: #343a40;
}

/* === FOOTER === */
.footer {
  margin-top: 10rem;
  background-color: var(--footer-bg);
  padding: 1rem;
  z-index: 0;
}

.footer a {
  color: #fff;
  transition: color 0.3s ease;
}

.footer a:hover { color: #17a2b8; }
.footer h4 { color: #17a2b8; margin-bottom: 1rem; }
.footer ul { padding-left: 0; }
.footer ul li { margin-bottom: 0.5rem; }
.footer .text-center {
  border-top: 1px solid #444;
  padding-top: 1rem;
  margin-top: 2rem;
}

/* === FORM ELEMANLARI === */
.form-control {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  color: var(--text-color) !important;
  background-color: var(--bg-color);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(108, 92, 231, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted) !important;
}

input:focus::placeholder, 
textarea:focus::placeholder {
  color: var(--text-color) !important;
}

.submit-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border: none;
  padding: 15px 40px;
  border-radius: 15px;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

/* === SOSYAL === */
.social-links a {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin: 0 8px;
  transition: all 0.3s ease;
  background-color: var(--primary-color);
  color: white;
}

.social-links a:hover {
  transform: translateY(-3px);
  background-color: var(--secondary-color);
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* === DİĞER === */
.hidden { display: none; }
.content { padding: 20px; margin-top: 60px; }