/* ============================================
   ARTICLE STYLES
   Includes article page styles and article card components
   ============================================ */

/* ========== ARTICLE PAGE STYLES (single.php) ========== */
.article {
  display: grid;
  grid-template-columns: 3fr 1fr;
  grid-template-rows: auto auto auto auto auto;
  grid-gap: 2.5000rem;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  align-items: start;
  max-width: 100%;
  margin: 0 auto
}



.article__header {
  grid-row: 1;
  grid-column: 1;
}

.article__header .breadcrumbs {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.875rem
}

.article__header .breadcrumbs a {
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem
}

.article__header .breadcrumbs a:hover {
  color: var(--color-primary)
}

.article__header .breadcrumbs a .material-icons {
  font-size: 1rem;
  color: var(--color-text-disabled)
}

.article__header .breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 0.5rem;
  color: var(--color-text-disabled);
  font-weight: 300
}

.article__header img {
  border-radius: 0.75rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease
}

.article__header img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2)
}

.article__header .btn {
  display: block;
  margin-top: 2rem;
  margin-left: 0;
  margin-right: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)
}

.article__header .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 18, 18, 0.3)
}

.article__body {
  grid-row: 2;
  grid-column: 1;
  line-height: 1.8;
  color: var(--color-text);
  font-size: 1.125rem
}

.article__body h2,
.article__body h3,
.article__body h4 {
  color: var(--color-text);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.3
}

.article__body h2 {
  font-size: 1.75rem
}

.article__body h3 {
  font-size: 1.5rem
}

.article__body h4 {
  font-size: 1.25rem
}

.article__body p {
  margin-bottom: 1.5rem
}

.article__body ul,
.article__body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem
}

.article__body li {
  margin-bottom: 0.5rem
}

.article__body blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-alt);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border-left: 4px solid var(--color-primary)
}

.article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1)
}

.article .container__sidebar {
  grid-row: 1 / 6;
  grid-column: 2;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  height: fit-content
}

.article__title {
  font-size: var(--fs-2xl);
  margin-bottom: .75rem
}

.article__description {
  font-size: var(--fs-lg);
  line-height: 1.4;
  margin-bottom: 1rem
}

.article__details {
  color: var(--color-text-disabled);
  margin-bottom: 1.5rem;
  text-transform: uppercase
}

.article__details a {
  color: var(--color-text-tertiary);
  margin-right: 1rem;
  font-weight: 700
}

.article__details time {
  color: var(--color-text-subtle)
}

.article__views {
  display: flex;
  align-items: center;
  gap: 0.2500rem;
  color: var(--color-text-subtle);
  font-size: inherit;
  text-transform: none
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 1.5000rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-subtle)
}

.article__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500
}

.article__author {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease
}

.article__author:hover {
  color: var(--color-primary);
  text-decoration: underline
}

.article__author .material-icons {
  font-size: 1.125rem
}

.article__meta-item .material-icons {
  font-size: 1rem;
  color: var(--color-text-disabled)
}

.article__meta-item time,
.article__meta-item .article-card__read-time,
.article__meta-item .article__views {
  color: var(--color-text-subtle)
}

/* ========== ARTICLE NAVIGATION STYLES ========== */
.article__navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0 2rem;
  padding: 0;
  grid-column: 1;
  grid-row: 3;
}

.article__nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden
}

.article__nav-link:hover {
  border-color: var(--color-primary);
  background-color: var(--color-surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1)
}

.article__nav-link--next {
  text-align: right;
  justify-content: flex-end
}

.article__nav-link--next .article__nav-content {
  order: -1
}

.article__nav-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0
}

.article__nav-label {
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em
}

.article__nav-title {
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.4;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.article__nav-link .material-icons {
  font-size: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease
}

.article__nav-link:hover .material-icons {
  transform: translateX(-3px)
}

.article__nav-link--next:hover .material-icons {
  transform: translateX(3px)
}

/* ========== RELATED ARTICLES STYLES ========== */
.article__related {
  grid-column: 1;
  grid-row: 4;
}

.article__related-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--color-text);
  text-align: center
}

