/*--------------------------------------------------------------
# Hero Home - Layout da Imagem
--------------------------------------------------------------*/

.hero-home {
  background: linear-gradient(135deg, #F8F9FF 0%, #FFF 100%);
  padding: 80px 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-home {
    padding: 60px 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* Hero Content (Left) */
.hero-content {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E0F7FF;
  color: #0090C8;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
}

.hero-badge svg {
  width: 12px;
  height: 12px;
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  font-family: 'Fraunces', serif;
  color: #0D1117;
}

.gradient-text {
  background: linear-gradient(135deg, #5B59FF 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: #3A3D52;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #5B59FF 0%, #7B2EFF 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(91, 89, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(91, 89, 255, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F5F5F7;
  color: #0D1117;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #ECECEF;
}

/* Featured Card (Right) */
.hero-featured {
  position: relative;
}

.featured-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(13, 17, 23, 0.12);
  cursor: pointer;
  transition: all 0.4s;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 64px rgba(13, 17, 23, 0.18);
}

.featured-image {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
  background: #F5F5F7;
}

.featured-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

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

.featured-body {
  padding: 28px;
}

.featured-category {
  display: inline-block;
  background: #E0F7FF;
  color: #0090C8;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.featured-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #0D1117;
  margin-bottom: 12px;
  font-family: 'Fraunces', serif;
}

.featured-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 16px;
}

.featured-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #999999;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/

.section-padding {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

.bg-secondary {
  background: #FAFAFA;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-header.text-center {
  flex-direction: column;
  text-align: center;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  font-family: 'Fraunces', serif;
  color: #0D1117;
  margin: 0;
}

.section-link {
  color: #0090C8;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.section-link:hover {
  color: #7B2EFF;
}

/*--------------------------------------------------------------
# Posts Grid
--------------------------------------------------------------*/

.posts-grid {
  display: grid;
  gap: 32px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

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

/*--------------------------------------------------------------
# Categories Grid
--------------------------------------------------------------*/

.categories-grid {
  display: grid;
  gap: 24px;
}

.category-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: #0090C8;
  box-shadow: 0 8px 32px rgba(0, 144, 200, 0.15);
}

.category-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.category-name {
  font-size: 20px;
  font-weight: 700;
  color: #0D1117;
  margin-bottom: 8px;
}

.category-count {
  font-size: 14px;
  color: #999999;
}

/*--------------------------------------------------------------
# Popular Posts
--------------------------------------------------------------*/

.popular-posts-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.popular-post-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  transition: all 0.3s;
}

.popular-post-item:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 24px rgba(13, 17, 23, 0.08);
}

.popular-number {
  font-size: 32px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  color: #E5E5E5;
  min-width: 50px;
}

.popular-thumbnail {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.popular-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-content {
  flex: 1;
}

.popular-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  margin-top: 8px;
}

.popular-title a {
  color: #0D1117;
  text-decoration: none;
  transition: color 0.2s;
}

.popular-title a:hover {
  color: #0090C8;
}

.popular-meta {
  font-size: 13px;
  color: #999999;
}
