/* ==========================================================================
   FLORECIMIENTO CEREBRAL SIGLO XXI - BLOG DESIGN SYSTEM (LUXURY EDITORIAL)
   Matches editorial.css luxury dark wine & bioluminescent theme
   ========================================================================== */

/* Enforce luxury dark theme on blog and post views */
html,
body {
  background: #0d0205 !important;
  color: #f7e6e9 !important;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(140, 20, 36, 0.42) 0%, transparent 68%),
    radial-gradient(circle at 85% 25%, rgba(215, 52, 78, 0.2) 0%, transparent 48%),
    linear-gradient(180deg, #180307 0%, #0d0205 45%, #070103 100%) !important;
  background-attachment: fixed !important;
}

/* Enforce desktop nav rules: hide drawer-only CTA in the top horizontal bar */
@media (min-width: 1001px) {
  .nav-cta-mobile {
    display: none !important;
  }
}

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #c4384d, #ff8ca0, #00e5ff);
  z-index: 999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(255, 140, 160, 0.8);
}

/* Blog Header & Hero */
.blog-hero {
  padding: 10.5rem 0 4.5rem 0;
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 65% 55% at 50% 20%, rgba(120, 18, 30, 0.45) 0%, transparent 68%),
    radial-gradient(circle at 80% 10%, rgba(215, 52, 78, 0.25) 0%, transparent 50%),
    linear-gradient(180deg, #180307 0%, #08090f 100%);
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.15rem;
  background: rgba(255, 140, 160, 0.12);
  border: 1px solid rgba(255, 140, 160, 0.35);
  color: #ff8ca0;
  font-family: var(--font-editorial-sans, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.blog-title {
  font-family: var(--font-editorial-serif, 'Cormorant Garamond', serif);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.blog-title .title-accent {
  color: #ff8ca0;
  font-style: italic;
  font-weight: 700;
}

.blog-subtitle {
  font-family: var(--font-editorial-sans, 'Montserrat', sans-serif);
  font-size: 1.08rem;
  color: rgba(255, 235, 238, 0.75);
  max-width: 680px;
  margin: 0 auto 2.8rem auto;
  line-height: 1.65;
  font-weight: 400;
}

/* Search & Filter Bar */
.blog-filter-bar {
  max-width: 760px;
  margin: 0 auto 3.8rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.blog-search-box {
  width: 100%;
  position: relative;
}

.blog-search-input {
  width: 100%;
  padding: 1rem 1.4rem 1rem 3.2rem;
  background: rgba(22, 5, 9, 0.75);
  border: 1px solid rgba(255, 140, 160, 0.22);
  border-radius: 0px !important;
  color: #ffffff;
  font-family: var(--font-editorial-sans, 'Montserrat', sans-serif);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-normal);
  backdrop-filter: blur(14px);
}

.blog-search-input:focus {
  border-color: #ff8ca0;
  box-shadow: 0 0 25px rgba(255, 140, 160, 0.25);
  background: rgba(30, 8, 14, 0.95);
}

.blog-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: rgba(255, 200, 210, 0.6);
  pointer-events: none;
}

.blog-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.category-chip {
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 230, 235, 0.75);
  font-family: var(--font-editorial-sans, 'Montserrat', sans-serif);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: 0px !important;
}

.category-chip:hover {
  background: rgba(255, 140, 160, 0.12);
  color: #ffffff;
  border-color: rgba(255, 140, 160, 0.35);
}

.category-chip.active {
  background: #c4384d;
  border-color: #ff8ca0;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(196, 56, 77, 0.4);
}

/* Blog Posts Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.4rem;
  margin-bottom: 5rem;
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: rgba(20, 5, 9, 0.7);
  border: 1px solid rgba(255, 140, 160, 0.16);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-radius: 0px !important;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff8ca0, transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 140, 160, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(196, 56, 77, 0.2);
  background: rgba(30, 8, 14, 0.9);
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0408;
  border-bottom: 1px solid rgba(255, 140, 160, 0.12);
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card-img {
  transform: scale(1.04);
}

.blog-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(26, 4, 9, 0.88);
  color: #ff8ca0;
  border: 1px solid rgba(255, 140, 160, 0.35);
  font-family: var(--font-editorial-sans, 'Montserrat', sans-serif);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  backdrop-filter: blur(8px);
}

.blog-card-code {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(10, 20, 30, 0.9);
  color: #00e5ff;
  border: 1px solid rgba(0, 229, 255, 0.35);
  font-family: var(--font-editorial-sans, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.65rem;
  backdrop-filter: blur(8px);
}

.blog-card-body {
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: rgba(255, 210, 220, 0.55);
  font-family: var(--font-editorial-sans, 'Montserrat', sans-serif);
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}

.blog-card-title {
  font-family: var(--font-editorial-serif, 'Cormorant Garamond', serif);
  font-size: 1.6rem;
  line-height: 1.22;
  color: #ffffff;
  margin-bottom: 0.85rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-title {
  color: #ff8ca0;
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: rgba(255, 235, 238, 0.7);
  line-height: 1.65;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 140, 160, 0.1);
  font-size: 0.8rem;
  font-family: var(--font-editorial-sans, 'Montserrat', sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ff8ca0;
  font-weight: 700;
  transition: gap var(--transition-fast);
}

.blog-card:hover .blog-card-read-more {
  gap: 0.7rem;
  color: #ffffff;
}

/* Empty State */
.blog-empty-state {
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: rgba(20, 5, 9, 0.6);
  border: 1px dashed rgba(255, 140, 160, 0.25);
}

/* ==========================================================================
   POST SINGLE VIEW (post.html)
   ========================================================================== */
.post-layout {
  padding: 9rem 0 6.5rem 0;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#post-article-container {
  background: rgba(22, 5, 9, 0.78);
  border: 1px solid rgba(255, 140, 160, 0.22);
  border-radius: 4px;
  padding: 3.5rem 3.2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.65), 0 0 45px rgba(196, 56, 77, 0.12);
}

