/* * Atlas Dashboard — Final Styles 
 * Copyright (c) 2025 Atlas Dashboard 
 */

/* --- TABLE & HEADER LOGIC --- */
.sticky-header th {
  position: sticky;
  top: 56px; 
  background: white;
  z-index: 40; 
  border-bottom: 1px solid #e5e7eb;
  padding-top: 0.75rem; 
  padding-bottom: 0.75rem; 
}

table td, table th {
  vertical-align: top; 
  padding-top: 0.5rem; 
  padding-bottom: 0.5rem;
}

/* --- UI UTILITIES --- */
.shadow-top {
    box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.1), 0 -1px 2px 0 rgba(0, 0, 0, 0.06);
}

.isolate-z {
  transform: translateZ(0);
}

/* --- ATLAS LINE CLAMPING --- */
.italic-clamp-5 {
  font-style: italic;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5; 
  max-height: calc(1.2em * 5);
}

.italic-clamp-3 {
  font-style: italic;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3; 
  max-height: calc(1.2em * 3);
  position: relative; 
  line-height: 1.4; 
}

/* Soft fade for 3-line cutoff */
.italic-clamp-3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white 90%);
}

/* ============================================================
   SWELL BLOG CONTENT STYLES
   Formats AI-generated HTML (h2, p, ul, li)
============================================================ */
.post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827; /* gray-900 */
}

.post-content p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.post-content blockquote {
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid #4f46e5;   /* indigo-600, matches topic tag */
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
  color: #111827;                    /* gray-900 */
}

.post-content blockquote p {
  margin-bottom: 0;                  /* safety if the model wraps the line in a <p> */
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

/* The terminal-style social byte box */
.social-byte-box {
    background: #0f172a; /* slate-900 */
    padding: 2rem;
    border-radius: 1rem;
    color: #e2e8f0; /* slate-200 */
}
/* Add this to your style-final.css */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e2e8f0; /* light gray */
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; /* darker gray on hover */
}
/* Add this for critical items */
@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.status-red {
  animation: pulse-red 2s ease-in-out infinite;
}

/* Better button hierarchy */
.btn-execute-critical {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}
/* ============================================================
   COMMS BANNER
   Full-width gradient strip, top of page.
   Matches founding member banner + feedback button glass style.
============================================================ */
:root { --banner-h: 44px; }

#atlasBanner {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--banner-h);
    z-index: 55;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 16px rgba(79, 70, 229, 0.25);
    animation: bannerDrop 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#atlasBanner.type-info    { background: linear-gradient(to right, #4f46e5, #7c3aed); }
#atlasBanner.type-feature { background: linear-gradient(to right, #059669, #0891b2); }
#atlasBanner.type-warning { background: linear-gradient(to right, #d97706, #dc2626); }

@keyframes bannerDrop {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
@keyframes bannerRise {
    from { transform: translateY(0);     opacity: 1; }
    to   { transform: translateY(-100%); opacity: 0; }
}
#atlasBanner.dismissing {
    animation: bannerRise 0.26s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* ── Nav shell geometry — single source of truth ──────────────
   nav.js renders into #atlas-nav. The shell is sticky so the nav
   (and its mobile menu, anchored top:100% inside the header) is
   always reachable mid-scroll. beta.js toggles body.banner-active
   only; everything below reacts to it. */
#atlas-nav {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Banner is position:fixed (no flow space) — pad the body so
   content and the sticky nav start below it */
body.banner-active {
    padding-top: var(--banner-h);
}
body.banner-active #atlas-nav {
    top: var(--banner-h);
    transition: top 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
body.banner-active .sticky-header th {
    top: calc(56px + var(--banner-h));
}

@media (prefers-reduced-motion: reduce) {
    #atlasBanner,
    #atlasBanner.dismissing { animation: none; }
    body.banner-active #atlas-nav { transition: none; }
}

/* Glass CTA pill — matches feedback button */
.banner-cta-pill {
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
    text-decoration: none;
}
.banner-cta-pill:hover {
    background: rgba(255,255,255,0.28);
    transform: scale(1.03);
}

.banner-dismiss-btn {
    color: rgba(255,255,255,0.65);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0 0.25rem;
    flex-shrink: 0;
    transition: color 0.15s;
}
.banner-dismiss-btn:hover { color: white; }
/* ============================================================
   ATLAS TIER BADGES — canonical colour system
   Solid: prominent status badges, sidebar pills, main display
   Soft:  inline table refs, secondary mentions
============================================================ */
.atlas-tier-calm          { background: #15803d; color: #fff; }
.atlas-tier-building      { background: #ca8a04; color: #000; }
.atlas-tier-choppy        { background: #f97316; color: #fff; }
.atlas-tier-storm         { background: #991b1b; color: #fff; }
.atlas-tier-full-storm    { background: #581c87; color: #fff; }
.atlas-tier-hurricane     { background: #000;    color: #fff; }

.atlas-tier-calm-soft     { background: #dcfce7; color: #14532d; }
.atlas-tier-building-soft { background: #fef9c3; color: #713f12; }
.atlas-tier-choppy-soft   { background: #ffedd5; color: #7c2d12; }
.atlas-tier-storm-soft    { background: #fee2e2; color: #7f1d1d; }
.atlas-tier-full-storm-soft { background: #f3e8ff; color: #3b0764; }
.atlas-tier-hurricane-soft  { background: #e5e7eb; color: #111827; }