.article-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem
}

.article__comments {
  grid-column: 1;
  grid-row: 5;
  margin-top: 2rem;
}

.article__comments-title {
  font-size: 1.75rem;
  margin-bottom: 2.5rem;
  color: var(--color-text);
  text-align: center;
  position: relative
}

.article__comments-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px
}



/* ========== MOBILE UX ENHANCEMENTS ========== */
/* Sticky Article Header */
.article__sticky-header {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  display: none
}

.article__sticky-header--visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible
}

.article__sticky-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem
}

.article__sticky-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.article__sticky-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--color-text-secondary)
}

.article__sticky-author,
.article__sticky-read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem
}

.article__sticky-author .material-icons,
.article__sticky-read-time .material-icons {
  font-size: 0.875rem
}

.article__sticky-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--color-text-disabled);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease
}

.article__sticky-close:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-text)
}

.article__sticky-close .material-icons {
  font-size: 1rem
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border-subtle);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem;
  z-index: 200;
  display: none
}

.mobile-bottom-nav--visible {
  display: flex
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  min-height: 48px;
  min-width: 48px;
  justify-content: center
}

.mobile-nav-btn:hover,
.mobile-nav-btn--active {
  color: var(--color-primary);
  background-color: rgba(255, 18, 18, 0.1)
}

.mobile-nav-btn .material-icons {
  font-size: 1.25rem
}

.mobile-nav-label {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em
}

/* Improve touch targets */
@media (pointer: coarse) {
  .comment-reply-link {
    padding: 0.75rem;
    margin: 0.25rem 0
  }
}

.article__footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-subtle)
}

.article__tags {
  margin-bottom: 2rem
}

.article__tags-label {
  display: block;
  margin-bottom: 0.7500rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  font-weight: 700
}

.article__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7500rem;
  list-style: none;
  margin: 0;
  padding: 0
}

.article__tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background-color: var(--color-bg-alt);
  color: var(--color-text-tertiary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none
}

.article__tag:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 18, 18, 0.3)
}


/* Responsive Styles */
@media (max-width:75rem) {
  .article {
      grid-gap: 2rem;
      padding-left: 2rem;
      padding-right: 2rem
  }

}

@media (max-width:62rem) {
  .article {
      grid-template-columns: 5fr 3fr;
      grid-template-rows: auto auto auto auto auto;
      grid-gap: 1rem;
      padding-top: calc(var(--header-height) + 1.5rem);
      padding-bottom: 2rem;
      padding-left: 1rem;
      padding-right: 1rem
  }


  .article__header {
      grid-row: 1;
      grid-column: 1;
  }

  .article__header .btn {
      display: block;
      margin-top: 1.5rem
  }

  .article__title {
      font-size: var(--fs-xl)
  }

  .article__description {
      font-size: var(--fs-1125);
      margin-bottom: 1em
  }

  .article__details {
      font-size: var(--fs-base);
      margin-bottom: .75rem
  }


  .article__tags-label {
      font-size: 0.75rem
  }

  .article__tag {
      font-size: 0.8125rem;
      padding: 0.3125rem 0.7500rem
  }

  .article__views {
      gap: 0.1875rem;
      font-size: 0.875rem
  }

  .article__meta {
      gap: 1rem;
      padding: 0.75rem 0;
      margin-bottom: 1.5rem
  }

  .article__meta-item {
      font-size: 0.8125rem;
      gap: 0.375rem
  }

  .article__author .material-icons {
      font-size: 1rem
  }

  .article__meta-item .material-icons {
      font-size: 0.875rem
  }

  .article__navigation {
      grid-template-columns: 1fr;
      gap: 1rem;
      margin: 2rem 0 1.5rem;
      grid-row: 3
  }

  .article__nav-link {
      padding: 1.25rem;
      gap: 0.75rem
  }

  .article__nav-link--next {
      text-align: left;
      justify-content: flex-start
  }

  .article__nav-link--next .article__nav-content {
      order: 1
  }

  .article__nav-title {
      font-size: 0.9rem
  }

  .article__nav-link .material-icons {
      font-size: 1.25rem
  }

  .article__related-title {
      font-size: 1.5rem;
      margin-bottom: 1.5rem
  }

  .article-cards-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      margin-top: 1.5rem
  }

  .article__comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem
  }


  .article__body {
      grid-row: 2;
      grid-column: 1;
      font-size: 1rem;
      line-height: 1.7
  }

  .article__body h2 {
      font-size: 1.5rem;
      margin-top: 2rem
  }

  .article__body h3 {
      font-size: 1.25rem
  }

  .article__body h4 {
      font-size: 1.125rem
  }


}

