/**
 * 360DailyTrend Homepage Layout Styles
 * HuffPost/Bloomberg-style sections
 */

/* ============================================
   SECTION TITLES
   ============================================ */

.dt-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
}

/* ============================================
   BADGES
   ============================================ */

.dt-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.dt-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.dt-badge:hover {
  opacity: 0.8;
}

.dt-badge-edition {
  background: #0066cc;
  color: #fff;
}

.dt-badge-category {
  background: #e53935;
  color: #fff;
}

/* ============================================
   TOP STORIES / HERO SECTION
   ============================================ */

.dt-top-stories {
  margin-bottom: 40px;
}

.dt-hero-card {
  margin-bottom: 30px;
}

.dt-hero-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
}

.dt-hero-title a {
  color: #111;
  text-decoration: none;
  transition: color 0.2s;
}

.dt-hero-title a:hover {
  color: #e53935;
}

.dt-hero-excerpt {
  font-size: 18px;
  line-height: 1.5;
  color: #444;
  margin-bottom: 20px;
}

.dt-hero-image {
  margin-top: 20px;
}

.dt-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   SECONDARY STORIES GRID
   ============================================ */

.dt-secondary-stories {
  margin-bottom: 40px;
}

.dt-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .dt-stories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.dt-story-card {
  display: flex;
  flex-direction: column;
}

.dt-story-image {
  margin-bottom: 12px;
  overflow: hidden;
}

.dt-story-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.dt-story-card:hover .dt-story-image img {
  transform: scale(1.05);
}

.dt-story-card .dt-badge {
  margin-bottom: 8px;
  align-self: flex-start;
}

.dt-story-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.dt-story-title a {
  color: #111;
  text-decoration: none;
  transition: color 0.2s;
}

.dt-story-title a:hover {
  color: #e53935;
}

.dt-story-time {
  font-size: 12px;
  color: #888;
}

/* ============================================
   LATEST + TRENDING TWO COLUMNS
   ============================================ */

.dt-latest-trending-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .dt-latest-trending-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Latest Section */
.dt-latest-section {
  margin-bottom: 40px;
}

.dt-latest-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dt-latest-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.dt-latest-item:last-child {
  border-bottom: none;
}

.dt-latest-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  overflow: hidden;
}

.dt-latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dt-latest-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dt-latest-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  line-height: 1.3;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.dt-latest-title:hover {
  color: #e53935;
}

.dt-latest-time {
  font-size: 12px;
  color: #888;
}

/* Trending Section */
.dt-trending-section {
  margin-bottom: 40px;
}

.dt-trending-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: trending;
}

.dt-trending-item {
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
}

.dt-trending-item:last-child {
  border-bottom: none;
}

.dt-trending-item::before {
  counter-increment: trending;
  content: counter(trending);
  font-size: 24px;
  font-weight: 900;
  color: #ddd;
  margin-right: 16px;
  min-width: 30px;
  line-height: 1;
}

.dt-trending-item a {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
}

.dt-trending-item a:hover {
  color: #e53935;
}

/* See All Links */
.dt-see-all {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #0066cc;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.dt-see-all:hover {
  color: #004499;
}

/* ============================================
   IN FOCUS SECTION
   ============================================ */

.dt-in-focus {
  margin-bottom: 40px;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.dt-in-focus .dt-section-title {
  border-bottom: none;
  margin-bottom: 16px;
  padding-bottom: 0;
}

.dt-focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dt-focus-tag {
  display: inline-block;
  padding: 10px 18px;
  background: #f5f5f5;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 24px;
  transition: all 0.2s;
}

.dt-focus-tag:hover {
  background: #333;
  color: #fff;
}

/* ============================================
   CATEGORY SECTIONS
   ============================================ */

.dt-category-section {
  margin-bottom: 50px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.dt-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dt-category-header .dt-section-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.dt-category-header .dt-see-all {
  margin-top: 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 480px) {
  .dt-hero-title {
    font-size: 26px;
  }
  
  .dt-hero-excerpt {
    font-size: 16px;
  }
  
  .dt-story-title {
    font-size: 16px;
  }
  
  .dt-latest-thumb {
    width: 70px;
    height: 50px;
  }
  
  .dt-focus-tag {
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ============================================
   SINGLE POST META (Edition + Category Labels)
   ============================================ */

.dt-post-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.dt-post-meta .dt-badge {
  font-size: 12px;
  padding: 5px 12px;
}

.dt-post-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.dt-post-byline .dt-author {
  font-weight: 600;
  color: #333;
}

.dt-post-byline .dt-separator {
  color: #ccc;
}

.dt-post-byline .dt-date,
.dt-post-byline .dt-read-time {
  color: #888;
}
