/**
 * Movie Previews Shortcode Styles
 * Mirrors the structure and styling from the Vue.js implementation
 */

/* Container Styles */
.mp-article-parent-container {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.mp-article-container {
  display: flex;
  column-gap: 20px;
}

/* Featured Image Styles */
.mp-featured-image {
  height: 200px !important;
  max-height: 200px !important;
  border-radius: 4px; /* Optional */
  background-color: grey !important;
  min-width: 35% !important;
  max-width: 35% !important;
  padding: 0 !important;
}

.mp-featured-image img {
  height: 100% !important;
  width: 100% !important;
  border-radius: 4px !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Article Info Styles */
.mp-article-info {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  width: 65% !important;
}

.mp-article-info .mp-category {
  color: var(--e-global-color-primary);
  text-transform: uppercase;
  font-family: "Karla", "EB Garamond", serif;
  font-size: 0.75rem;
  font-weight: 700;
  box-sizing: border-box;
}

.mp-article-info h4 {
  color: var(--e-global-color-secondary);
  font-family: "Kepler-std Semicondensed Display", "EB Garamond", serif;
  font-size: 29px;
  font-weight: bold;
  line-height: 28px;
  margin-bottom: 0 !important;
}

.mp-article-info .mp-excerpt {
  text-align: left;
  color: var(--e-global-color-astglobalcolor1);
  font-family: "Karla", "EB Garamond", serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2em;
}

.mp-article-info .mp-byline {
  text-align: left;
  color: var(--e-global-color-astglobalcolor1);
  font-family: "Karla", "EB Garamond", serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block !important;
}

/* Divider Styles */
.mp-article-parent-container .mp-divider-separator {
  border-top: 0.25px dotted #000;
  width: 100%;
  min-height: initial;
  height: auto;
  display: inline-block;
}

/* Pagination Styles */
.mp-pagination {
  font-size: 1rem;
  text-transform: uppercase !important;
  display: flex;
  align-items: center;
  column-gap: 10px !important;
  margin-top: 20px;
}

.mp-pagination .mp-current-page {
  color: var(--e-global-color-primary) !important;
  font-weight: bold;
}

.mp-pagination .mp-page {
  cursor: pointer;
  transition: color 0.3s ease;
}

.mp-pagination .mp-page:hover {
  color: var(--e-global-color-primary);
}

.mp-pagination .mp-button {
  background-color: var(--e-global-color-primary);
  color: white;
  width: 43px;
  height: 43px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem !important;
  border-radius: 50%;
  padding: 10px 13px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mp-pagination .mp-button:hover {
  background-color: var(--e-global-color-primary);
  color: white;
}

.mp-pagination .mp-btn-plural {
  padding: 10px !important;
}

/* Skeleton Loader Styles */
.mp-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: mp-loading 1.5s infinite;
}

@keyframes mp-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.mp-skeleton-image {
  height: 200px !important;
  width: 100%;
}

.mp-skeleton-category {
  height: 12px;
  width: 40%;
  border-radius: 4px;
}

.mp-skeleton-title {
  height: 28px;
  width: 90%;
  border-radius: 4px;
}

.mp-skeleton-excerpt {
  height: 16px;
  width: 100%;
  border-radius: 4px;
}

.mp-skeleton-byline {
  height: 12px;
  width: 50%;
  border-radius: 4px;
}

/* Link Styles */
.mp-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.mp-post-link:hover .mp-article-info h4 {
  color: var(--e-global-color-primary);
  transition: color 0.3s ease;
}

/* Hide utility class */
.hide-all {
  display: none !important;
}

/* Responsive Styles */
@media screen and (max-width: 767px) {
  .mp-featured-image {
    height: 150px !important;
    max-height: 150px !important;
    min-width: 36% !important;
    max-width: 36% !important;
  }

  .mp-article-info {
    width: 64% !important;
  }

  .mp-article-info h4 {
    font-size: 22px;
    line-height: 24px;
  }

  .mp-article-info .mp-excerpt {
    font-size: 0.875rem;
  }

  .mp-pagination {
    font-size: 0.875rem;
  }

  .mp-pagination .mp-button {
    padding: 8px 10px;
  }

  .mp-pagination .mp-btn-plural {
    padding: 8px !important;
  }

  .mp-skeleton-image {
    height: 150px !important;
    width: 100%;
  }
}
/* End of movie_previews_shortcode.css */
