/* ==========================================================================
   Card 005 Component - Horizontal Column Card (Compact)
   ========================================================================== */

/* Base Horizontal Card */
:where(.c-card-005) {
  display: flex;
  flex-direction: row;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(118, 197, 118, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  min-height: 140px;
  text-decoration: none;
  color: inherit;
}

:where(.c-card-005:hover) {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(118, 197, 118, 0.2);
}

/* Card Image Container */
:where(.c-card-005__image) {
  position: relative;
  width: 35%;
  min-width: 140px;
  max-width: 180px;
  overflow: hidden;
  background: var(--wp--preset--color--gray-200);
  flex-shrink: 0;
}

:where(.c-card-005__image img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

:where(.c-card-005:hover .c-card-005__image img) {
  transform: scale(1.05);
}

/* No Image Placeholder */
:where(.c-card-005__no-image) {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--wp--preset--spacing--sm);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

:where(.c-card-005__no-image-icon) {
  width: 40px;
  height: 40px;
  opacity: 0.2;
}

:where(.c-card-005__no-image-text) {
  font-size: var(--wp--preset--font-size--2xs);
  color: var(--wp--preset--color--basic-text);
  opacity: 0.3;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Category Badge */
:where(.c-card-005__category) {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  font-size: var(--wp--preset--font-size--2xs);
  font-weight: 600;
  color: var(--wp--preset--color--primary-700);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Card Content */
:where(.c-card-005__content) {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--wp--preset--spacing--lg) var(--wp--preset--spacing--20);
  justify-content: space-between;
}

/* Date */
:where(.c-card-005__date) {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--basic-text);
  opacity: 0.7;
  margin-bottom: var(--wp--preset--spacing--sm);
}

:where(.c-card-005__date .material-symbols-outlined) {
  font-size: 14px;
  color: var(--wp--preset--color--primary-500);
}

/* Card Title */
:where(.c-card-005__title) {
  font-size: var(--wp--preset--font-size--base);
  font-weight: 700;
  color: var(--wp--preset--color--basic-text);
  margin-bottom: var(--wp--preset--spacing--sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Card Footer */
:where(.c-card-005__footer) {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Read More Text */
:where(.c-card-005__readmore) {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--primary);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

:where(.c-card-005:hover .c-card-005__readmore) {
  opacity: 1;
}

/* Arrow Link */
:where(.c-card-005__arrow) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--wp--preset--color--primary);
  border-radius: 50%;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

:where(.c-card-005:hover .c-card-005__arrow) {
  transform: translateX(3px);
}

:where(.c-card-005__arrow .material-symbols-outlined) {
  color: white;
  font-size: 14px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
}

/* Left Border Accent */
:where(.c-card-005::before) {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--wp--preset--color--primary-500),
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

:where(.c-card-005:hover::before) {
  opacity: 0.6;
}

/* Variations */

/* Without Image */
:where(.c-card-005--no-image) {
  .c-card-005__image {
    display: none;
  }

  .c-card-005__content {
    padding: var(--wp--preset--spacing--xs);
  }
}

/* Small Variant */
:where(.c-card-005--small) {
  min-height: 100px;

  .c-card-005__image {
    max-width: 120px;
  }

  .c-card-005__content {
    padding: var(--wp--preset--spacing--20);
  }

  .c-card-005__title {
    font-size: var(--wp--preset--font-size--sm);
  }
}
