/* =====================================================
   SENNA Platform — assets/style.css
   Supplementary styles, utilities, and component extras
   ===================================================== */

/* ===== UTILITY CLASSES ===== */
.text-crimson { color: #DC143C; }
.text-gold { color: #F5A623; }
.text-muted { color: rgba(255,255,255,0.4); }
.text-center { text-align: center; }
.font-display { font-family: 'Barlow Condensed', sans-serif; }
.font-np { font-family: 'Noto Sans Devanagari', sans-serif; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.hidden { display: none !important; }

/* ===== GRADIENT TEXT ===== */
.text-gradient {
  background: linear-gradient(135deg, #DC143C 0%, #F5A623 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== GLOW BORDER CARDS ===== */
.card-glow-red:hover {
  box-shadow: 0 0 0 1px rgba(220,20,60,0.4), 0 8px 32px rgba(220,20,60,0.15);
  border-color: rgba(220,20,60,0.4) !important;
}
.card-glow-gold:hover {
  box-shadow: 0 0 0 1px rgba(245,166,35,0.4), 0 8px 32px rgba(245,166,35,0.15);
  border-color: rgba(245,166,35,0.4) !important;
}
.card-glow-blue:hover {
  box-shadow: 0 0 0 1px rgba(45,156,219,0.4), 0 8px 32px rgba(45,156,219,0.15);
  border-color: rgba(45,156,219,0.4) !important;
}

/* ===== SKELETON LOADER ===== */
.skeleton {
  background: linear-gradient(90deg, #141414 25%, #1e1e1e 50%, #141414 75%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.5s infinite;
  border-radius: 8px;
}
@keyframes skeleton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 24px; width: 60%; margin-bottom: 12px; }
.skeleton-card { height: 180px; border-radius: 12px; }

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
  margin: 0;
}

/* ===== BADGE EXTRAS ===== */
.badge-nepal {
  background: rgba(220,20,60,0.12);
  color: #DC143C;
  border: 1px solid rgba(220,20,60,0.25);
  padding: 3px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.badge-global {
  background: rgba(45,156,219,0.12);
  color: #2D9CDB;
  border: 1px solid rgba(45,156,219,0.25);
  padding: 3px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ===== ANNOUNCEMENT BANNER ===== */
.announce-banner {
  background: linear-gradient(135deg, rgba(220,20,60,0.15), rgba(245,166,35,0.1));
  border-bottom: 1px solid rgba(220,20,60,0.2);
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.announce-banner a { color: #F5A623; font-weight: 600; }
.announce-banner .announce-close {
  position: absolute; right: 20px;
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: 18px; line-height: 1;
}
.announce-banner .announce-close:hover { color: white; }

/* ===== PROGRESS BAR COMPONENT ===== */
.progress-wrap { width: 100%; background: rgba(255,255,255,0.08); border-radius: 100px; height: 4px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 100px; background: linear-gradient(90deg, #DC143C, #F5A623); transition: width 0.6s ease; }

/* ===== STATUS DOT ===== */
.status-live { color: #27AE60; }
.status-live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #27AE60; margin-right: 6px; animation: statusPulse 1.5s ease infinite; }
.status-building::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2D9CDB; margin-right: 6px; }
.status-planned::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.3); margin-right: 6px; }
@keyframes statusPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }

/* ===== TOOLTIP ===== */
[data-tooltip] { position: relative; cursor: help; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1a1a1a; color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 6px 12px;
  font-size: 12px; font-family: 'Outfit', sans-serif;
  white-space: nowrap; pointer-events: none;
  opacity: 0; transition: all 0.2s; z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== FLOATING LABEL INPUT ===== */
.float-group { position: relative; }
.float-group input { padding-top: 20px; padding-bottom: 8px; }
.float-group label {
  position: absolute; top: 50%; left: 16px;
  transform: translateY(-50%);
  font-size: 14px; color: rgba(255,255,255,0.4);
  transition: all 0.2s; pointer-events: none;
}
.float-group input:focus + label,
.float-group input:not(:placeholder-shown) + label {
  top: 10px; font-size: 11px; color: #DC143C;
}

/* ===== TAG CLOUD ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 5px 12px; border-radius: 100px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.6);
  transition: all 0.2s; cursor: default;
}
.tag:hover { background: rgba(220,20,60,0.12); border-color: rgba(220,20,60,0.3); color: white; }

/* ===== ACCORDION ===== */
.accordion { border-top: 1px solid rgba(255,255,255,0.08); }
.accordion-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.accordion-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; cursor: pointer;
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  background: none; border: none; width: 100%;
  text-align: left; font-family: 'Outfit', sans-serif;
  transition: color 0.2s;
}
.accordion-header:hover { color: white; }
.accordion-header .chevron { transition: transform 0.3s; color: rgba(255,255,255,0.4); font-size: 18px; }
.accordion-header.open .chevron { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 0 16px; font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; }
.accordion-body.open { display: block; }

/* ===== COMPARISON TABLE ===== */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
  text-align: left; font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px; color: rgba(255,255,255,0.7);
}
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table .check { color: #27AE60; }
.compare-table .cross { color: rgba(255,255,255,0.2); }
.compare-table .highlight-col { background: rgba(220,20,60,0.05); }

/* ===== ECOSYSTEM STATS MINI ===== */
.mini-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.mini-stat { font-size: 13px; color: rgba(255,255,255,0.5); }
.mini-stat strong { color: white; font-size: 18px; display: block; }

/* ===== RESPONSIVE EXTRAS ===== */
@media (max-width: 480px) {
  .announce-banner { font-size: 12px; padding: 8px 40px 8px 16px; }
  .mini-stats { gap: 16px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}

/* ===== PRINT STYLES ===== */
@media print {
  nav, footer, #loader, #toast-container, #back-to-top, #cookie-banner, #scroll-progress { display: none !important; }
  body { background: white; color: black; }
  .hero { min-height: auto; padding: 40px 20px; }
  .hero-title { color: black; font-size: 60px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== HIGH CONTRAST ===== */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(255,255,255,0.25);
    --border-strong: rgba(255,255,255,0.5);
    --white70: rgba(255,255,255,0.95);
    --white40: rgba(255,255,255,0.7);
  }
}
