/**
 * LAN Elementor Widgets — Component Styles
 *
 * These styles supplement the design-system tokens from the child theme.
 * Each section corresponds to a custom Elementor widget.
 *
 * Prefix: lan- (all classes)
 *
 * @package LAN_Elementor_Widgets
 * @since   1.0.0
 */

/* ============================================================
   1. BREAKING NEWS TICKER
   ============================================================ */
.lan-breaking-strip {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.lan-breaking-label {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lan-breaking-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 0 var(--lan-space-lg);
}

.lan-ticker-content {
  display: flex;
  gap: var(--lan-space-section);
  white-space: nowrap;
}

.lan-ticker-content > span.lan-ticker-item-old {
  white-space: nowrap;
  position: relative;
  margin-right: 48px;
}

.lan-ticker-content > span.lan-ticker-item-old::after {
  content: '\2022';
  position: absolute;
  right: -28px;
  opacity: 0.5;
  font-size: 10px;
}

/* ============================================================
   2. HERO GRID
   ============================================================ */
.lan-hero-grid {
  max-width: var(--lan-max-width);
  margin: 0 auto;
  padding: var(--lan-space-xl) var(--lan-space-xl) var(--lan-space-xxl);
  align-items: stretch;
}

.lan-pin-card-large {
  display: block;
  overflow: hidden;
  position: relative;
  height: 100%;
}

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

.lan-pin-card-large:hover img {
  transform: scale(1.03);
}

.lan-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.lan-overlay .lan-category-label {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: var(--lan-rounded-full);
  margin-bottom: var(--lan-space-sm);
}

.lan-overlay .lan-card-title {
  color: var(--lan-on-dark);
  margin-bottom: var(--lan-space-sm);
}

.lan-overlay .lan-card-excerpt {
  color: var(--lan-on-dark-mute);
  margin-bottom: var(--lan-space-md);
}

.lan-overlay .lan-card-meta {
  color: var(--lan-on-dark-mute);
  display: flex;
  align-items: center;
  gap: var(--lan-space-sm);
}

/* Hero side cards */
.lan-hero-side {
  display: grid;
  min-height: 0;
}

.lan-pin-card-side {
  display: grid;
  grid-template-columns: 45% 1fr;
  min-height: 0;
  overflow: hidden;
  background-color: var(--lan-surface-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lan-pin-card-side:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.lan-pin-card-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lan-pin-card-side:hover img {
  transform: scale(1.04);
}

.lan-pin-card-body {
  padding: var(--lan-space-md) var(--lan-space-lg);
  padding-bottom: var(--lan-space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lan-category-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lan-primary);
  margin-bottom: var(--lan-space-xs);
}

.lan-card-title {
  font-weight: 600;
  line-height: 1.3;
  color: var(--lan-ink);
  margin-bottom: var(--lan-space-sm);
}

.lan-card-excerpt {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--lan-mute);
  margin-bottom: var(--lan-space-md);
}

.lan-card-meta {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--lan-ash);
  display: flex;
  align-items: center;
  gap: var(--lan-space-sm);
}

/* ============================================================
   3. STORY FEED
   ============================================================ */
.lan-stories-feed {
  display: flex;
  flex-direction: column;
}

.lan-story-row {
  display: grid;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.lan-story-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.lan-story-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lan-story-row:hover img {
  transform: scale(1.04);
}

.lan-story-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lan-story-title {
  font-weight: 600;
  line-height: 1.3;
  color: var(--lan-ink);
  margin-bottom: var(--lan-space-sm);
}

.lan-story-excerpt {
  color: var(--lan-mute);
  line-height: 1.4;
  margin-bottom: var(--lan-space-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lan-story-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--lan-ash);
  display: flex;
  align-items: center;
  gap: var(--lan-space-sm);
}

/* Filter strip */
.lan-filter-strip {
  display: flex;
  gap: var(--lan-space-sm);
  padding: var(--lan-space-lg) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.lan-filter-strip::-webkit-scrollbar {
  display: none;
}

.lan-filter-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--lan-font-family);
  font-weight: 700;
  line-height: 1;
  border-radius: var(--lan-rounded-full);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.lan-filter-chip:hover {
  opacity: 0.85;
}

.lan-filter-chip:focus-visible {
  outline: 2px solid var(--lan-focus-outer);
  outline-offset: 2px;
}

/* ============================================================
   4. CATEGORY BLOCKS
   ============================================================ */
.lan-category-blocks {
  display: grid;
}

.lan-category-block {
  overflow: hidden;
}

.lan-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--lan-hairline-soft);
}

.lan-block-header h3 {
  font-weight: 600;
  color: var(--lan-ink);
}

.lan-block-header a {
  font-size: 12px;
  font-weight: 700;
  color: var(--lan-primary);
}

.lan-block-featured {
  position: relative;
}

.lan-block-featured img {
  width: 100%;
  object-fit: cover;
}

.lan-featured-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: var(--lan-on-dark);
  font-weight: 600;
  line-height: 1.3;
}

