/* ============================================
   TEMEL CSS (Mobil - 480px ve altı)
   ============================================ */

.homepage {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 12px;
}

.hero-section {
  margin-bottom: 30px;
  padding: 0 0 30px;
  position: relative;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #e5e7eb 20%, #d1d5db 50%, #e5e7eb 80%, transparent 100%);
}

.hero-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 20px;
  text-align: left;
  letter-spacing: -1.5px;
  position: absolute;
  top: 15px;
  z-index: 10;
  line-height: 1.1;
  text-shadow: 0 4px 20px #00000080;
  max-width: 500px;
}

.hero-title-icon {
  display: inline-block;
  margin-right: 6px;
  filter: drop-shadow(0 2px 6px #ffd6008c);
  transform: translateY(-1px);
}

.hero-card:hover .hero-title-icon {
  transform: translateY(-3px);
  transition: transform .25s ease;
}

.hero-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 25%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #B80E0B, #e63946);
  border-radius: 2px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(5, 180px);
  gap: 12px;
}

.hero-card-large,
.hero-card-small {
  grid-column: span 1;
  grid-row: span 1;
}

.hero-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px #00000014;
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #b80e0b1a, #e639461a);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 1;
  pointer-events: none;
}

.hero-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px #b80e0b26;
}

.hero-card:hover::before {
  opacity: 1;
}

.hero-link {
  display: block;
  height: 100%;
  text-decoration: none;
}

.hero-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;

}

.hero-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-card:hover .hero-thumbnail img {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #111827f2 0%, #111827b3 40%, #1118274d 70%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: background .4s ease;
  z-index: 2;
}

.hero-card:hover .hero-overlay {
  background: linear-gradient(to top, #b80e0bf2 0%, #b80e0bb3 40%, #11182780 70%, transparent 100%);
}

.hero-content {
  width: 100%;
}

.hero-post-title {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px #0000004d;
  letter-spacing: -.2px;
}

.hero-card-large .hero-post-title {
  font-size: 17px;
  font-weight: 800;
  -webkit-line-clamp: 2;
  letter-spacing: -.5px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fffffff2;
  font-size: 11px;
  font-weight: 600;
}

.hero-meta time {
  background: #ffffff26;
  backdrop-filter: blur(10px);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #fff3;
}

.hero-read-more {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateX(-10px);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1), opacity .3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-read-more::after {
  content: '→';
  font-size: 16px;
  transition: transform .3s ease;
}

.hero-card:hover .hero-read-more {
  opacity: 1;
  transform: translateX(0);
}

.hero-card:hover .hero-read-more::after {
  transform: translateX(4px);
}


.homepage .content-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.homepage-content {
  min-width: 0;
  width: 100%;
}

.category-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  position: relative;
  background: var(--bg-surface);
}


.category-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.category-section:last-child::after {
  display: none;
}

.category-header {
  margin-bottom: 32px;
}

.category-title {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.5px;
  position: relative;
  padding-bottom: 16px;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--brand-gradient);
  border-radius: 2px;
}

.category-title a {
  color: var(--text-heading);
  text-decoration: none;
  transition: color .3s ease, transform .3s ease;
}

.category-title a:hover {
  color: #B80E0B;
  transform: translateX(4px);
}

.category-icon {
  font-size: 20px;
  filter: grayscale(0.3);
}

.category-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.category-post-card {
  background: var(--bg-widget-gradient);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px #0000000f;
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .4s cubic-bezier(0.4, 0, 0.2, 1), border-color .4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  position: relative;
}

.category-post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #b80e0b08, #e6394608);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}

.category-post-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
  border-color: #b80e0b33;
}

.category-post-card:hover::before {
  opacity: 1;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56%;
  overflow: hidden;
}

.card-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-post-card:hover .card-thumbnail img {
  transform: scale(1.06);
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #b80e0bd9 0%, #b80e0b66 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity .4s ease;
}

.category-post-card:hover .card-overlay {
  opacity: 1;
}

.read-more {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 2px 8px #0000004d;
}

.read-more::after {
  content: '→';
  font-size: 16px;
  transition: transform .3s ease;
}

