@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Ubuntu+Mono:wght@400;700&display=swap");

:root {
  /* Renk Paleti */
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-border: #334155;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #2dd4bf;
  --accent-glow: rgba(45, 212, 191, 0.4);
  --primary: #8b5cf6;

  /* Syntax Renkleri */
  --code-keyword: #c678dd;
  --code-string: #98c379;
  --code-value: #e06c75;
  --code-operator: #abb2bf;
  --code-yellow: #ffbd2e;
  --code-green-check: #27c93f;

  /* Font Aileleri */
  --font-sans: "Inter", sans-serif;
  --font-mono: "Ubuntu Mono", monospace;
}

/* =======================================================
   CANLI ARKA PLAN
   ======================================================= */
@keyframes moveBg {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
  background:
    linear-gradient(90deg, var(--bg-main) 0%, #131c31 50%, var(--bg-main) 100%),
    radial-gradient(
      circle at 20% 20%,
      rgba(45, 212, 191, 0.05),
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(139, 92, 246, 0.05),
      transparent 30%
    );
  animation: moveBg 30s ease-in-out infinite;
}

/* =======================================================
   BLOG OKU TASARIMI (YARATICI VERSİYON)
   ======================================================= */

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.blogoku {
  max-width: 900px;
  margin: 5rem auto;
  padding: 3px; /* Kenarlık için boşluk */
  background: transparent;
  position: relative;
  border-radius: 18px; /* Dış kenarlık için */
  z-index: 1;
  overflow: hidden;
}

.blogoku::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  z-index: -2;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    var(--primary),
    var(--accent)
  );
  transform: translate(-50%, -50%);
  animation: rotateBorder 8s linear infinite;
}

.blogoku-inner {
  background: #151e33;
  padding: 3rem;
  border-radius: 16px; /* İç kart için */
  position: relative;
  z-index: 2;
}

/* --- 1. Başlık Alanı --- */
@keyframes titleColorChange {
  0%,
  100% {
    color: var(--accent);
  }
  33% {
    color: var(--primary);
  }
  66% {
    color: var(--code-value);
  }
}

.blogoku-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--bg-border);
  padding-bottom: 2rem;
  text-align: center;
}

.blogoku-header .title {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: bold;
  text-shadow: 0 0 15px var(--accent-glow);
  animation: titleColorChange 6s ease-in-out infinite;
}