@media (max-width: 768px) {
  #post-article-container {
    padding: 2rem 1.25rem;
  }
}

.post-back-nav {
  margin-bottom: 2.8rem;
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 220, 225, 0.75);
  font-family: var(--font-editorial-sans, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: var(--transition-fast);
}

.post-back-link:hover {
  color: #ff8ca0;
  transform: translateX(-4px);
}

.post-header {
  margin-bottom: 3rem;
  text-align: center;
}

.post-header-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.post-title {
  font-family: var(--font-editorial-serif, 'Cormorant Garamond', serif);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--font-editorial-sans, 'Montserrat', sans-serif);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255, 220, 225, 0.65);
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 140, 160, 0.15);
}

.post-author-box {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #ffffff;
  font-weight: 600;
}

.post-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 0 !important;
  object-fit: cover;
  border: 1px solid rgba(255, 140, 160, 0.4);
}

/* Featured Comic / Illustration Box */
.post-featured-media {
  margin: 2.8rem 0 3.8rem 0;
  background: #0a0306;
  border: 1px solid rgba(255, 140, 160, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 40px rgba(196, 56, 77, 0.15);
  overflow: hidden;
  position: relative;
}

.post-featured-media img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #080205;
}

.post-media-caption {
  padding: 0.95rem 1.4rem;
  background: rgba(20, 5, 9, 0.95);
  font-family: var(--font-editorial-sans, 'Montserrat', sans-serif);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 200, 210, 0.65);
  text-align: center;
  border-top: 1px solid rgba(255, 140, 160, 0.12);
  text-transform: uppercase;
}

/* Post Rich Article Body */
.post-content {
  font-size: 1.15rem;
  line-height: 1.88;
  color: rgba(255, 244, 245, 0.88);
}

.post-content p {
  font-size: 1.15rem;
  line-height: 1.88;
  margin-bottom: 1.9rem;
  color: rgba(255, 235, 238, 0.84);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: var(--font-editorial-serif, 'Cormorant Garamond', serif);
  color: #ffffff;
  margin: 3rem 0 1.3rem 0;
  letter-spacing: -0.01em;
  position: relative;
}

.post-content h2 {
  font-size: 2.3rem;
  border-bottom: 1px solid rgba(255, 140, 160, 0.18);
  padding-bottom: 0.7rem;
}

.post-content h3 {
  font-size: 1.85rem;
  color: #ffeff2;
}

.post-content h3::before {
  content: "✦";
  color: #ff8ca0;
  margin-right: 0.65rem;
  font-size: 1.1rem;
}

.post-content blockquote {
  margin: 2.2rem 0;
  padding: 1.5rem 2rem;
  background: rgba(65, 10, 18, 0.7);
  border: 1px solid rgba(255, 140, 160, 0.22);
  border-left: 4px solid #ff4d6d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  font-style: italic;
  font-family: var(--font-editorial-serif, 'Cormorant Garamond', serif);
  font-size: 1.35rem;
  line-height: 1.7;
  color: #ffffff;
}

.post-content blockquote p {
  color: #ffffff !important;
  margin-bottom: 0.75rem;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content blockquote strong {
  color: #ffcad4;
  font-style: normal;
}

.post-content ul,
.post-content ol {
  margin: 1.6rem 0 2.2rem 1.5rem;
  padding-left: 1.2rem;
}

.post-content li {
  margin-bottom: 0.9rem;
  line-height: 1.75;
  color: rgba(255, 235, 238, 0.86);
}

.post-content li::marker {
  color: #ff8ca0;
}

.post-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 160, 0.28), transparent);
  margin: 3.8rem 0;
}

.post-content strong {
  color: #ffffff;
  font-weight: 700;
}

/* Post Share and Actions */
.post-share-bar {
  margin: 4.5rem 0 3rem 0;
  padding: 1.8rem 2.2rem;
  background: rgba(20, 5, 9, 0.75);
  border: 1px solid rgba(255, 140, 160, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.post-share-title {
  font-family: var(--font-editorial-sans, 'Montserrat', sans-serif);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
}

.post-share-buttons {
  display: flex;
  gap: 0.75rem;
}

.post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.2rem;
  font-family: var(--font-editorial-sans, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  border: 1px solid rgba(255, 140, 160, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  transition: var(--transition-fast);
  border-radius: 0px !important;
}

.post-share-btn:hover {
  background: #c4384d;
  border-color: #ff8ca0;
  box-shadow: 0 4px 18px rgba(196, 56, 77, 0.4);
}

/* Post CTA Banner */
.post-cta-box {
  margin-top: 4rem;
  padding: 3.5rem 2.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(215, 52, 78, 0.28) 0%, transparent 65%),
    linear-gradient(180deg, #24050a 0%, #150306 100%);
  border: 1px solid rgba(255, 140, 160, 0.3);
  text-align: center;
}

.post-cta-box h3 {
  font-family: var(--font-editorial-serif, 'Cormorant Garamond', serif);
  font-size: 2.3rem;
  color: #ffffff;
  margin-bottom: 0.9rem;
}

.post-cta-box p {
  max-width: 620px;
  margin: 0 auto 2rem auto;
  color: rgba(255, 235, 238, 0.75);
}
