/* Custom Web Design Stylesheet for Minima Infobae (Colombia & Mexico) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette (Light Mode Default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-orange: #ff5a24;
  --accent-orange-rgb: 255, 90, 36;
  --accent-blue: #2563eb;
  --border-color: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(226, 232, 240, 0.8);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --modal-bg: rgba(15, 23, 42, 0.5);
  --success-color: #10b981;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

body.dark-theme {
  /* Color Palette (Dark Mode Override) */
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-orange: #ff6f3d;
  --accent-orange-rgb: 255, 111, 61;
  --accent-blue: #3b82f6;
  --border-color: #1f2937;
  --glass-bg: rgba(17, 24, 39, 0.75);
  --glass-border: rgba(31, 41, 55, 0.8);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --hover-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --modal-bg: rgba(0, 0, 0, 0.75);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition-smooth);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
  outline: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 24px;
  color: var(--text-primary);
  animation: pulse 2s infinite ease-in-out;
  transform-origin: center;
}

svg.logo-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--accent-orange);
}

/* Country Selector (Slider style) */
.country-selector {
  position: relative;
  display: flex;
  background-color: var(--bg-tertiary);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
}

.country-btn {
  position: relative;
  z-index: 2;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 20px;
  transition: var(--transition-smooth);
  flex: 1;
  text-align: center;
  min-width: 95px;
  white-space: nowrap;
}

.country-btn.active {
  color: #ffffff;
}

.dark-theme .country-btn.active {
  color: #000000;
}

.country-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: calc(50% - 4px);
  background-color: var(--text-primary);
  border-radius: 20px;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

body.mexico-active .country-slider {
  transform: translateX(100%);
}

/* Header Utilities */
.header-utilities {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 200px;
  padding: 8px 16px 8px 36px;
  font-size: 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.search-input:focus {
  width: 260px;
  border-color: var(--accent-orange);
  background-color: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(var(--accent-orange-rgb), 0.15);
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 18px;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background-color: var(--border-color);
  transform: scale(1.05);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

body.dark-theme .theme-toggle-btn .moon-icon {
  display: none;
}

body.dark-theme .theme-toggle-btn .sun-icon {
  display: block;
}

/* Main Layout Grid */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 32px;
}

@media (max-width: 1024px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

/* Category Filter Bar */
.category-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.category-filter-bar::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.category-pill {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 30px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.category-pill:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.category-pill.active {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(var(--accent-orange-rgb), 0.25);
}

/* Hero Article (Top Highlight) */
.hero-story-container {
  margin-bottom: 32px;
}

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background-color: var(--bg-secondary);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(var(--accent-orange-rgb), 0.3);
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-card:hover .hero-img {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--accent-orange);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.hero-meta span:first-child {
  white-space: nowrap;
}

.meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.28;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  transition: var(--transition-fast);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-card:hover .hero-title {
  color: var(--accent-orange);
}

.hero-deck {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.article-read-time {
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .hero-image-wrapper {
    height: 260px;
    min-height: auto;
  }
  .hero-content {
    padding: 20px;
  }
  .hero-title {
    font-size: 20px;
  }
}

/* Secondary News Feed Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(var(--accent-orange-rgb), 0.3);
}

.card-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.news-card:hover .card-img {
  transform: scale(1.04);
}

.card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--bg-secondary);
  color: var(--accent-orange);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.news-card:hover .card-category {
  background-color: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
}

.card-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.card-meta span:first-child {
  white-space: nowrap;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition-fast);
}

.news-card:hover .card-title {
  color: var(--accent-orange);
}

.card-excerpt {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/* Empty search result state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  background-color: var(--bg-secondary);
  border-radius: 20px;
  border: 1px dashed var(--border-color);
}

.empty-state-icon {
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Sidebar Sections & Widgets */
.sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-card {
  background-color: var(--bg-secondary);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title i {
  color: var(--accent-orange);
}

/* Weather & Currency Widget */
.widget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.weather-info {
  display: flex;
  flex-direction: column;
}

.weather-city {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.weather-temp {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin: 4px 0;
}

.weather-desc {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: capitalize;
}

.weather-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 36px;
  color: var(--accent-orange);
}

.weather-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.currency-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.currency-pair {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 12px;
  background-color: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.currency-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.currency-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

/* Trending List styling */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trending-item {
  display: flex;
  gap: 16px;
  cursor: pointer;
  padding: 8px 0;
  transition: var(--transition-fast);
}

.trending-item:hover {
  transform: translateX(4px);
}

.trending-number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-orange);
  opacity: 0.25;
  line-height: 1;
  width: 32px;
  transition: var(--transition-fast);
}

.trending-item:hover .trending-number {
  opacity: 0.8;
}

.trending-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trending-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-orange);
  letter-spacing: 0.5px;
}

.trending-headline {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition-fast);
}

.trending-item:hover .trending-headline {
  color: var(--accent-orange);
}

/* Newsletter card */
.newsletter-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(var(--accent-orange-rgb), 0.05), rgba(var(--accent-orange-rgb), 0.01));
  border-color: rgba(var(--accent-orange-rgb), 0.2);
}

