/* ================================================================
   cover.css  —  Global styles for Blogs App
   These apply to EVERY page via base.html.
   Page-specific styles go in each template's {% block extra_css %}.
================================================================ */


/* ----------------------------------------------------------------
   CSS VARIABLES
   Edit these to retheme the entire site in one place.
---------------------------------------------------------------- */
:root {
  --bg: #0f1117;                      /* page background             */
  --surface: #181c25;                 /* card / panel background     */
  --surface2: #1f2333;                /* hover state background      */
  --accent: #f0a500;                  /* gold highlight              */
  --text: #e8e8f0;                    /* primary text                */
  --muted: #7a7f9a;                   /* subdued / secondary text    */
  --border: rgba(255,255,255,0.07);   /* subtle divider colour       */
  --radius: 14px;                     /* default border-radius       */
}


/* ----------------------------------------------------------------
   BASE RESET & BODY
   Removes browser defaults that conflict with our layout.
---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg) !important;  /* override Bootstrap's dark bg */
  color: var(--text) !important;
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}


/* ----------------------------------------------------------------
   NAVBAR / HEADER
   Sticky top bar with frosted-glass backdrop blur.
   .site-header wraps the <header> element in base.html.
---------------------------------------------------------------- */
.site-header {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);

  /* Stays at top while scrolling */
  position: sticky;
  top: 0;
  z-index: 100;

  /* Frosted glass effect — dark semi-transparent + blur */
  background: rgba(15, 17, 23, 0.88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);  /* Safari support */
}

/* Brand logo text */
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-brand:hover {
  opacity: 0.85;
  color: var(--text);
}
/* Gold accent dot after brand name */
.nav-brand span {
  color: var(--accent);
}

.nav-masthead {
  gap: 8rem;
  margin-left: auto;
}
@media (max-width: 768px) {
  .site-header .d-flex {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .nav-masthead {
    gap: 1rem;
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}
/* Override Bootstrap's default nav-link colour */
.nav-masthead .nav-link {
  color: var(--muted);
  transition: color 0.2s;
  border: none;
  background: none;
}
.nav-masthead .nav-link:hover {
  color: var(--text);
}

/* Active page link — white text + gold underline bar */
.nav-masthead .nav-link.active {
  color: var(--text) !important;
  position: relative;
}
.nav-masthead .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.5rem;    /* indent to match px-2 padding */
  right: 0.5rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Logout button — unstyled so it looks identical to nav links */
.logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: var(--muted);
  padding: 0;
}
.logout-btn:hover {
  color: var(--text);
}


/* ----------------------------------------------------------------
   COVER CONTAINER
   The Bootstrap cover-container centres content on the page.
   We keep it from Bootstrap's example but restrict max-width.
---------------------------------------------------------------- */
.cover-container {
  max-width: 960px;
  text-align: left !important;
}


/* ----------------------------------------------------------------
   FOOTER
   Subtle bottom bar.
   mt-auto on flex children pushes it to the bottom of the page.
---------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 0 1rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--muted) !important;
}


/* ----------------------------------------------------------------
   SHARED UTILITY — FADE UP ANIMATION
   Reusable entrance animation used on hero cards, sections, etc.
   Apply class="fade-up" to any element you want to animate in.
---------------------------------------------------------------- */
.fade-up {
  animation: fadeUp 0.65s ease both;
}
.fade-up-delay {
  animation: fadeUp 0.65s 0.2s ease both;  /* 0.2s later than .fade-up */
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ----------------------------------------------------------------
   SHARED UTILITY — GOLD BUTTON
   A reusable pill CTA button used across pages.
   Use: <a href="..." class="btn-gold">Label →</a>
---------------------------------------------------------------- */
.btn-gold {
  display: inline-block !important;
  background: var(--accent) !important;
  color: #0f1117 !important;
  font-weight: 700 !important;
  font-size: 0.95rem;
  padding: 0.8rem 2rem;
  border-radius: 99px;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(240, 165, 0, 0.28);
  border: none;
  cursor: pointer;
}
.btn-gold:hover {
  color: #0f1117;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240, 165, 0, 0.42);
}