/* ==========================================================================
   Card 004 Component - Vertical Column Card (Featured)
   ========================================================================== */

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

:where(.c-card-004:hover) {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(118, 197, 118, 0.2);
}

/* Card Image Container */
:where(.c-card-004__image) {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: var(--wp--preset--color--gray-200);
}

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

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

/* No Image Placeholder */
:where(.c-card-004__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-004__no-image-icon) {
  width: 60px;
  height: 60px;
  opacity: 0.2;
}

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

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

/* Card Content */
:where(.c-card-004__content) {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--lg);
}

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

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

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

/* Card Excerpt */
:where(.c-card-004__excerpt) {
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1.8;
  color: var(--wp--preset--color--basic-text);
  opacity: 0.8;
  margin-bottom: var(--wp--preset--spacing--lg);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

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

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

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

/* Top Gradient Bar */
:where(.c-card-004::before) {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--wp--preset--color--primary-700),
    var(--wp--preset--color--primary-500),
    var(--wp--preset--color--primary-300)
  );
  opacity: 0.8;
  z-index: 2;
}
