/* ===========================
   Genel Stil Ayarları
   =========================== */
body {
  margin: 0;
  font-family: "Trebuchet MS", Arial, sans-serif;
  background: linear-gradient(to bottom, #1a1c1e, #0f1115);
  color: #dce2f0;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ===========================
         Header ve Logo
         =========================== */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 150px;
  background-color: #16181d;
  border-bottom: 2px solid #2fb6e1;
}

#logo {
  width: 190px;
  height: auto;
  max-width: 100%;
}

/* ===========================
         Navigasyon Menüsü
         =========================== */
@keyframes fadeInSub {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav {
  background-color: #131519;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
}

nav a {
  color: #dce2f0;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

nav a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0%;
  background: #2fb6e1;
  transition: width 0.3s;
  margin-top: 4px;
}

nav a:hover::after {
  width: 100%;
}

/* ===========================
         Hakkımda Bölümü
         =========================== */
.aboutme-toggle {
  display: flex;
  justify-content: center;
  cursor: pointer;
  background-color: #1d1f24;
  padding: 8px 0;
}

.chevron {
  font-size: 24px;
  color: #dce2f0;
  transition: transform 0.3s ease;
}

.rotate {
  transform: rotate(180deg);
}

.aboutme {
  background-color: #1d1f24;
  font-family: "Inter", sans-serif;
  padding: 40px 100px;
  text-align: center;
  color: #dce2f0;
  font-size: 18px;
  font-weight: 400;
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
}

.aboutme ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 90px;
  padding: 0;
  margin: 20px 0 0 0;
  list-style: none;
}

.hidden {
  max-height: 0;
  opacity: 0;
  padding: 0;
}

.about-link {
  list-style-type: none;
  margin: 0;
}

.aboutme-logo {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.about-link a {
  color: #dce2f0;
  text-decoration: none;
  font-size: 20px;
  transition: color 0.3s;
}

.about-link a:hover {
  color: #2fb6e1;
}

/* ===========================
         Ana Düzen: 3 Sütunlu Grid
         =========================== */
main.grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: auto;
  margin: 40px auto;
  padding: 0 20px;
}

/* ===========================
         Sütun Başlıkları
         =========================== */
