/* ---------- Tema değişkenleri ---------- */
:root {
  --bg: #0f1115;
  --bg-soft: #12151b;
  --text: #e6e6e6;
  --muted: #a8b0bf;
  --card: #171a21;
  --card-border: #232836;
  --accent: #6aa9ff;
  --accent-2: #9b7cff;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --blur: 12px;
}
:root.light {
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --text: #1a1a1a;
  --muted: #5a6475;
  --card: #ffffff;
  --card-border: #e6e9ef;
  --accent: #3b82f6;
  --accent-2: #7c3aed;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --blur: 10px;
}

/* ---------- Reset ---------- */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    "Helvetica Neue",
    Arial;
  background: var(--bg);
  color: var(--text);
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

/* ---------- Arka plan ve bulanıklık ---------- */
.background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 10% 10%, #1a2030 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, #18243a 0%, transparent 60%),
    radial-gradient(1000px 700px at 50% 80%, #1b2333 0%, transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, #0b0d12 100%);
}
:root.light .background {
  background:
    radial-gradient(1200px 600px at 10% 10%, #eaf0ff 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 20%, #f0eaff 0%, transparent 60%),
    radial-gradient(1000px 700px at 50% 80%, #eef3ff 0%, transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
}
.blur-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  z-index: -1;
  pointer-events: none;
}

/* ---------- Kar efekti canvas ---------- */
canvas#snow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Üst bar ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(18, 21, 27, 0.55);
  border-bottom: 1px solid var(--card-border);
}
:root.light header {
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: var(--card-border);
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.3px;
}
.brand span {
  color: var(--accent);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}
.btn {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: #141821;
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.08s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
:root.light .btn {
  background: #f7f9ff;
}
.btn:hover {
  background: #10141c;
  border-color: #2b3244;
}
:root.light .btn:hover {
  background: #eef3ff;
  border-color: #dbe2f2;
}
.btn:active {
  transform: translateY(1px);
}
.btn.accent {
  background: #1a2333;
  border-color: #2b3a55;
  color: #cfe0ff;
}
:root.light .btn.accent {
  background: #e7efff;
  border-color: #cfe0ff;
  color: #1a2a4a;
}

/* ---------- İçerik ---------- */
main {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 20px 40px;
}

/* ---------- Kart ızgarası ---------- */
.grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Kart ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, var(--card) 0%, #141821 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
:root.light .card {
  background: linear-gradient(180deg, var(--card) 0%, #ffffff 100%);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0e1218;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--card-border);
}
.card-media img,
.card-media video,
.card-media audio {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-title {
  font-weight: 700;
  font-size: 16px;
}
.card-meta {
  font-size: 12px;
  color: var(--muted);
}
.card-text {
  font-size: 14px;
  color: #d7dbe6;
  line-height: 1.55;
}
:root.light .card-text {
  color: #2b2f38;
}
.card-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.tag {
  font-size: 12px;
  color: #cfe0ff;
  background: #162033;
  border: 1px solid #2b3a55;
  padding: 6px 8px;
  border-radius: 999px;
}
:root.light .tag {
  color: #1a2a4a;
  background: #e7efff;
  border-color: #cfe0ff;
}
.delete {
  margin-left: auto;
  background: #1c1f27;
  border-color: #2a2f3f;
  color: #ffb3b3;
}
:root.light .delete {
  background: #f5f7fb;
  border-color: #e6e9ef;
  color: #b32626;
}

/* ---------- Alıntı kartı ---------- */
.quote {
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

/* ---------- Link kartı ---------- */
.link-card .card-body {
  gap: 10px;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.link:hover {
  text-decoration: underline;
}

/* ---------- Galeri kartı ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--card-border);
}

/* ---------- Footer ---------- */
footer {
  margin-top: 28px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--card-border);
  background: rgba(18, 21, 27, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
}
:root.light footer {
  background: rgba(255, 255, 255, 0.6);
}
html,
body {
  margin: 0;
}

#karAlani {
  position: absolute;
  width: 100%;
  min-height: 100%;
  background-color: #171723;
  overflow: hidden;
  z-index: -1;
}

.fa-snowflake-o {
  color: #fff;
  position: absolute;
  top: -20px;
  animation: yagis linear forwards;
}

@keyframes yagis {
  to {
    transform: translateY(105vh);
  }
}

body {
  font-family: Arial, sans-serif;
  transition:
    background 0.3s,
    color 0.3s;
}

/* Varsayılan tema (light) */
body.light {
  background: #ffffff;
  color: #000000;
}

/* Dark tema */
body.dark {
  background: #121212;
  color: #ffffff;
}

button {
  padding: 10px 20px;
  margin: 20px;
  cursor: pointer;
}
