/* Haberler Page Styles */

.search-container {
  max-width: 32rem;
  margin: 0 auto;
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: #94a3b8;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  color: #0F172A;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-input::placeholder {
  color: #94a3b8;
}

.search-input:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Breaking News */
.breaking-news {
  padding: 0 1rem 2rem;
}

.breaking-card {
  background: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
}

.breaking-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.breaking-badge {
  background: #dc2626;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.breaking-title {
  color: #0F172A;
  font-weight: bold;
}

.breaking-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.breaking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breaking-item h3 {
  color: #0F172A;
  cursor: pointer;
  transition: color 0.3s;
}

.breaking-item h3:hover {
  color: #2563EB;
}

.breaking-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
}

.clock-icon {
  width: 1rem;
  height: 1rem;
}

/* Categories */
.categories {
  padding: 0 1rem 2rem;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.category-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  background: #f1f5f9;
  color: #64748b;
}

.category-btn:hover {
  background: #e2e8f0;
}

.category-btn.active {
  background: #2563EB;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* Trending News */
.trending-news {
  padding: 0 1rem 4rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.trending-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #2563EB;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: #0F172A;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* News Grid */
.news-grid {
  padding: 0 1rem 4rem;
}

.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
  border-color: #2563EB;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
  height: 12rem;
  background: linear-gradient(135deg, #2563EB, #60A5FA);
  position: relative;
}

.news-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.8);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
}

.urgent-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #dc2626;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: bold;
  animation: pulse 2s infinite;
}

.trending-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #2563EB;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trending-badge svg {
  width: 1rem;
  height: 1rem;
}

.news-content {
  padding: 1.5rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.news-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.news-meta svg {
  width: 0.75rem;
  height: 0.75rem;
}

.news-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #0F172A;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  color: #2563EB;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.read-more:hover {
  color: #1E40AF;
}

.read-more svg {
  width: 1rem;
  height: 1rem;
}

/* Newsletter */
.newsletter {
  background: #f8fafc;
  padding: 4rem 1rem;
}

.newsletter-card {
  background: linear-gradient(135deg, #2563EB, #1E40AF);
  border-radius: 1.5rem;
  padding: 3rem;
  text-align: center;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: bold;
  color: white;
  margin-bottom: 1rem;
}

.newsletter-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 24rem;
  margin: 0 auto;
}

.newsletter-input {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1rem;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
  outline: none;
  border-color: white;
}

.newsletter-btn {
  background: white;
  color: #2563EB;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-btn:hover {
  background: #f1f5f9;
}

.arrow-right {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }

  .newsletter-input {
    flex: 1;
  }
}

/* No News Empty State */
.no-news {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 50%, #EFF6FF 100%);
  border-radius: 1.5rem;
  border: 1px solid #e2e8f0;
  max-width: 600px;
  margin: 2rem auto;
}

.no-news-icon {
  width: 6rem;
  height: 6rem;
  background: linear-gradient(135deg, #2563EB, #1E40AF);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.no-news-icon svg {
  stroke: #fff;
}

.no-news h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.75rem;
}

.no-news p {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 400px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.no-news-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #2563EB, #1E40AF);
  color: #fff;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.no-news-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  text-decoration: none;
  color: #fff;
}
