/* ==========================================================================
   WeezirTech Editorial Bento-Grid System (2026 Master Edition)
   - Top Showcase:
       * Trend Projeler (Dark Obsidian, 5 items)
       * Derinlemesine Analizler (Clean white list, no overflow)
   - Lower Section:
       * 3-Column Responsive Editorial Bento Grid
       * Topluluk Neler Tartışıyor: Spans 2 Rows Tall (grid-row: span 2)
         matching the exact user visual specification!
       * Real avatar illustrations (Dicebear / persona avatars)
       * Direct anchor linking to #yt-cmt-{id}
       * Full-Bleed Hero Showcase cards with dark gradient overlay
       * Vertical crisp white editorial cards
   ========================================================================== */

/* Main Container */
.wz-showcase-container {
  max-width: 1240px;
  margin: 18px auto 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ==========================================================================
   1. TOP DUAL SHOWCASE ROW
   ========================================================================== */
.wz-dual-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .wz-dual-showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* Base Card */
.wz-showcase-card {
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 1A. LEFT: TREND PROJELER (Dark Obsidian, Fully Packed) */
.wz-trend-card {
  background: linear-gradient(145deg, #0e1626 0%, #080c15 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  padding: 15px 16px;
  justify-content: space-between;
}

.wz-trend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.wz-trend-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wz-trend-badge-fire {
  background: linear-gradient(135deg, #ff5722, #f97316);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2.5px 7px;
  border-radius: 12px;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.wz-trend-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.wz-trend-link {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.wz-trend-link:hover {
  color: #38bdf8;
}

.wz-trend-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.wz-trend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: all 0.2s ease;
}

.wz-trend-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateX(2px);
}

.wz-rank-num {
  font-size: 12px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wz-rank-1 { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.wz-rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.wz-rank-3 { background: linear-gradient(135deg, #b45309, #78350f); color: #fff; }
.wz-rank-4, .wz-rank-5, .wz-rank-6 { background: rgba(255, 255, 255, 0.07); color: #94a3b8; }

.wz-trend-thumb {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wz-trend-info {
  flex: 1;
  min-width: 0;
}

.wz-trend-name {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.wz-trend-sub {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wz-trend-cat {
  color: #38bdf8;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.wz-trend-metrics {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wz-metric-fire {
  color: #fb923c;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.wz-metric-comments {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 8px;
}

.wz-trend-chevron {
  color: #64748b;
  font-size: 13px;
  flex-shrink: 0;
}


/* 1B. RIGHT: DERİNLEMESİNE ANALİZLER */
.wz-tools-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  padding: 15px 16px;
  justify-content: space-between;
  overflow: hidden;
}

.wz-tools-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.wz-tools-title-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.wz-tools-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
}

.wz-tools-title {
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.wz-tools-link {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.wz-tools-link:hover {
  color: #7c3aed;
}

.wz-tools-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.wz-tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 9px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  text-decoration: none;
  transition: all 0.2s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.wz-tool-item:hover {
  border-color: #8b5cf6;
  background: #fdfcff;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.08);
}

.wz-tool-thumb {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.wz-tool-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.wz-tool-title {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.wz-tool-desc {
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ==========================================================================
   2. LOWER SECTION: 3-COLUMN RESPONSIVE EDITORIAL BENTO GRID
   ========================================================================== */
.editorial-bento-section {
  max-width: 1240px;
  margin: 0 auto 36px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.editorial-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .editorial-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wz-bento-debates-card {
    grid-column: span 2 !important;
    grid-row: span 1 !important;
  }
}

@media (max-width: 640px) {
  .editorial-bento-grid {
    grid-template-columns: 1fr !important;
  }
  .bento-card-hero {
    grid-column: span 1 !important;
    min-height: 240px !important;
  }
  .wz-bento-debates-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* Category Badge (Floating Overlay) */
.bento-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2.5px 7px;
  border-radius: 4px;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  z-index: 4;
  white-space: nowrap;
}

.cat-badge-ai { background: rgba(124, 58, 237, 0.94); }
.cat-badge-hardware { background: rgba(220, 38, 38, 0.94); }
.cat-badge-software { background: rgba(37, 99, 235, 0.94); }
.cat-badge-data { background: rgba(5, 150, 105, 0.94); }
.cat-badge-cyber { background: rgba(234, 88, 12, 0.94); }
.cat-badge-columnist { background: rgba(15, 23, 42, 0.94); }


/* ==========================================================================
   2A. FULL-BLEED IMAGE HERO SHOWCASE CARD (SPANS 2 COLUMNS)
   ========================================================================== */
.bento-card-hero {
  grid-column: span 2;
  position: relative;
  min-height: 270px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  background: #0b1120;
}

.bento-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.bento-card-hero:hover .bento-hero-bg {
  transform: scale(1.04);
}

.bento-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 29, 0.05) 0%,
    rgba(10, 15, 29, 0.45) 40%,
    rgba(10, 15, 29, 0.94) 100%
  );
  z-index: 2;
  transition: background 0.3s ease;
}

.bento-card-hero:hover .bento-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 15, 29, 0.0) 0%,
    rgba(10, 15, 29, 0.5) 35%,
    rgba(10, 15, 29, 0.97) 100%
  );
}

.bento-hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}

.bento-hero-title {
  color: #ffffff;
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.34;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.bento-card-hero:hover .bento-hero-title {
  color: #38bdf8;
}

.bento-hero-excerpt {
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0 0 8px 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-hero-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bento-hero-meta .bento-meta-comments {
  color: #38bdf8;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1.5px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}


/* ==========================================================================
   2B. VERTICAL EDITORIAL CARD (SPANS 1 COLUMN, CRISP WHITE & DENSE)
   ========================================================================== */
.bento-card-vert {
  grid-column: span 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 11px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.bento-card-vert:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.bento-vert-thumb-wrap {
  width: 100%;
  height: 125px;
  border-radius: 9px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #f1f5f9;
}

.bento-vert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bento-vert-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.bento-vert-title {
  font-size: 14px;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.32;
  margin: 0 0 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bento-card-vert:hover .bento-vert-title {
  color: #2563eb;
}

.bento-vert-excerpt {
  font-size: 12px;
  color: #475569;
  line-height: 1.42;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.bento-vert-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  margin-top: auto;
  padding-top: 6px;
}

.bento-vert-meta .bento-meta-comments {
  color: #0284c7;
  font-weight: 700;
  background: #f0f9ff;
  border: 1px solid #e0f2fe;
  padding: 1px 6px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.bento-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.bento-meta-dot {
  font-size: 7px;
  color: #cbd5e1;
  flex-shrink: 0;
}


/* ==========================================================================
   2C. COMMUNITY DEBATES CARD (SPANS 2 ROWS TALL, FILLS RIGHT COLUMN!)
   ========================================================================== */
.wz-bento-debates-card {
  grid-column: span 1;
  grid-row: span 2; /* 2 Rows Tall as highlighted in red! */
  background: linear-gradient(145deg, #0b132b 0%, #070c1b 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.wz-bento-debates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wz-bento-debates-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wz-bento-debates-badge {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-size: 10px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 10px;
}

.wz-bento-debates-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: space-around;
}

/* Debate Row Link with Direct Anchor */
.wz-bento-debate-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: all 0.2s ease;
}

.wz-bento-debate-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateX(2px);
}

.wz-bento-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wz-bento-user-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Colorful Illustrated Bot Avatar */
.wz-bento-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: #1e293b;
}

.wz-bento-username {
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

.wz-bento-time {
  color: #94a3b8;
  font-size: 10.5px;
}

.wz-bento-snippet {
  color: #cbd5e1;
  font-size: 11.5px;
  line-height: 1.38;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}

.wz-bento-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.wz-bento-target-title {
  color: #38bdf8;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72%;
}

.wz-bento-count-pill {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 6px;
}
