/* ===================== Genel Stil ===================== */
html {
  scroll-behavior: smooth;
  /* overflow-x: hidden; kuralını buradan SİLİYORUZ */
  width: 100%;
}
* {
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: url('images/headerresim.png') center/cover no-repeat fixed; 
  color: #fff;
  overflow-x: hidden; /* Kuralı BURAYA EKLİYORUZ */
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: -1;
}

a {
  text-decoration: none;
  color: #FFD700;
  font-weight: bold;
}

/* ===================== Header / Hero ===================== */
.hero {
  position: relative;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  margin-bottom: 10px;
  min-height: 50px;
}

.hero h1 .cursor {
  display: inline-block;
  background-color: #fff;
  margin-left: 3px;
  width: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { background-color: transparent; }
  50% { background-color: #fff; }
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* ===================== Menü ===================== */
nav {
  padding: 12px;
  text-align: center;
  top: 0;
  z-index: 100;
}

nav a {
  color: white;
  margin: 0 15px;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #FFD700;
}

/* ===================== Ana İçerik Alanı (Container) ===================== */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 40px auto;
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.container h2 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 30px;
  margin-top: 0;
  font-size: 2.2rem;
}

.container p {
  line-height: 1.7;
  margin-bottom: 15px;
}

/* ===================== Kartlar (Featured Tools) ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.card:hover {
  transform: translateY(-5px) perspective(1000px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card a {
  margin-top: 12px;
  display: inline-block;
}

/* ===================== Kategoriler ===================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.categories-grid .grid-item {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-grid .grid-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}
#categories h2 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.2rem;
}

/* ===================== Ana Sayfa Haber Önizleme ===================== */
.article {
  background: rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
}

/* ===================== CTA Buton (Genel) ===================== */
.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #6366F1;
  color: #fff;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}
.cta-button:hover {
  background: #4F46E5;
  transform: translateY(-2px);
}

/* ===================== Footer ===================== */
footer {
  background: rgba(31,41,55,0.85);
  color: white;
  text-align: center;
  padding: 25px;
  margin-top: 50px;
  font-size: 0.9rem;
}

footer a {
  margin: 0 5px;
}

/* ===================== Kategori Detay Sayfası ===================== */
.tool-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
}

.tool-card h3 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 0;
}

/* ===================== Haber Listeleme Sayfası ===================== */

/* Newsletter sayfasındaki haber kartları arasındaki boşluk için */
.news-cards {
  display: grid;
  gap: 30px; /* Kartlar arasındaki dikey boşluk. Değeri artırıp azaltabilirsin. */
}


.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.news-card img {
  width: 100%;       /* Resmin genişliği, kartın genişliğiyle %100 aynı olsun */
  height: 200px;      /* Bu zaten kodunda vardı, görsel tutarlılık için koruyoruz */
  object-fit: cover;  /* Bu sihirli kural, resmin bozulmadan ve ezilmeden kutuyu doldurmasını sağlar */
  display: block;     /* Resmin altında oluşabilecek istenmeyen küçük boşlukları engeller */
}

.news-card-content {
  padding: 20px;
}

.news-card-content h3 {
    font-family: 'Montserrat', sans-serif;
    margin-top: 0;
}

/* ===================== Haber Detay Sayfası ===================== */
.news-article-full img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.news-article-full .meta {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 20px;
}

/* ===================== İletişim Sayfası ===================== */
.contact-info p {
    font-size: 1.1rem;
    text-align: center;
}

/* ===================== Yukarı Çık Butonu Stilleri ===================== */
#scrollToTopBtn {
  display: flex; /* İkonu ortalamak için */
  align-items: center; /* İkonu dikeyde ortalamak için */
  justify-content: center; /* İkonu yatayda ortalamak için */
  position: fixed; /* Sayfa kaysa bile yerinde sabit kalır */
  bottom: 25px; /* Ekranın altından 25px yukarıda */
  right: 25px; /* Ekranın sağından 25px solda */
  width: 50px; /* Genişlik */
  height: 50px; /* Yükseklik */
  background-color: #6366F1; /* Sitenin CTA butonuyla aynı renk */
  color: #fff; /* Ok rengi */
  border-radius: 50%; /* Tam yuvarlak (baloncuk) yapar */
  text-decoration: none; /* Alt çizgiyi kaldırır */
  z-index: 1000; /* Diğer elemanların üzerinde olmasını sağlar */
  
  /* Başlangıçta gizli olması için */
  opacity: 0;
  visibility: hidden;

  /* Yumuşak bir geçiş efekti için */
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* JavaScript tarafından eklenecek olan "göster" sınıfı */
#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none; /* Başlangıçta gizli */
  background-color: rgba(0, 0, 0, 0.9);
}
/* ===================== Glitch Efekti Easter Egg ===================== */
.glitch {
  position: relative;
  color: #FFD700;
  transition: color 0.2s;
}

