/* ========================================================
   Fabulous Printz - Bludit Journal Theme Stylesheet
   Palette: Hot Magenta, Crown Gold, Deep Onyx, Blush White
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

:root {
  /* Main Site Exact Color Variables */
  --primary-magenta: #e6007e;
  --magenta-glow: #ff1493;
  --magenta-dark: #b80065;
  --gold-main: #d4af37;
  --gold-light: #f5e29f;
  --gold-dark: #aa8522;
  --dark-onyx: #121215;
  --dark-surface: #1e1e24;
  --text-primary: #ffffff;
  --text-muted: #d1cfdb;
  --text-faded: #8c8a94;
  --border-card: #3d3b45;
  --gold-gradient: linear-gradient(135deg, #f7e6a4 0%, #d4af37 50%, #aa8522 100%);
  --magenta-gradient: linear-gradient(135deg, #ff2a9d 0%, #e6007e 50%, #b80065 100%);
}

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.site-wrapper {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  background-color: #0b0b0d !important; /* Matches footer to eliminate contrast seams */
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  padding-top: 88px !important;
  margin: 0 !important;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Expands the main layout area to lock the footer to the bottom */
.site-main {
  flex: 1 0 auto !important;
  width: 100%;
  background-color: var(--dark-onyx) !important;
  padding-bottom: 50px !important;
}

/* Links */
a {
  color: var(--gold-light);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--primary-magenta);
  text-decoration: none;
}

/* ========================================================
   HEADER & NAVBAR
   ======================================================== */
.navbar-modern {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(18, 18, 21, 0.96) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold-main);
  z-index: 1000;
  padding: 10px 0;
  transition: all 0.3s ease;
}

.brand-header-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(230, 0, 126, 0.4));
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--gold-light);
  text-transform: uppercase;
}

.navbar .nav-link {
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.45rem 1rem !important;
  transition: color 0.25s ease;
}

.navbar .nav-link:hover {
  color: var(--primary-magenta) !important;
}

.navbar .nav-link.active {
  color: var(--gold-light) !important;
  border-bottom: 2px solid var(--primary-magenta);
}

/* ========================================================
   ARTICLE CARDS WITH MAGENTA GLOW
   ======================================================== */
.card-modern {
  background: var(--dark-surface);
  border: 1px solid rgba(230, 0, 126, 0.25);
  border-radius: 16px;
  padding: 32px 28px;
  margin-bottom: 2.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(230, 0, 126, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.card-modern:hover {
  transform: translateY(-3px);
  border-color: var(--gold-main);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(230, 0, 126, 0.35);
}

.card-modern .card-body {
  padding: 0;
}

/* ========================================================
   TITLES & TYPOGRAPHY
   ======================================================== */

/* Main Luxury Cursive Blog Post Title Heading (Fluid Responsive) */
h1.title,
.card-modern h1,
.card-body h2.title,
.title-link h2.title,
.site-main .card-modern .card-body h2.title {
  font-family: 'Great Vibes', cursive !important;
  font-size: clamp(1.65rem, 4.5vw, 2.4rem) !important;
  line-height: 1.25 !important;
  font-weight: 400 !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  color: var(--gold-light) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 12px !important;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Cursive Title Viewport Breakpoints */
@media (max-width: 768px) {
  h1.title,
  .card-modern h1,
  .card-body h2.title,
  .title-link h2.title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 480px) {
  h1.title,
  .card-modern h1,
  .card-body h2.title,
  .title-link h2.title {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }
  
  .card-modern {
    padding: 24px 18px !important;
  }
}

.title-link:hover .title {
  color: var(--primary-magenta) !important;
}

/* Subhead inside the post content preview */
.card-body .content-preview h2 {
  font-size: 1rem !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}

.metadata {
  color: var(--text-faded);
  font-size: 0.62rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.metadata i {
  color: var(--primary-magenta);
  margin-right: 0.35rem;
}

.back-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-light);
}

/* ========================================================
   RESPONSIVE POST CONTENT & IMAGE CLAMPING
   ======================================================== */
.content-preview,
.content,
.plugin-content {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.75;
}

.content-preview img,
.content img,
.content-preview h1 img,
.content-preview h2 img,
.content-preview h3 img,
.content h1 img,
.content h2 img,
.content h3 img,
.card-body img,
.cover-image-wrapper img {
  display: block;
  width: auto;
  max-width: 100% !important;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  border: none !important;
  margin: 1.2rem auto;
}

/* ========================================================
   MAIN-SITE PILL BUTTONS (HOT MAGENTA GRADIENT)
   ======================================================== */
.btn-primary-gradient,
.btn-primary-gold,
.content a.btn,
.sidebar-container button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--magenta-gradient) !important;
  color: #ffffff !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 8px 24px rgba(230, 0, 126, 0.35) !important;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary-gradient:hover,
.btn-primary-gold:hover,
.content a.btn:hover,
.sidebar-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(230, 0, 126, 0.5) !important;
  color: #ffffff !important;
}

