:root {
  --bg1: #0f0f14;
  --text: #e5e5e5;
  --accent: #d4af37; /* Altın vurgusu */
  --border: rgba(255, 255, 255, 0.1);
  --muted: #b8b8b8;
}

/* Açık tema */
[data-theme="light"] {
  --bg1: #f8f8f6;
  --text: #1d1d1d;
  --accent: #c49b24; /* Açık tonda altın */
  --border: rgba(0, 0, 0, 0.1);
  --muted: #555;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg1);
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .25s ease;
}
a:hover {
  color: #fff;
  text-shadow: 0 0 6px var(--accent);
}

.card {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg1);
  color: var(--text);
}

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
  background: var(--bg1);
  color: var(--muted);
}

/* === Hero Bölümü === */
.hero {
  transition: color .3s ease, background-color .3s ease;
  border-radius: 1rem;
  padding: 4rem 1rem;
}

[data-theme="light"] .hero {
  background: linear-gradient(180deg, #fffefb, #f5f3e8);
  color: #1a1a1a;
}

[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #121212, #1b1b18);
  color: #f6f6f6;
}

/* === İletişim Butonu === */
.contact-btn {
  border: 2px solid var(--accent);
  color: var(--accent);
  background-color: transparent;
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 30px;
  padding: 8px 18px;
}

.contact-btn:hover {
  background-color: var(--accent);
  color: #111;
}

/* === Blog Sayfası === */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2rem;
}

.category-nav .cat-link {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.25s ease;
  background: transparent;
}

.category-nav .cat-link:hover {
  background: var(--accent);
  color: #111;
}

.category-nav .cat-link.active {
  background: var(--accent);
  color: #111 !important;
  border-color: var(--accent);
}

/* Blog Kartları */
.blog-card {
  border-radius: 1rem;
  transition: all .3s ease;
  background: var(--bg1);
  color: var(--text);
  border: 1px solid var(--border);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
}
.blog-card .card-body h5 {
  color: var(--text);
  font-weight: 600;
}
.blog-card .card-text {
  color: var(--muted);
}
.blog-card .btn-outline-primary {
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.85rem;
  border-color: var(--accent);
  color: var(--accent);
}
.blog-card .btn-outline-primary:hover {
  background-color: var(--accent);
  color: #111;
  border-color: var(--accent);
}

/* === Sidebar Kategorileri === */
.category-list .nav-link {
  display: flex;
  align-items: center;
  gap: .25rem;
  border-radius: .6rem;
  color: var(--text);
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  margin-bottom: .4rem;
  transition: background .2s ease, color .2s ease;
}
.category-list .nav-link:hover {
  background: var(--accent);
  color: #111;
}
.category-list .nav-link.active {
  background: var(--accent);
  color: #111;
}
.category-list .badge {
  background: var(--border);
  color: var(--text);
}

/* === Referans Kartları === */
[data-theme="light"] .bg-light {
  background-color: #fffdfa !important;
  color: #212529 !important;
  border-color: #ddd !important;
}
[data-theme="dark"] .bg-light {
  background-color: #1a1a1a !important;
  color: #e5e5e5 !important;
  border-color: #333 !important;
}

/* === Mobil Uyum === */
@media (max-width: 767px) {
  .blog-card { margin-bottom: 1rem; }
}