.lan-block-links a {
  display: block;
  font-weight: 400;
  color: var(--lan-body);
  border-bottom: 1px solid var(--lan-hairline-soft);
  line-height: 1.4;
  transition: color 0.15s ease, padding-left 0.15s ease;
  padding-left: 0;
}

.lan-block-links a:hover {
  color: var(--lan-primary);
  padding-left: var(--lan-space-sm);
}

.lan-block-links a:last-child {
  border-bottom: none;
}

/* ============================================================
   5. MASONRY GRID
   ============================================================ */
.lan-masonry-grid {
  column-gap: var(--lan-space-sm);
}

.lan-masonry-grid .lan-pin-card {
  break-inside: avoid;
  margin-bottom: var(--lan-space-sm);
  background-color: var(--lan-surface-card);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lan-masonry-grid .lan-pin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.lan-masonry-grid .lan-pin-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lan-masonry-grid .lan-pin-card:hover img {
  transform: scale(1.04);
}

.lan-pin-overlay-pill {
  position: absolute;
  top: var(--lan-space-md);
  left: var(--lan-space-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
  border-radius: var(--lan-rounded-full);
  z-index: 3;
}

/* ============================================================
   6. TRENDING SIDEBAR
   ============================================================ */
.lan-trending-sidebar h3 {
  font-weight: 600;
  color: var(--lan-ink);
}

.lan-trending-list {
  display: flex;
  flex-direction: column;
}

.lan-trending-item {
  display: flex;
  align-items: flex-start;
}

.lan-trending-number {
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.lan-trending-text {
  flex: 1;
}

.lan-trending-title {
  font-weight: 600;
  color: var(--lan-ink);
  transition: color 0.15s ease;
  display: block;
}

.lan-trending-title:hover {
  color: var(--lan-primary);
}

.lan-trending-category {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lan-primary);
}

/* ============================================================
   7. NEWSLETTER CTA
   ============================================================ */
.lan-newsletter-cta {
  position: relative;
  overflow: hidden;
}

.lan-newsletter-cta::before,
.lan-newsletter-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.lan-newsletter-cta::before {
  top: -120px;
  right: -120px;
  width: 350px;
  height: 350px;
}

.lan-newsletter-cta::after {
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
}

.lan-newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lan-newsletter-form {
  display: flex;
  gap: var(--lan-space-sm);
  max-width: 440px;
  margin: 0 auto;
}

.lan-newsletter-form .lan-text-input {
  flex: 1;
}

.lan-newsletter-success {
  display: none;
  font-size: 14px;
  font-weight: 600;
  padding: var(--lan-space-md) var(--lan-space-lg);
  border-radius: var(--lan-rounded-md);
  margin-top: var(--lan-space-lg);
  background-color: var(--lan-success-pale);
  color: var(--lan-success-deep);
}

/* ============================================================
   8. DARK CTA STRIP
   ============================================================ */
.lan-dark-cta-strip {
  display: flex;
  align-items: center;
}

.lan-dark-cta-strip h2 {
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================================
   9. ARTICLE HEADER
   ============================================================ */
.lan-article-header {
  max-width: var(--lan-article-width);
  margin: 0 auto;
}

.lan-article-category {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--lan-rounded-full);
}

.lan-article-title {
  font-weight: 700;
  color: var(--lan-ink);
}

.lan-article-subtitle {
  font-weight: 400;
  color: var(--lan-mute);
}

.lan-article-byline {
  display: flex;
  align-items: center;
  gap: var(--lan-space-md);
}

.lan-author-avatar {
  border-radius: var(--lan-rounded-full);
  object-fit: cover;
}

.lan-byline-text {
  text-align: left;
}

.lan-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--lan-ink);
}

.lan-byline-meta {
  font-size: 12px;
  font-weight: 400;
  color: var(--lan-ash);
  display: flex;
  gap: var(--lan-space-sm);
  align-items: center;
}

.lan-article-hero {
  max-width: 960px;
  margin: 0 auto;
}

.lan-article-hero img {
  width: 100%;
  object-fit: cover;
}

.lan-image-caption {
  font-size: 12px;
  font-weight: 400;
  color: var(--lan-ash);
  text-align: center;
  margin-top: var(--lan-space-sm);
}

/* ============================================================
   10. SHARE BUTTONS
   ============================================================ */
.lan-share-buttons {
  display: flex;
}

.lan-share-buttons .lan-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.lan-share-buttons .lan-btn-icon:focus-visible {
  outline: 2px solid var(--lan-focus-outer);
  outline-offset: 2px;
}

/* ============================================================
   11. RESPONSIVE — Global widget overrides
   ============================================================ */
@media (max-width: 768px) {
  .lan-newsletter-form {
    flex-direction: column;
  }

  .lan-article-header {
    padding-left: var(--lan-space-xl);
    padding-right: var(--lan-space-xl);
  }

  .lan-article-byline {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .lan-story-row {
    grid-template-columns: 1fr !important;
  }

  .lan-story-row img {
    height: 180px;
  }

  .lan-pin-card-side {
    grid-template-columns: 1fr;
  }
}
