/* ============================================
   GLOBAL AYARLAR ve FONTS
============================================ */
body {
  font-family: 'Outfit', sans-serif;
  color: #212529;
  position: relative;
  z-index: 1;
  background: #f5f6fa;
}

body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  background-image: url('../img/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.08;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   ÜST BAŞLIK ALANI
============================================ */
.test-page-header {
  text-align: center;
  padding: 60px 20px 30px;
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  margin-bottom: 40px;
}

.test-page-header-inner h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #212529;
}

.test-page-header-inner p {
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   CONTAINER VE KART GRID YAPISI
============================================ */
.psiko-test-wrapper {
  padding: 40px 20px 80px;
  max-width: 1400px;
  margin: auto;
}

.psiko-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* ============================================
   TEST KARTI PREMIUM TASARIM
============================================ */
.test-list-box {
  width: 380px;
  height: 560px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  text-align: center;
}

.test-list-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* === KATEGORİ ROZETİ === */
.test-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #f59e0b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 2;
}

/* === GÖRSEL KONTEYNER + OVERLAY === */
.test-list-image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.test-list-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.00), rgba(0,0,0,0.15));
  z-index: 1;
}

.test-list-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
  z-index: 0;
}

.test-list-box:hover .test-list-image-container img {
  transform: scale(1.06);
}

/* === BAŞLIK === */
.test-list-title {
  font-size: 22px;
  font-weight: 700;
  color: #212529;
  margin-top: 14px;
  margin-bottom: 12px;
  text-decoration: none;
  line-height: 1.4;
  flex-shrink: 0;
}

/* === AÇIKLAMA === */
.test-list-summary {
  font-size: 16px;
  color: #555;
  text-align: justify;
  margin-bottom: 20px;
  line-height: 1.5;
  min-height: 110px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  flex-grow: 1;
  transition: all 0.3s ease;
}

.test-list-box:hover .test-list-summary {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* === BUTON (İKONLU, KÜÇÜK, MODERN) === */
.test-list-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border: none;
  border-radius: 40px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
  margin-top: 12px;
}

.test-list-button:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
}

.test-list-button i {
  font-size: 14px;
}

/* ============================================
   RESPONSIVE AYARLAR
============================================ */
@media (max-width: 992px) {
  .test-list-box {
    width: 100%;
    max-width: 400px;
  }
}
