/* Garitas Tijuana Express - Estilos Principales y Monetización */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #0a0e17;
  --bg-card: rgba(18, 26, 43, 0.85);
  --bg-card-hover: rgba(26, 38, 64, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(0, 210, 255, 0.3);
  
  --primary: #00d2ff;
  --primary-glow: rgba(0, 210, 255, 0.4);
  --secondary: #7928ca;
  --accent: #00f2fe;
  
  --text-main: #f3f6fc;
  --text-muted: #8e9bb0;
  --text-dim: #5c687c;
  
  --status-green: #10b981;
  --status-green-glow: rgba(16, 185, 129, 0.25);
  --status-yellow: #f59e0b;
  --status-yellow-glow: rgba(245, 158, 11, 0.25);
  --status-orange: #f97316;
  --status-orange-glow: rgba(249, 115, 22, 0.25);
  --status-red: #ef4444;
  --status-red-glow: rgba(239, 68, 68, 0.25);

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sub: 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px var(--primary-glow);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 210, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(121, 40, 202, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(10, 14, 23, 1) 0%, rgba(10, 14, 23, 1) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Header Banner & Navigation */
.header-bar {
  background: rgba(10, 14, 23, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 20px;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-sub);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-action {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0099ff);
  color: #000;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38edf6, #1ac6ff);
  color: #000;
  transform: translateY(-2px);
}

/* Layout Main Container */
.main-wrapper {
  max-width: 1280px;
  margin: 20px auto 60px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

@media (max-width: 992px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Smart Recommendation Banner */
.recommendation-card {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(121, 40, 202, 0.15));
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-main);
  position: relative;
  overflow: hidden;
}

.recommendation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.rec-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rec-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.rec-badge {
  background: rgba(0, 210, 255, 0.15);
  color: var(--primary);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.rec-badge span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation Filters */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  background: var(--bg-card);
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn:hover {
  color: var(--text-main);
  background: var(--bg-glass);
}

.filter-btn.active {
  background: var(--primary);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Garita Section & Cards Grid */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.garitas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

/* Individual Garita Card */
.garita-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-main);
}

.garita-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.port-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.port-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.type-pill {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pill-auto { background: rgba(0, 210, 255, 0.15); color: var(--primary); }
.pill-walk { background: rgba(121, 40, 202, 0.15); color: #c084fc; }
.pill-sentri { background: rgba(245, 158, 11, 0.15); color: var(--status-yellow); }

/* Main Time Display inside Card */
.time-display {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 16px 0;
}

.time-number {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.time-unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.time-status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Color statuses */
.status-fast {
  color: var(--status-green);
  background: var(--status-green-glow);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-moderate {
  color: var(--status-yellow);
  background: var(--status-yellow-glow);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-busy {
  color: var(--status-orange);
  background: var(--status-orange-glow);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.status-severe {
  color: var(--status-red);
  background: var(--status-red-glow);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Card Details Footer */
.card-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-top: 14px;
  text-align: center;
}

.detail-item .detail-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.detail-item .detail-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Interactive Peak Hours & Community Reports Section */
.info-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .info-section-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.peak-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 140px;
  margin-top: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.peak-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.peak-bar-fill {
  width: 100%;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
  position: relative;
}

.peak-col span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Community Reports Feed */
.community-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.community-feed::-webkit-scrollbar {
  width: 5px;
}
.community-feed::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.report-item {
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.report-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

.report-meta {
  font-size: 0.8rem;
}
.report-meta strong {
  display: block;
  color: #fff;
}
.report-meta span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.report-time-tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
}

/* -------------------------------------------------------------
   MONETIZATION & ADVERTISING STYLES (AdSense & Adsterra)
------------------------------------------------------------- */
.ad-slot-container {
  background: rgba(18, 26, 43, 0.4);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin: 20px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

/* Header Ad Banner (728x90 desktop / 320x50 mobile) */
.ad-header-banner {
  max-width: 1280px;
  margin: 16px auto 0;
  min-height: 90px;
}

/* Sidebar Ads (300x250 or 300x600) */
.ad-sidebar {
  min-height: 250px;
  margin-bottom: 24px;
}

/* In-Feed Native Ads */
.ad-in-feed {
  grid-column: 1 / -1;
  min-height: 120px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(0,210,255,0.03));
}

/* Fallback Mock Banner when Ads script is loading or local */
.ad-placeholder-box {
  width: 100%;
  padding: 16px;
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.ad-placeholder-content {
  text-align: left;
}

.ad-placeholder-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.ad-placeholder-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ad-cta-btn {
  background: var(--primary);
  color: #000;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  text-decoration: none;
  white-space: nowrap;
}

/* Sticky Bottom Mobile Bar (Adsterra / AdSense Mobile Anchor) */
.sticky-bottom-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-highlight);
  padding: 8px 12px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -5px 25px rgba(0,0,0,0.8);
}

.sticky-ad-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  font-size: 12px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-dark);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  background: rgba(10, 14, 23, 0.95);
  padding: 40px 20px 80px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Weather & Traffic Extras Styling */
.weather-widget-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(121, 40, 202, 0.15));
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-main);
}

.weather-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.weather-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.weather-temp {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.weather-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.weather-meta strong {
  color: #fff;
  display: block;
  font-size: 0.95rem;
}

.weather-stats {
  display: flex;
  gap: 16px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  text-align: center;
}

.w-stat-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}
.w-stat-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Map Box & Route Finder */
.map-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.map-container {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 14px;
  position: relative;
  background: #111b27;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: contrast(1.1) saturate(1.2);
}

/* Incident & Accident Alerts Feed */
.incidents-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.incident-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.incident-item {
  background: rgba(239, 68, 68, 0.08);
  border-left: 4px solid var(--status-red);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.incident-item.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--status-yellow);
}

.incident-item.info {
  background: rgba(0, 210, 255, 0.08);
  border-left-color: var(--primary);
}

.incident-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.incident-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.incident-time {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Route Suggestions Box */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.route-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: border-color 0.2s ease;
}

.route-card:hover {
  border-color: var(--primary);
}

.route-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.route-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.route-tag {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.route-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Modal for Reporting Accident */
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

@keyframes number-flash {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.15); filter: brightness(1.8); color: var(--primary); }
  100% { transform: scale(1); filter: brightness(1); }
}

.flash-update {
  animation: number-flash 0.8s ease-in-out;
}

/* Social Bar & Sharing Styles */
.social-share-card {
  background: linear-gradient(135deg, rgba(121, 40, 202, 0.2), rgba(0, 210, 255, 0.15));
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-share-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-btns-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-social {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  color: #fff;
}

.btn-social-wa { background: #25D366; }
.btn-social-wa:hover { background: #1eb956; transform: translateY(-2px); }

.btn-social-fb { background: #1877F2; }
.btn-social-fb:hover { background: #1464cc; transform: translateY(-2px); }

.btn-social-tw { background: #000000; border: 1px solid var(--border-color); }
.btn-social-tw:hover { border-color: var(--primary); transform: translateY(-2px); }

.btn-social-copy { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--border-color); }
.btn-social-copy:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }

/* Highlighted Community Feed Box */
.community-highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.community-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* Responsive adjustments for weather */
@media (max-width: 600px) {
  .weather-widget-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .weather-stats {
    width: 100%;
    justify-content: space-around;
  }
}