/* --- 2. Meta Bilgileri --- */
.blogoku-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.blogoku-meta .ikon {
  color: var(--accent);
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.blogoku-meta .kategori {
  color: var(--code-keyword);
  font-weight: bold;
  background: rgba(198, 120, 221, 0.1);
  border: 1px solid rgba(198, 120, 221, 0.2);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.blogoku-meta .tarih {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.blogoku-meta .tarih i {
  color: var(--accent);
}

/* --- 3. Blog Metin Alanı --- */
.blogoku-blog {
  padding-top: 1rem;
}

.blogoku-blog .metin {
  font-family: var(--font-sans);
  color: var(--text-main);
  line-height: 1.8;
  font-size: 1.1rem;
  white-space: pre-wrap;
  text-align: justify;
}
.blogoku-blog .metin::first-letter {
  font-size: 2.5em;
  color: var(--accent);
  font-weight: bold;
  float: left;
  margin-right: 0.1em;
  line-height: 0.8;
}

/* --- 4. Beğeni Bölümü (Neon Efektli) --- */
@keyframes icon-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

.blog-sonu {
  margin-top: 4rem;
  padding: 2.5rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 12px;
  border: 1px dashed var(--bg-border);
  text-align: center;
}

.blog-sonu .text {
  font-family: var(--font-mono);
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.begeni {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.begeni button {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  font-size: 1.6rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.begeni button:hover i {
  animation: icon-pop 0.4s ease;
}

.begeni span {
  font-family: var(--font-mono);
  font-weight: bold;
  color: var(--text-main);
  font-size: 1.2rem;
  min-width: 30px;
  background: rgba(15, 23, 42, 0.6);
  padding: 5px 10px;
  border-radius: 6px;
}

.begeni button:hover,
.begeni button:focus {
  transform: translateY(-5px);
}

.begeni .begendim:hover,
.begeni .begendim:focus {
  color: var(--code-green-check);
  border-color: var(--code-green-check);
  box-shadow:
    0 0 10px var(--code-green-check),
    0 0 20px var(--code-green-check),
    0 0 30px var(--code-green-check);
}
.begeni .kararsiz:hover,
.begeni .kararsiz:focus {
  color: var(--code-yellow);
  border-color: var(--code-yellow);
  box-shadow:
    0 0 10px var(--code-yellow),
    0 0 20px var(--code-yellow),
    0 0 30px var(--code-yellow);
}
.begeni .begenmedim:hover,
.begeni .begenmedim:focus {
  color: var(--code-value);
  border-color: var(--code-value);
  box-shadow:
    0 0 10px var(--code-value),
    0 0 20px var(--code-value),
    0 0 30px var(--code-value);
}

/* --- 5. Geri Dön Butonu --- */
.call-back-btn {
  display: flex;
  justify-content: center;
  padding: 0 1.25rem;
  margin: 4rem 0;
}

.call-back-btn a {
  background-color: var(--accent);
  color: var(--bg-main);
  font-family: var(--font-mono);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.call-back-btn a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

/* =======================================================
   ULTIMATE RESPONSIVE DESIGN
   ======================================================= */

/* --- Geniş Masaüstü (1200px ve altı) --- */
@media (max-width: 1200px) {
  .blogoku {
    max-width: 95%;
  }
}

/* --- Normal Masaüstü ve Dizüstü (992px ve altı) --- */
@media (max-width: 992px) {
  .blogoku {
    margin: 4rem auto;
  }
  .blogoku-inner {
    padding: 2.5rem;
  }
  .blogoku-header .title {
    font-size: 2rem;
  }
}

/* --- Tablet (768px ve altı) --- */
@media (max-width: 768px) {
  .blogoku {
    margin: 3rem 1rem;
  }
  .blogoku-inner {
    padding: 2rem;
  }
  .blogoku-header .title {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  .blogoku-meta {
    gap: 1.2rem;
    font-size: 0.9rem;
  }
  .blogoku-blog .metin {
    font-size: 1rem;
    line-height: 1.7;
  }
  .blog-sonu {
    padding: 2rem;
  }
  .begeni {
    gap: 0.8rem;
    justify-content: center;
  }
  .begeni button {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
  .begeni span {
    font-size: 1rem;
  }
}

/* --- Mobil (576px ve altı) --- */
@media (max-width: 576px) {
  .blogoku {
    margin: 2rem 1rem;
    border-radius: 12px;
  }
  .blogoku-inner {
    padding: 1.5rem;
  }
  .blogoku-header .title {
    font-size: 1.6rem;
  }
  .blogoku-meta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .blog-sonu {
    padding: 1.5rem;
    border: none;
    background: transparent;
  }
  .blog-sonu .text {
    font-size: 1rem;
  }
  .begeni {
    gap: 0.5rem;
  }
  .begeni button {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
  .begeni span {
    font-size: 0.9rem;
  }
}

/* --- Küçük Mobil (480px ve altı) --- */
@media (max-width: 480px) {
  .blogoku {
    margin: 1.5rem 0.5rem;
  }
  .blogoku-inner {
    padding: 1.25rem;
  }
  .blogoku-header .title {
    font-size: 1.4rem;
  }
  .blogoku-blog .metin {
    font-size: 0.95rem;
  }
  .blogoku-blog .metin::first-letter {
    font-size: 2em;
  }
  .begeni {
    gap: 0.3rem;
  }
  .begeni button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .begeni span {
    font-size: 0.8rem;
    min-width: unset;
  }
  .call-back-btn {
    margin: 3rem 0;
  }
}

/* --- 6. Paylaş Butonu --- */
.btn-share {
  background-color: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid var(--bg-border);
  margin-top: 1.5rem;
}

.btn-share:hover {
  background-color: var(--accent);
  color: var(--bg-main);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-share i {
  transition: transform 0.3s ease;
}

.btn-share:hover i {
  transform: scale(1.2);
}