.glitch:hover {
  color: transparent;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  clip-path: inset(50% 50% 50% 50%);
}

.glitch:hover::before {
  color: #00ff00;
  animation: glitch-anim-1 1s infinite linear alternate-reverse;
}

.glitch:hover::after {
  color: #ff00ff;
  animation: glitch-anim-2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(45% 0 54% 0); } 25% { clip-path: inset(12% 0 45% 0); }
  50% { clip-path: inset(88% 0 1% 0); } 75% { clip-path: inset(50% 0 40% 0); }
  100% { clip-path: inset(72% 0 5% 0); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 80% 0); } 25% { clip-path: inset(90% 0 5% 0); }
  50% { clip-path: inset(20% 0 75% 0); } 75% { clip-path: inset(60% 0 30% 0); }
  100% { clip-path: inset(95% 0 2% 0); }
}
/* ===================== Menü Dil Değiştirici Düzeltmesi ===================== */
#desktop-nav .container {
  position: relative; /* Bu, bayrakları bu kutunun içine sabitlememizi sağlar */
}

.language-switcher img {
  width: 20px;       /* Genişliği sabit tutalım */
  height: 14px;      /* Yüksekliği de artık sabitliyoruz */
  object-fit: cover; /* Bu sihirli kural, resmin bozulmadan kutuyu kaplamasını sağlar */
  border-radius: 3px;
  transition: transform 0.2s ease;
  vertical-align: middle;
}
/* ===================== Menü Dil Değiştirici Konumlandırması ===================== */
#desktop-nav .container {
  position: relative; /* Bu, bayrakları bu kutunun içine sabitlememizi sağlar */
}

.language-switcher {
  position: absolute; /* Bu, bayrakların diğer linkleri rahatsız etmeden havada durmasını sağlar */
  right: 30px; /* Kutunun sağ kenarından 30px içeride */
  top: 50%;
  transform: translateY(-50%);
}
/* ======================================================= */
/* MOBİL UYUMLULUK KODLARI (TÜM CİHAZLAR) */
/* ======================================================= */

/* --- Tablet ve Telefonlar (768px ve altı) --- */
@media (max-width: 768px) {
  #desktop-nav {
    display: none !important;
}
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }

  /* JS tarafından oluşturulan Mobil Menü Stilleri */
  #mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed; /* DEĞİŞİKLİK: Menüyü ekrana sabitler, kaydırmadan etkilenmez. */
    top: 0;
    left: 0; /* DEĞİŞİKLİK: Sol tarafa tam yaslanmasını garantiler. */
    width: 100%; /* DEĞİŞİKLİK: Ekranı tamamen kaplamasını sağlar. */
    z-index: 1000; /* Diğer tüm elementlerin üzerine çıkması için yüksek bir değer */
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
/* Bu kural, haberler listesinin mobil cihazlarda tek sütunlu olmasını sağlar */
.news-list {
  grid-template-columns: 1fr;
}
  .mobile-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-logo:hover {
    color: #fff;
  }
.language-switcher {
    margin-right: 20px; /* Bu değerle oynayarak boşluğu artırıp azaltabilirsiniz */
}
  #hamburger-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 21px;
  }

  #hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
  }
  
  #hamburger-icon.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #hamburger-icon.active span:nth-child(2) {
    opacity: 0;
  }
  #hamburger-icon.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-links {
    display: none;
    position: absolute;
    top: 100%; /* Üst barın hemen altında başlamasını sağlar */
    left: 0;
    width: 100%;
    /* DEĞİŞİKLİK: Saydamlığı kaldırmak için solid bir renk kullanıldı. */
    background-color: rgb(20, 20, 40); 
    flex-direction: column;
    padding: 20px 0;
    /* DEĞİŞİKLİK: Menünün sayfadan ayrışması için hafif bir gölge eklendi. */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.25); 
  }

  .mobile-links.active {
    display: flex;
  }

  .mobile-links a {
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
  }

  .mobile-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFD700;
  }
  .container {
  padding: 20px 15px; /* Üst/alt 20px, sağ/sol 15px boşluk bırakır */
}

  /* Diğer genel mobil düzenlemeler */
  .cards {
    grid-template-columns: 1fr;
  }
    .categories-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
  }
}

/* --- Sadece Küçük Telefonlar (480px ve altı) --- */
@media (max-width: 480px) {
  .container h2 {
    font-size: 1.8rem;
  }
}
/* ======================================================= */
/* YUKARI ÇIK BUTONU (MOBİL UYUMLULUK)                     */
/* ======================================================= */

@media (max-width: 768px) {
  #scrollToTopBtn {
    width: 40px;      /* Genişliği küçült */
    height: 40px;     /* Yüksekliği küçült */
    right: 15px;      /* Sağdan boşluğu azalt */
    bottom: 15px;     /* Alttan boşluğu azalt */
    font-size: 16px;  /* İçindeki ok ikonunu küçült */
  }
}