@media (max-width: 48rem) {
  .article {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto auto auto auto;
  }

  /* Reset grid positioning for single column layout */
  .article__header {
      grid-row: 1;
      grid-column: 1;
  }

  .article__body {
      grid-row: 2;
      grid-column: 1;
  }

  .article__navigation {
      grid-row: 3;
      grid-column: 1;
  }

  .article__related {
      grid-row: 4;
      grid-column: 1;
  }

  .article .container__sidebar {
      grid-row: 5;
      grid-column: 1;
      position: static;
  }

  .article__comments {
      grid-row: 6;
      grid-column: 1;
  }
}

@media (max-width:36rem) {
  .article__comments-title {
      font-size: 1.25rem
  }
}

/* ========== ARTICLE CARD COMPONENTS ========== */

/* Base Article Card Styles */
.article-card {
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.25rem;
}

.article-card a:hover:not(.article-card__read-more) {
  text-decoration: underline
}

.article-card__poster {
  display: block;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  border-radius: 0.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.article-card__poster:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.article-card__poster img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card__poster:hover img {
  transform: scale(1.05);
}

.article-card__poster:after {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
  z-index: 1;
}

.article-card__poster:hover:after {
  background-color: var(--overlay-hover)
}

.article-card__content {
  width: 100%
}

.article-card__title {
  color: var(--color-text);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.3;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  transition: color 0.3s ease;
}

.article-card__title a {
  transition: color 0.3s ease;
}

.article-card__title a:hover {
  color: var(--color-primary);
}

.article-card__description {
  color: var(--color-text-tertiary);
  font-size: var(--fs-base);
  margin-top: 0.5000rem;
  line-height: 1.5
}

.article-card__details {
  display: flex;
  margin-top: 1rem;
  align-items: center;
  justify-content: space-between
}

.article-card__details time {
  color: var(--color-text-subtle);
  text-transform: uppercase
}

.article-card__details a {
  color: var(--color-primary-hover);
  font-size: .875rem;
  font-weight: 500
}


/* Enhanced Article Cards */
.article-card--enhanced {
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border-subtle);
}

.article-card--enhanced:hover {
  transform: translateY(-0.625rem);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--color-border);
}

.article-card--enhanced .article-card__poster {
  position: relative;
  width: 100%;
  padding-bottom: 65%;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.article-card--large .article-card__poster {
  padding-bottom: 60%;
}

.article-card--enhanced .article-card__poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.article-card--enhanced:hover .article-card__poster img {
  transform: scale(1.1);
}

.article-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.article-card--enhanced:hover .article-card__overlay {
  opacity: 1;
}

.article-card--enhanced .article-card__content {
  padding: 1.2500rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: var(--color-surface);
  transition: background-color 0.3s ease;
}

.article-card--enhanced:hover .article-card__content {
  background-color: var(--color-surface-hover);
}

.article-card--large .article-card__content {
  padding: 1.5000rem;
}

.article-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7500rem;
}

.article-card__category {
  display: inline-block;
  padding: 0.3125rem 0.75rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0.375rem;
  letter-spacing: 0.0312rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(255, 18, 18, 0.2);
}

.article-card__category:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 18, 18, 0.3);
}

.article-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2500rem;
  color: var(--color-text-tertiary);
  font-size: 0.875rem;
  font-weight: 700;
}

.article-card__rating .material-icons {
  font-size: 1rem;
  color: #ffd700;
}

.article-card--enhanced .article-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.7500rem;
  color: var(--color-text);
}

