/*
Theme Name:     Kleo Child
Theme URI:
Description:    Child theme for Kleo
Author:         SeventhQueen
Author URI:     http://seventhqueen.com
Template:       kleo
Tags:  one-column, two-columns, right-sidebar, fluid-layout, custom-menu, featured-images, post-formats, sticky-post, translation-ready
License: GNU General Public License
License URI: license.txt
*/

/*
* Please add your custom styles below
*/

/* Base container + title (LIGHT by default) */
body.single-post.bb-modern-post-title-enabled .bb-modern-post-title-wrap {
  display: block;
  box-sizing: border-box;
  width: min(100%, 1040px);
  max-width: 1040px;
  margin: clamp(10px, 2vw, 20px) auto clamp(18px, 2.5vw, 30px);
  padding: clamp(14px, 2vw, 22px) clamp(16px, 2.5vw, 28px);
  border-radius: 16px;
  border: 1px solid var(--bb-content-border-color, rgba(15, 23, 42, 0.12));
  background: var(--bb-content-background-color, #fff);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  text-align: center;
}

body.single-post.bb-modern-post-title-enabled .bb-modern-post-title {
  margin: 0;
  color: var(--bb-headings-color, #0f172a);
  font-family: var(--bb-modern-post-title-font, 'Sora', sans-serif);
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

body.single-post.bb-modern-post-title-enabled .bb-modern-post-title-accent {
  display: block;
  width: 72px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0.15) 0%,
    var(--bb-primary-color, #ec4899) 50%,
    rgba(148, 163, 184, 0.15) 100%
  );
}

/* DARK variant overrides */
body.single-post.bb-modern-post-title-enabled.bb-modern-post-title-theme-dark .bb-modern-post-title-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 12% 18%, rgba(236, 72, 153, 0.22) 0%, rgba(236, 72, 153, 0) 48%),
    radial-gradient(circle at 88% 76%, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0) 52%),
    linear-gradient(135deg, rgba(16, 12, 22, 0.98) 0%, rgba(11, 9, 16, 0.99) 100%);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(236, 72, 153, 0.12) inset;
}

body.single-post.bb-modern-post-title-enabled.bb-modern-post-title-theme-dark .bb-modern-post-title-wrap::before {
  content: "";
  position: absolute;
  inset: -34%;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    rgba(236, 72, 153, 0.16),
    rgba(139, 92, 246, 0.16),
    rgba(236, 72, 153, 0.14)
  );
  filter: blur(20px);
  animation: bbModernHeroSpin 18s linear infinite;
  pointer-events: none;
}

body.single-post.bb-modern-post-title-enabled.bb-modern-post-title-theme-dark .bb-modern-post-title-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(236, 72, 153, 0) 0%,
    rgba(236, 72, 153, 0.72) 28%,
    rgba(139, 92, 246, 0.76) 72%,
    rgba(139, 92, 246, 0) 100%
  );
}

body.single-post.bb-modern-post-title-enabled.bb-modern-post-title-theme-dark .bb-modern-post-title {
  color: #ffeafd;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #f5d0fe 34%, #ec4899 64%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 7px 20px rgba(236, 72, 153, 0.2);
}

body.single-post.bb-modern-post-title-enabled.bb-modern-post-title-theme-dark .bb-modern-post-title-accent {
  width: 88px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(236, 72, 153, 0) 0%,
    rgba(236, 72, 153, 0.9) 35%,
    rgba(139, 92, 246, 0.92) 65%,
    rgba(139, 92, 246, 0) 100%
  );
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.28);
  animation: bbNeonPulse 4.6s ease-in-out infinite;
}

/* Animations */
@keyframes bbNeonPulse {
  0%, 100% { filter: brightness(1); transform: scaleX(1); }
  50% { filter: brightness(1.14); transform: scaleX(1.02); }
}

@keyframes bbModernHeroSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 767px) {
  body.single-post.bb-modern-post-title-enabled .bb-modern-post-title-wrap {
    border-radius: 14px;
    padding: 14px 16px;
    margin: 12px auto 20px;
  }

  body.single-post.bb-modern-post-title-enabled .bb-modern-post-title-accent {
    width: 56px;
    margin-top: 10px;
  }

  body.single-post.bb-modern-post-title-enabled.bb-modern-post-title-theme-dark .bb-modern-post-title-accent {
    width: 86px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  body.single-post.bb-modern-post-title-enabled.bb-modern-post-title-theme-dark .bb-modern-post-title-wrap::before,
  body.single-post.bb-modern-post-title-enabled.bb-modern-post-title-theme-dark .bb-modern-post-title-accent {
    animation: none;
  }
}


#sitewide-notice #message {
  position: relative;
  position: fixed !important;
  top: 30% !important;
  left: 50% !important;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  margin: 0;
  padding: 20px;
  border-radius: 16px;
  z-index: 99999;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    0 0 0 3px rgba(79,142,247,0.18),
    0 4px 6px rgba(0,0,0,0.04),
    0 20px 50px rgba(0,0,0,0.14);
  font-family: 'Sora', -apple-system, sans-serif;
  background-image:
    linear-gradient(180deg, transparent 0%, transparent 4px),
    linear-gradient(90deg, #4f8ef7, #7b5cf6, #e84fca);
  background-size: 100% 100%, 100% 4px;
  background-position: 0 0, 0 0;
  background-repeat: no-repeat;
}
#sitewide-notice.admin-bar-on #message {
  top: 35% !important;
}
#sitewide-notice #message::before {
  content: "i";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4f8ef7, #7b5cf6);
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  line-height: 36px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(79,142,247,0.4);
}
#sitewide-notice #message strong {
  display: block;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  margin: 0 0 0.5rem 0 !important;
  padding: 0 3rem 0 4.5rem !important;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
#sitewide-notice #message strong::before {
  content: "NOTICE";
  display: block;
  font-size: 9.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.15em;
  color: #4f8ef7 !important;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
#sitewide-notice #message p {
  background: none !important;
  color: #6b7280 !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  padding: 0.5rem 1rem 0 4.5rem !important;
  border-top: 1px solid #f1f2f5;
}
#sitewide-notice #message #close-notice {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  background: #f5f6f8;
  border: 1px solid rgba(0,0,0,0.08);
  color: #6b7280;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
#sitewide-notice #message #close-notice:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}
#sitewide-notice #message #close-notice .bp-screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute !important;
  white-space: nowrap;
}