/* ========================================================
   TAXONOMY TAGS & CATEGORIES
   ======================================================== */
.post-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.taxonomy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--dark-onyx);
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  transition: all 0.2s ease;
}

.taxonomy-badge:hover {
  border-color: var(--primary-magenta);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(230, 0, 126, 0.4);
}

.taxonomy-category {
  border-color: var(--gold-main);
  color: var(--gold-light);
}

/* ========================================================
   SIDEBAR & SEARCH FORM
   ======================================================== */
.sidebar-container {
  background: var(--dark-surface);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(230, 0, 126, 0.15);
}

.plugin {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plugin:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.plugin-label {
  font-family: 'Great Vibes', cursive !important;
  font-size: 1.85rem !important; /* Scaled up so script is legible in the sidebar */
  font-weight: 400 !important;
  text-transform: none !important; /* Ensures smooth cursive letter connection */
  letter-spacing: 0.5px;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.plugin ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plugin ul li {
  padding: 0.35rem 0;
}

.plugin ul li a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.plugin ul li a:hover {
  color: var(--primary-magenta);
}

/* Form Inputs */
.form-control, input, textarea, select {
  background-color: var(--dark-onyx) !important;
  color: #ffffff !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-control:focus, input:focus {
  border-color: var(--primary-magenta) !important;
  box-shadow: 0 0 10px rgba(230, 0, 126, 0.35) !important;
  outline: none;
}

/* ========================================================
   PAGINATION
   ======================================================== */
.pagination .page-link {
  background: var(--dark-surface);
  border: 1px solid var(--border-card);
  color: var(--gold-light);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
}

.pagination .page-link:hover {
  background: var(--magenta-gradient);
  color: #ffffff;
  border-color: var(--primary-magenta);
}

.pagination .page-item.disabled .page-link {
  background: var(--dark-onyx);
  color: var(--text-faded);
  border-color: rgba(255, 255, 255, 0.05);
}

/* ========================================================
   FOOTER & CIRCULAR SOCIAL MEDIA BUTTONS
   ======================================================== */
footer.footer-modern {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  margin-top: auto !important;
  width: 100% !important;
  min-height: 56px;
  background-color: #0b0b0d !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0 28px 0 !important;
  z-index: 10;
}

.text-gold {
  color: var(--gold-main);
  font-weight: 700;
}

.copyright-text {
  font-size: 0.78rem;
  color: #8c8a94;
  letter-spacing: 0.5px;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-main);
  background: #1c1c24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light) !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.social-icon-btn:hover {
  background: var(--gold-main);
  color: var(--dark-onyx) !important;
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(230, 0, 126, 0.5), 0 6px 16px rgba(0, 0, 0, 0.5);
}

.social-icon-btn svg {
  transition: transform 0.2s ease;
}

.social-icon-btn:hover svg {
  transform: scale(1.08);
}