/**
 * Module: Featured Dual Styles
 */

/* ===================================
   FEATURED DUAL MODULE
   =================================== */

.mod-featured-dual {
  margin: var(--tcp-space-12) 0;
}

/* Wrapper */
.featured-dual-wrapper {
  display: flex;
  gap: var(--tcp-space-8);
}

/* Reversed order */
.featured-dual-wrapper.reversed {
  flex-direction: row-reverse;
}

/* Small Column (1/4) */
.featured-dual-small {
  flex: 0 0 25%;
  max-width: 25%;
  display: flex;
  flex-direction: column;
  gap: 0 var(--tcp-space-4);
}

/* Featured Column (3/4) */
.featured-dual-large {
  flex: 0 0 calc(75% - var(--tcp-space-8));
  max-width: calc(75% - var(--tcp-space-8));
  display: flex;
  flex-direction: column;
  gap: 0 var(--tcp-space-4);
}

/* ===================================
   SMALL POSTS (1/4 Column)
   =================================== */

.small-posts {
  display: flex;
  flex-direction: column;
  gap: var(--tcp-space-6);
}

.small-post-item {
  display: flex;
  flex-direction: column;
}

.small-post-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: var(--tcp-space-3);
}

.small-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.small-post-image a:hover img {
  transform: scale(1.05);
}

.small-post-title {
  font-family: var(--tcp-font-display);
  font-size: var(--tcp-text-base);
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.small-post-title a {
  color: var(--tcp-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.small-post-title a:hover {
  color: var(--tcp-primary);
}

.small-post-date {
  font-family: var(--tcp-font-primary);
  font-size: var(--tcp-text-sm);
  color: var(--tcp-gray-500);
  font-style: italic;
  display: block;
  margin-top: var(--tcp-space-1);
}

/* ===================================
   FEATURED POST (3/4 Column)
   =================================== */

.large-post-item {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.large-post-link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.large-post-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

.large-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.large-post-link:hover .large-post-image img {
  transform: scale(1.03);
}

/* Gradient Overlay */
.large-post-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

/* Content Overlay */
.large-post-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--tcp-space-6);
  z-index: 2;
}

.large-post-title {
  font-family: var(--tcp-font-display);
  font-size: var(--tcp-text-2xl);
  font-weight: 600;
  line-height: 1.2;
  color: var(--tcp-white);
  margin: 0 0 var(--tcp-space-2) 0;
}

.large-post-meta {
  display: flex;
  align-items: center;
  gap: var(--tcp-space-2);
  font-family: var(--tcp-font-primary);
  font-size: var(--tcp-text-sm);
  color: var(--tcp-white);
  font-style: italic;
}

.large-post-author {
  font-weight: 600;
}

.large-post-separator {
  opacity: 0.7;
}

.large-post-date {
  opacity: 0.9;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
  .featured-dual-small {
    flex: 0 0 30%;
    max-width: 30%;
  }

  .featured-dual-large {
    flex: 0 0 calc(70% - var(--tcp-space-8));
    max-width: calc(70% - var(--tcp-space-8));
  }

  .large-post-title {
    font-size: var(--tcp-text-xl);
  }

  .large-post-image {
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .mod-featured-dual {
    margin: var(--tcp-space-8) 0;
  }

  .featured-dual-wrapper,
  .featured-dual-wrapper.reversed {
    flex-direction: column;
  }

  .featured-dual-small,
  .featured-dual-large {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .small-posts {
    flex-direction: row;
    gap: var(--tcp-space-4);
  }

  .small-post-item {
    flex: 1;
  }

  .large-post-image {
    min-height: 300px;
  }

  .large-post-title {
    font-size: var(--tcp-text-lg);
  }

  .large-post-content {
    padding: var(--tcp-space-4);
  }

  .large-post-meta {
    font-size: var(--tcp-text-xs);
  }
}

@media (max-width: 480px) {
  .mod-featured-dual {
    margin: var(--tcp-space-6) 0;
  }

  .small-posts {
    flex-direction: column;
  }

  .large-post-image {
    min-height: 250px;
  }

  .large-post-title {
    font-size: var(--tcp-text-base);
  }

  .large-post-content {
    padding: var(--tcp-space-3);
  }

  .small-post-title {
    font-size: var(--tcp-text-sm);
  }
}
