/* GENEL STİL */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  color: #333;
  text-align: center;
}

/* BANNER */
/* .banner {
  width: 100vw;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  object-fit: cover;
} */


.banner {
  width: 100vw;
  height: 25vh; /* ya da 28vh gibi deneyebilirsin */
  object-fit: cover;
  object-position: center;
}

/* BAŞLIK VE GİRİŞ ALANI */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px 20px 20px;
}

h1 {
  color: #2c3e50;
  margin-bottom: 10px;
  animation: slideIn 1.2s ease-out;
}

p {
  line-height: 1.6;
  margin: 6px 0;
}

/* HABERLER ALANI */
.haberler {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* HABER KUTULARI */
.haber-kutu {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 300px;
  transition: all 0.3s ease;
  text-align: left;
}

.haber-kutu:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.haber-kutu h2 {
  margin-top: 0;
  font-size: 20px;
  color: #2c3e50;
}

.haber-kutu p {
  font-size: 16px;
  color: #555;
}

.haber-kutu a {
  color: #000000;
  text-decoration: none;
}

.haber-kutu a:hover {
  text-decoration: underline;
}

/* MOUSE İMLEÇLERİ */
.cursor-dot,
.cursor-outline {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: #61cbff;
  transform: translate(-50%, -50%);
}

.cursor-outline {
  width: 30px;
  height: 30px;
  border: 2px solid #61cbff;
  transform: translate(-50%, -50%);
  transition: top 0.1s ease, left 0.1s ease;
}

/* SCROLL TO TOP */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background-color: #0078d4;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 24px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #61cbff;
}


@keyframes slideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* SEARCH BOX */
.search-container {
  margin: 20px auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.search-box {
  position: relative;
  width: 320px;
}

#searchInput {
  padding: 10px 12px 10px 36px;
  width: 300px;
  font-size: 16px;
  border-radius: 16px;
  border: 1px solid #ccc;
  outline: none;
  box-sizing: border-box;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #777;
  pointer-events: none;
}

/* DARK MODE TOGGLE */
#darkModeToggle {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#darkModeToggle:hover {
  background-color: #555;
}

/* DARK MODE */
body.dark-mode {
  background-color: #1e1e1e;
  color: #f1f1f1;
}

body.dark-mode .haber-kutu {
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #f1f1f1;
}

body.dark-mode a {
  color: #aadfff;
}

body.dark-mode .haber-kutu p {
  color: #e0e0e0;
}

body.dark-mode .haber-kutu h2 {
  color: #aadfff;
}

body.dark-mode h1 {
  color: #ffffff;
}


/* DARK MODE İKON ANİMASYONU */
#darkIcon {
  display: inline-block;
  transition: transform 0.4s ease;
}

#darkIcon.rotate {
  transform: rotate(180deg);
}
.pub-date {
  font-style: italic;
  font-size: 0.9em;
  color: rgba(0, 0, 0, 0.25); /* daha silik görünüm */
}
body.dark-mode .pub-date {
  color: rgba(255, 255, 255, 0.35); /* karanlık modda da silik beyaz */
}

.tech-container {
  margin-top: 16px;
}

.tech-chip {
  display: inline-block;
  background-color: #e0e0e0;
  color: #333;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 12px;
  margin-right: 6px;
  margin-top: 6px;
}
body.dark-mode .tech-chip {
  background-color: #444;
  color: #fff;
}