main.grid-layout section h2 {
  text-align: center;
  font-size: 24px;
  color: #2fb6e1;
  margin-bottom: 20px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ::after ile animasyonlu çizgi */
main.grid-layout section h2::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background: linear-gradient(90deg, transparent, #2fb6e1, transparent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.clickable-wrapper:hover h2 {
  color: #2fb6e1;
  text-shadow: 
    0 0 5px rgba(47, 182, 225, 0.8), 
    0 0 10px rgba(47, 182, 225, 0.6),
    0 0 15px rgba(47, 182, 225, 0.4);
  transform: translateY(-2px);
}
.clickable-wrapper:hover h2::after {
  width: 100%;
}

/* ===========================
         Sütun Konteynerleri
         =========================== */
.anime-column,
.oyun-column,
.film-column {
  background-color: #191b20;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

/* ===========================
         İçerik Kutuları
         =========================== */
.anime-box,
.oyun-box,
.film-box {
  background-color: #1f2126;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, background-color 0.3s;
}

.anime-box:hover,
.oyun-box:hover,
.film-box:hover {
  background-color: #272a30;
  transform: scale(1.02);
}

.clickable-wrapper {
  cursor: pointer;
  position: relative;
  display: block;
  height: 100%;
}

.full-column-link {
  inset: 0;
  z-index: 1;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

/* ===========================
         İnceleme Kartları
         =========================== */
.latest-review {
  flex: 1;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  width: 100%;
  background-color: #16181d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 450px; /* Sabit yükseklik */
}

.latest-review:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(47, 182, 225, 0.2);
}

.latest-review-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  position: relative;
}

.latest-review,
.latest-review-content,
.review-text {
  position: relative;
  z-index: 2;
}

.review-thumbnail {
  width: 100%;
  height: clamp(180px, 22vw, 220px);
  object-fit: cover;
  display: block;
}

.review-text {
  padding: 15px 15px 60px 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-text h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: #2fb6e1;
  margin: 0 0 10px;
}

.review-text p {
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  color: #b0b6c4;
  line-height: 1.5;
  margin: 0 0 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.read-more-button {
  position: absolute;
  bottom: 15px;
  left: 15px;
  padding: clamp(8px, 1.2vw, 14px) clamp(12px, 2vw, 20px);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  background-color: #2fb6e1;
  color: #121212;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;
  pointer-events: auto;
  z-index: 3;
  width: fit-content;
  max-width: calc(100% - 30px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.read-more-button:hover {
  background-color: #45d5ff;
  color: #000;
}

/* ===========================
         Footer
         =========================== */
.footer {
  background: #0f1115;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  gap: 2rem;
  color: #a0a5b9;
  font-size: 14px;
  font-weight: 400;
  font-family: Roboto, sans-serif;
  text-align: center;
  margin-top: 40px;
}

/* ===========================
         Responsive: Tablet
         =========================== */
@media (max-width: 1024px) {
  main.grid-layout {
    gap: 20px;
    padding: 0 15px;
    margin: 30px auto;
  }

  .anime-column,
  .oyun-column,
  .film-column {
    padding: 15px;
  }

  .aboutme {
    padding: 30px 50px;
  }

  .aboutme ul {
    gap: 40px;
  }
}

/* ===========================
         Responsive: Mobil Büyük (iPad Mini vb.)
         =========================== */
@media (max-width: 900px) {
  main.grid-layout {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .film-column {
    grid-column: 1 / -1;
  }

  .aboutme {
    padding: 25px 30px;
    font-size: 16px;
  }

  .aboutme ul {
    gap: 30px;
  }

  header {
    height: 120px;
    padding: 15px;
  }

  #logo {
    width: 150px;
  }
}

/* ===========================
         Responsive: Mobil Orta
         =========================== */
@media (max-width: 768px) {
  main.grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
    margin: 20px auto;
  }

  .anime-column,
  .oyun-column,
  .film-column {
    margin-bottom: 20px;
    padding: 15px;
  }

  .latest-review {
    height: 380px; /* Sabit yükseklik mobilde */
  }

  .review-text {
    padding: 15px 15px 65px 15px; /* Alt padding artırıldı */
  }

  .review-text h3 {
    font-size: 1.4rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .review-text p {
    font-size: 1rem;
    -webkit-line-clamp: 2; /* 4'ten 2'ye düşürüldü */
    line-clamp: 2;
  }

  .read-more-button {
    font-size: 0.9rem;
    padding: 10px 16px;
  }

  .aboutme {
    padding: 20px;
    font-size: 15px;
  }

  .aboutme ul {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .about-link a {
    font-size: 18px;
  }

  header {
    height: 100px;
    padding: 10px;
  }

  #logo {
    width: 120px;
  }

  .footer {
    font-size: 12px;
    padding: 15px;
    line-height: 1.4;
  }

  nav {
    gap: 1rem;
    padding: 0.8rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 14px;
  }
}

/* ===========================
         Responsive: Mobil Küçük
         =========================== */
@media (max-width: 480px) {
  header {
    height: 80px;
    padding: 8px;
  }

  #logo {
    width: 100px;
  }

  .aboutme {
    padding: 15px;
    font-size: 14px;
  }

  .aboutme ul {
    gap: 15px;
  }

  .about-link a {
    font-size: 16px;
  }

  .aboutme-logo {
    width: 20px;
    height: 20px;
  }

  main.grid-layout {
    margin: 15px auto;
    padding: 0 8px;
  }

  .anime-column,
  .oyun-column,
  .film-column {
    padding: 12px;
  }

  .latest-review {
    height: 320px; /* Sabit yükseklik küçük mobilde */
  }

  .review-text {
    padding: 12px 12px 55px 12px; /* Alt padding artırıldı */
  }

  .review-text h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .review-text p {
    font-size: 0.9rem;
    margin-bottom: 12px;
    -webkit-line-clamp: 1; /* Tek satıra düşürüldü */
    line-clamp: 1;
  }

  .read-more-button {
    bottom: 12px;
    left: 12px;
    font-size: 0.8rem;
    padding: 8px 12px;
    max-width: calc(100% - 24px);
  }

  .footer {
    font-size: 11px;
    padding: 12px 8px;
  }

  nav {
    gap: 0.5rem;
    padding: 0.6rem;
  }

  nav a {
    font-size: 13px;
  }

  .chevron {
    font-size: 20px;
  }
}

/* ===========================
         Responsive: Mobil Çok Küçük
         =========================== */
@media (max-width: 360px) {
  header {
    height: 70px;
    padding: 5px;
  }

  #logo {
    width: 80px;
  }

  .aboutme {
    padding: 10px;
    font-size: 13px;
  }

  main.grid-layout {
    margin: 10px auto;
    padding: 0 5px;
  }

  .anime-column,
  .oyun-column,
  .film-column {
    padding: 10px;
  }

  .latest-review {
    height: 280px; /* Sabit yükseklik çok küçük mobilde */
  }

  .review-text {
    padding: 10px 10px 50px 10px; /* Alt padding artırıldı */
  }

  .review-text h3 {
    font-size: 1.1rem;
  }

  .review-text p {
    font-size: 0.85rem;
    -webkit-line-clamp: 1; /* Tek satır */
    line-clamp: 1;
  }

  .read-more-button {
    bottom: 10px;
    left: 10px;
    font-size: 0.75rem;
    padding: 6px 10px;
    max-width: calc(100% - 20px);
  }
}
