/* COMPREHENSIVE MOBILE DESIGN ENHANCEMENTS - World-Class News Site Style */

/* ========================================
   MOBILE-FIRST CARD DESIGN SYSTEM
   ======================================== */

/* Enhanced Article Cards - Mobile Optimized */
.mobile-article-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 16px;
}

.mobile-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--color-totem-pole);
}

.mobile-article-card .card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
}

.mobile-article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mobile-article-card:hover .card-image img {
  transform: scale(1.05);
}

.mobile-article-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 20px;
  color: white;
}

.mobile-article-card .card-content {
  padding: 20px;
}

.mobile-article-card .card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-celtic);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-article-card .card-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-article-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}

/* ========================================
   ENHANCED NAVIGATION SYSTEM
   ======================================== */

/* Mobile Navigation Enhancements */
.mobile-nav-enhanced {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.mobile-nav-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.mobile-nav-menu.open {
  max-height: 500px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  color: var(--color-celtic);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  background: linear-gradient(90deg, var(--color-totem-pole), #c41e3a);
  color: white;
  transform: translateX(8px);
}

.mobile-nav-item .nav-icon {
  margin-left: 12px;
  font-size: 18px;
}

/* ========================================
   HERO SECTION ENHANCEMENTS
   ======================================== */

/* Mobile Hero Section */
.mobile-hero-enhanced {
  position: relative;
  margin-bottom: 24px;
}

.mobile-hero-slider {
  position: relative;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.mobile-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.mobile-hero-slide.active {
  opacity: 1;
}

.mobile-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 30px 20px 20px;
  color: white;
}

.mobile-hero-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.mobile-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.9;
}

/* Hero Indicators */
.mobile-hero-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.mobile-hero-indicator {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mobile-hero-indicator.active {
  border-color: var(--color-totem-pole);
  transform: scale(1.1);
}

.mobile-hero-indicator img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   CONTENT LAYOUT SYSTEM
   ======================================== */

/* Mobile Content Grid */
.mobile-content-grid {
  display: grid;
  gap: 16px;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .mobile-content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px;
  }
}

/* Section Headers */
.mobile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 16px 16px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-totem-pole);
}

.mobile-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-celtic);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(to bottom, var(--color-totem-pole), var(--color-celtic));
  border-radius: 2px;
}

.mobile-section-more {
  color: var(--color-totem-pole);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-section-more:hover {
  color: var(--color-celtic);
}

/* ========================================
   INTERACTIVE ELEMENTS
   ======================================== */

/* Enhanced Buttons */
.mobile-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.mobile-btn-primary {
  background: linear-gradient(135deg, var(--color-totem-pole), #c41e3a);
  color: white;
  box-shadow: 0 4px 15px rgba(155, 6, 14, 0.3);
}

.mobile-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 6, 14, 0.4);
}

.mobile-btn-secondary {
  background: white;
  color: var(--color-celtic);
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-btn-secondary:hover {
  border-color: var(--color-totem-pole);
  color: var(--color-totem-pole);
  transform: translateY(-1px);
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Smooth Scrolling */
.mobile-scroll-container {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Touch Optimizations */
.mobile-touch-target {
  min-height: 44px;
  min-width: 44px;
}


/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Focus States */
.mobile-focusable:focus {
  outline: 3px solid var(--color-totem-pole);
  outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
  .mobile-article-card {
    border: 2px solid var(--color-celtic);
  }

  .mobile-nav-item {
    border-bottom: 2px solid var(--color-celtic);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .mobile-article-card,
  .mobile-nav-item,
  .mobile-btn {
    transition: none;
  }

  .mobile-hero-slide {
    transition: none;
  }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1a1a;
    color: #ffffff;
  }

  .mobile-article-card {
    background: #2d2d2d;
    border-color: #404040;
  }

  .mobile-nav-enhanced {
    background: #2d2d2d;
  }

  .mobile-nav-item {
    color: #ffffff;
    border-color: #404040;
  }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Small Mobile (320px+) */
@media (min-width: 320px) {
  .mobile-content-grid {
    padding: 0 12px;
  }
}

/* Large Mobile (480px+) */
@media (min-width: 480px) {
  .mobile-hero-slider {
    height: 350px;
  }

  .mobile-hero-title {
    font-size: 22px;
  }

  .mobile-article-card .card-title {
    font-size: 20px;
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .mobile-content-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .mobile-hero-slider {
    height: 400px;
  }
}