.article-card--large .article-card__title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.article-card--enhanced .article-card__title a {
  color: var(--color-text);
  transition: color 0.3s ease;
}

.article-card--enhanced .article-card__title a:hover {
  color: var(--color-primary);
}

.article-card__excerpt {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  flex: 1;
  font-family: inherit;
}

.article-card__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 0.875rem;
  color: var(--color-text-subtle);
  transition: border-color 0.3s ease;
}

.article-card--enhanced:hover .article-card__footer {
  border-top-color: var(--color-border);
}

.article-card__date,
.article-card__read-time {
  display: flex;
  align-items: center;
  gap: 0.2500rem;
  font-family: inherit;
}

.article-card__date .material-icons,
.article-card__read-time .material-icons {
  font-size: 1rem;
}

/* Horizontal Cards (List View) */
.article-card--horizontal {
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--color-border-subtle);
}

.article-card--horizontal .article-card__body {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.article-card--horizontal:hover {
  transform: translateX(0.375rem) translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: var(--color-border);
}

.article-card--horizontal .article-card__poster {
  width: 17.5000rem;
  min-width: 17.5000rem;
  overflow: hidden;
  background-color: var(--color-bg-alt);
  position: relative;
  align-self: stretch;
}

/* Person/Movie Card Type (for Cast and Similar Movies) */
.article-card--person-movie {
  position: relative;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-border, #e9ecef);
  animation: fadeInUp 0.6s ease-out backwards;
  padding: 0; /* Override base article-card padding */
  display: flex;
  flex-direction: column;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card--person-movie:hover {
  transform: translateY(-8px);
  text-decoration: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  border-color: var(--color-primary, #ff4757);
}

.article-card--person-movie .article-card__frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.article-card--person-movie .article-card__image-wrapper {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.article-card--person-movie .article-card__image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.article-card--person-movie .article-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.article-card--person-movie:hover .article-card__image {
  transform: scale(1.1);
}

.article-card--person-movie .article-card__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.article-card--person-movie:hover .article-card__image-overlay {
  opacity: 1;
}

.article-card--person-movie .article-card__image-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 71, 87, 0.2) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.article-card--person-movie:hover .article-card__image-glow {
  opacity: 1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

.article-card--person-movie .article-card__placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary, #666);
  overflow: hidden;
}

.article-card--person-movie .article-card__placeholder .placeholder__icon {
  position: relative;
  z-index: 2;
  font-size: 4rem;
  opacity: 0.3;
  transition: transform 0.3s ease;
}

.article-card--person-movie:hover .article-card__placeholder .placeholder__icon {
  transform: scale(1.1);
}

.article-card--person-movie .article-card__placeholder .placeholder__shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.article-card--person-movie .article-card__content {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
  background: white;
  width: 100%; /* Override base width: 100% */
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card--person-movie .article-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--color-text, #333);
  line-height: 1.3;
  transition: color 0.3s ease;
  display: block; /* Override base display */
  overflow: visible; /* Override base overflow */
}

.article-card--person-movie:hover .article-card__title {
  color: var(--color-primary, #ff4757);
}

.article-card--person-movie .article-card__decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 71, 87, 0.05) 0%,
    transparent 50%,
    rgba(255, 71, 87, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.article-card--person-movie:hover .article-card__decoration {
  opacity: 1;
}

.article-card--person-movie .article-card__shine-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.article-card--person-movie:hover .article-card__shine-effect {
  opacity: 1;
  animation: shine-sweep 1.5s ease-in-out;
}

@keyframes shine-sweep {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.article-card--person-movie .article-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.article-card--person-movie .article-card__link:hover {
  text-decoration: none !important;
}

.article-card--horizontal .article-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.article-card--horizontal:hover .article-card__poster img {
  transform: scale(1.08);
}

.article-card--horizontal .article-card__poster::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.article-card--horizontal:hover .article-card__poster::after {
  opacity: 1;
}

.article-card--horizontal .article-card__content {
  padding: 1.7500rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: var(--color-surface);
  transition: all 0.3s ease;
  position: relative;
}

.article-card--horizontal:hover .article-card__content {
  padding-left: 2.125rem;
}


.article-card--horizontal .article-card__title {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.8750rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
  transition: transform 0.3s ease;
}

.article-card--horizontal:hover .article-card__title {
  transform: translateX(4px);
}

.article-card--horizontal .article-card__title a {
  color: var(--color-text);
  transition: color 0.3s ease;
  display: block;
}

.article-card--horizontal .article-card__title a:hover {
  color: var(--color-primary);
}

.article-card--horizontal .article-card__excerpt {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: auto;
  transition: color 0.3s ease;
}

.article-card--horizontal:hover .article-card__excerpt {
  color: var(--color-text-tertiary);
}

.article-card--horizontal .article-card__footer {
  display: flex;
  align-items: center;
  gap: 1.5000rem;
  padding: 1.125rem 2rem;
  border-top: 1px solid var(--color-border-subtle);
  margin-top: 1.2500rem;
  transition: border-color 0.3s ease;
}

.article-card--horizontal:hover .article-card__footer {
  border-top-color: var(--color-border);
}

.article-card--horizontal .article-card__date,
.article-card--horizontal .article-card__read-time {
  transition: color 0.3s ease;
}

.article-card--horizontal:hover .article-card__date,
.article-card--horizontal:hover .article-card__read-time {
  color: var(--color-text-tertiary);
}

.article-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3750rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-left: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  background-color: transparent;
  position: relative;
  overflow: hidden;
}

.article-card__read-more::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 18, 18, 0.1);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.article-card__read-more:hover {
  gap: 0.6250rem;
  background-color: rgba(255, 18, 18, 0.1);
  transform: translateX(2px);
}

.article-card__read-more:hover::before {
  left: 0;
}

.article-card__read-more .material-icons {
  font-size: 1.1250rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card__read-more:hover .material-icons {
  transform: translateX(3px);
}

/* ========== ARTICLE CARD RESPONSIVE STYLES ========== */

/* Desktop to Tablet (62rem - 75rem) */
@media (max-width: 75rem) {
  .article-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2500rem;
  }
}

/* Tablet (48rem - 62rem) */
@media (max-width: 62rem) {
  .article-card--horizontal .article-card__poster {
    width: 13.7500rem;
    min-width: 13.7500rem;
    height: 10rem;
  }

  .article-card--horizontal .article-card__content {
    padding: 1.2500rem;
  }

  .article-card--horizontal .article-card__title {
    font-size: 1.25rem;
  }

  .article-card--horizontal .article-card__excerpt {
    font-size: 0.9375rem;
  }
}

/* Mobile Large (36rem - 48rem) */
@media (max-width: 48rem) {
  .article-card--horizontal .article-card__body {
    flex-direction: column;
  }

  .article-card--horizontal .article-card__footer {
    margin-top: 0;
  }

  .article-card--horizontal .article-card__poster {
    width: 100%;
    min-width: 100%;
    height: 13.7500rem;
  }

  .article-card--horizontal .article-card__content {
    padding: 1.2500rem;
  }

  .article-card--horizontal .article-card__title {
    font-size: 1.25rem;
  }

  .article-card--horizontal .article-card__footer {
    gap: 0.7500rem;
  }
}

/* Mobile Small (< 36rem) */
@media (max-width: 36rem) {
  .article-card--enhanced .article-card__content,
  .article-card--large .article-card__content {
    padding: 1rem;
  }

  .article-card--enhanced .article-card__title,
  .article-card--large .article-card__title {
    font-size: 1.125rem;
  }

  .article-card__excerpt {
    font-size: 0.875rem;
  }

  .article-card__footer {
    gap: 0.5rem;
    font-size: 0.8125rem;
  }

  .article-card--horizontal .article-card__content {
    padding: 1rem;
  }

  .article-card--horizontal .article-card__footer {
    padding: 1rem;
  }
}


/* Show sticky header only on mobile/tablet */
@media (max-width: 1024px) {
  .article__sticky-header {
    display: block
  }
}