.newsletter-icon {
  font-size: 28px;
  color: var(--accent-orange);
  margin-bottom: 12px;
}

.newsletter-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-input {
  padding: 10px 16px;
  font-size: 13px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.newsletter-input:focus {
  border-color: var(--accent-orange);
}

.newsletter-submit {
  padding: 10px;
  border-radius: 12px;
  background-color: var(--accent-orange);
  color: white;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition-smooth);
}

.newsletter-submit:hover {
  background-color: #e04a17;
  transform: translateY(-1px);
}

/* Article Reader Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  background-color: var(--bg-secondary);
  border-radius: 24px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--hover-shadow);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-header-image {
  position: relative;
  height: 350px;
}

.modal-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.modal-body {
  padding: 40px;
}

.modal-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.modal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 28px;
}

.modal-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.modal-author-info {
  display: flex;
  flex-direction: column;
}

.modal-author-name {
  font-size: 14px;
  font-weight: 600;
}

.modal-publish-date {
  font-size: 12px;
  color: var(--text-muted);
}

.modal-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 14px;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.modal-share-btn:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.modal-share-btn.share-tw:hover {
  color: #1da1f2;
}

.modal-share-btn.share-fb:hover {
  color: #1877f2;
}

.modal-share-btn.share-wa:hover {
  color: #25d366;
}

.modal-article-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.modal-article-text p {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .modal-body {
    padding: 24px;
  }
  .modal-title {
    font-size: 24px;
  }
  .modal-header-image {
    height: 220px;
  }
  .modal-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Footer Section */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 24px;
  margin-top: 64px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
}

.footer-logo span {
  color: var(--accent-orange);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-orange);
}

@media (max-width: 600px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.95;
  }
}

/* ==========================================================================
   Article Viewer Layout Styles
   ========================================================================== */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 40px;
}

@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* Article Container */
.article-main-content {
  background-color: var(--bg-secondary);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  padding: 40px;
  box-shadow: var(--card-shadow);
}

@media (max-width: 600px) {
  .article-main-content {
    padding: 20px;
    border-radius: 16px;
  }
}

/* Article Header */
.article-volanta {
  display: inline-block;
  background-color: rgba(var(--accent-orange-rgb), 0.1);
  color: var(--accent-orange);
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.article-title-full {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.8px;
}

@media (max-width: 768px) {
  .article-title-full {
    font-size: 28px;
  }
}

.article-deck-full {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .article-deck-full {
    font-size: 16px;
  }
}

/* Article Meta Area */
.article-meta-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.article-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author-info .author-avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

.article-author-meta {
  display: flex;
  flex-direction: column;
}

.article-author-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.article-publish-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* Share Buttons block */
.article-share-block {
  display: flex;
  gap: 10px;
}

.share-circle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background-color: var(--bg-tertiary);
  font-size: 15px;
  transition: var(--transition-smooth);
}

.share-circle-btn:hover {
  background-color: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Large Featured Image */
.article-hero-image-box {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 36px;
  border: 1px solid var(--border-color);
}

.article-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Body Content typography */
.article-text-body {
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--text-primary);
}

.article-text-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 16px;
  margin: 32px auto;
  display: block;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.article-text-body p {
  margin-bottom: 24px;
}

.article-text-body h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 16px;
}

.article-text-body blockquote {
  border-left: 4px solid var(--accent-orange);
  padding-left: 20px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 19px;
  line-height: 1.6;
}

/* Related News Sidebar list */
.related-list-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.related-mini-card {
  display: flex;
  gap: 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.related-mini-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
  border-color: rgba(var(--accent-orange-rgb), 0.2);
}

.related-mini-img-box {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.related-mini-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-mini-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-mini-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
}

.related-mini-date {
  font-size: 10px;
  color: var(--text-muted);
}

/* ==========================================================================
   Toast Notification Popups System
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-notification {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 320px;
  max-width: 420px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
}

.toast-notification.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}

.toast-success .toast-icon {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.toast-error .toast-icon {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.toast-info .toast-icon {
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.toast-close {
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* YouTube Subscription Section */
.youtube-section {
  margin: 36px 0;
  padding: 28px 0;
  background-color: transparent;
  border: none;
  box-shadow: none;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.youtube-section-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  border-bottom: none;
  padding-bottom: 0;
}

.youtube-section-title i {
  color: #ff0000;
  font-size: 22px;
}

.youtube-channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.youtube-channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 0;
  background-color: transparent;
  border-radius: 0;
  border: none;
  transition: var(--transition-smooth);
}

.youtube-channel-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
  border-color: transparent;
}

.yt-channel-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.yt-channel-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.yt-channel-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.yt-channel-subs {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.yt-subscribe-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 30px;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.yt-subscribe-btn:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.yt-subscribe-btn.subscribed {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.yt-subscribe-btn.subscribed:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}