.category-post-card:hover .read-more::after {
  transform: translateX(4px);
}

.card-content {
  padding: 16px;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  letter-spacing: -.2px;
  transition: color .15s ease;
}

.category-post-card:hover .card-title {
  color: #B80E0B;
}

.card-content time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-surface);
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.category-post-card:hover .card-content time {
  background: #fef2f2;
  border-color: #fecaca;
  color: #B80E0B;
}

.subcategories-wrapper {
  border-radius: 16px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-top: 40px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

.subcategory-block {
  margin-bottom: 0;
}

.subcategory-title {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  margin: 0 0 20px;
  padding-left: 10px;
  position: relative;
  letter-spacing: -.3px;
}


.subcategory-title a {
  color: var(--text-heading);
  text-decoration: none;
  transition: color .3s ease;
}

.subcategory-title a:hover {
  color: #B80E0B;
}

.subcategory-icon {
  color: var(--text-muted);
  font-size: 18px;
  margin-right: 8px;
}

.subcategory-posts-grid {
  display: grid;
  gap: 16px;
}


.subcategory-card .card-thumbnail {
  padding-bottom: 50%;
}

.subcategory-card .card-content {
  padding: 14px;
}

.subcategory-card .card-title {
  font-size: 13px;
  -webkit-line-clamp: 2;
}

.no-content {
  text-align: center;
  font-size: 18px;
  color: #9ca3af;
  padding: 100px 20px;
  font-weight: 500;
}

.homepage .ai-summary-widget,
body.home .ai-summary-widget {
  display: none !important;
}

/* ============================================
   MIN-WIDTH: 481px
   ============================================ */

@media (min-width: 481px) {

  .hero-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .hero-title::after {
    width: 120px;
    height: 3px;
	left: 27%;
  }

  .hero-grid {
    grid-template-rows: repeat(5, 220px);
    gap: 16px;
  }

  .hero-card-large .hero-post-title {
    font-size: 18px;
  }

  .hero-overlay {
    padding: 20px;
  }

  .hero-post-title {
    font-size: 16px;
  }

  .hero-meta {
    font-size: 12px;
  }

  .hero-meta time {
    padding: 4px 12px;
    font-size: 13px;
  }

  .category-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
  }

  .category-title {
    font-size: 22px;
  }

  .category-title::after {
    width: 50px;
  }

  .category-posts-grid {
    gap: 20px;
	grid-template-columns: repeat(2, 1fr);
  }

  .card-title {
    font-size: 14px;
  }

  .card-content time {
    font-size: 13px;
    padding: 6px 12px;
  }

  .subcategories-wrapper {
	grid-template-columns: repeat(3, 1fr);
    padding: 24px;
    gap: 30px;
  }

  .subcategory-title {
    font-size: 17px;
    padding-left: 12px;
  }

  .subcategory-card .card-content {
    padding: 16px;
  }

  .subcategory-card .card-title {
    font-size: 14px;
  }
}

/* ============================================
   MIN-WIDTH: 992px
   ============================================ */

@media (min-width: 992px) {

  .homepage .content-wrapper {
    grid-template-columns: 1fr 330px;
    gap: 40px;
  }

  .hero-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
  }

  .hero-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 16px;
  }

  .hero-card-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .hero-card-small {
    grid-column: span 1;
    grid-row: span 1;
  }

  .hero-title {
    font-size: 35px;
  }

  .hero-post-title {
    font-size: 17px;
  }

  .hero-card-large .hero-post-title {
    font-size: 24px;
    -webkit-line-clamp: 3;
  }

  .hero-overlay {
    padding: 24px;
  }

  .hero-meta {
    font-size: 13px;
  }

.category-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px #00000014;
    padding: 4%;
}

  .category-title {
    font-size: 26px;
    gap: 12px;
  }

  .category-icon {
    font-size: 24px;
  }

  .category-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .card-content {
    padding: 20px;
  }

  .card-title {
    font-size: 15px;
  }

  .subcategories-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    padding: 32px;
    gap: 40px;
  }

  .subcategory-title {
    font-size: 18px;
  }
}