/* Homepage-specific styles (resources/views/index.blade.php) */

.three-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.three-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* News preview grid (compact, shown inside the #haberler section) */
.haberler-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .haberler-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .haberler-grid {
    grid-template-columns: 1fr;
  }
}

.haber-card {
  background: transparent;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  max-width: 400px;
  transition: transform 0.4s ease;
  text-align: left;
}

.haber-card:hover {
  transform: translateY(-4px);
}

.haber-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 20px;
}

.haber-content {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.haber-date {
  font-size: 0.9rem;
  color: #111;
  font-weight: 700;
  margin-bottom: 8px;
}

.haber-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.haber-excerpt {
  font-size: 1rem;
  color: #6e7a8a;
  margin-bottom: 20px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.haber-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #141c23;
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.haber-btn:hover {
  opacity: 0.8;
}
