/* ==========================================================================
   SmartMag Astrology Blog Stylesheet — burc.lol
   ========================================================================== */

/* --- Font Size Utilities --- */
.f-10 { font-size: 0.625rem !important; }
.f-11 { font-size: 0.6875rem !important; }
.f-12 { font-size: 0.75rem !important; }
.f-13 { font-size: 0.8125rem !important; }
.f-14 { font-size: 0.875rem !important; }
.f-15 { font-size: 0.9375rem !important; }
.f-16 { font-size: 1rem !important; }

/* --- Line Clamps --- */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Interactive Hover Effects --- */
.transition-hover {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.transition-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(24, 59, 86, 0.1) !important;
}

.hover-primary {
  transition: color 0.18s ease;
}
.hover-primary:hover,
.hover-primary:focus {
  color: var(--brand-primary, #7c3aed) !important;
}

.hover-underline {
  text-decoration: none;
}
.hover-underline:hover {
  text-decoration: underline !important;
}

/* --- SmartMag 1+2 Magazine Hero Grid --- */
.smartmag-hero-grid {
  position: relative;
}

.smartmag-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.smartmag-hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22) !important;
}
.smartmag-hero-card--lg {
  min-height: 400px;
}
.smartmag-hero-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.6) 45%, rgba(15, 23, 42, 0.92) 100%);
  transition: background 0.3s ease;
}
.smartmag-hero-card:hover .smartmag-hero-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.55) 40%, rgba(15, 23, 42, 0.95) 100%);
}

/* --- SmartMag Filter Pills Bar --- */
.smartmag-filter-bar .nav-pills {
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.smartmag-filter-bar .nav-pills::-webkit-scrollbar {
  height: 4px;
}
.smartmag-filter-bar .nav-pills::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.smartmag-filter-bar .nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.smartmag-filter-bar .nav-link.active {
  background: var(--brand-primary, #7c3aed) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}
.smartmag-filter-bar .nav-link.bg-light:hover {
  background: #e2e8f0 !important;
  color: var(--brand-primary, #7c3aed) !important;
}

/* --- Post List Items --- */
.smartmag-post-item {
  border: 1px solid rgba(24, 59, 86, 0.08) !important;
}
.smartmag-post-item:hover {
  border-color: rgba(124, 58, 237, 0.25) !important;
}

/* --- SmartMag Sidebar Widgets --- */
.smartmag-widget {
  border: 1px solid rgba(24, 59, 86, 0.08) !important;
}
.smartmag-widget .widget-header h3 {
  letter-spacing: -0.01em;
}
.ranked-num {
  font-family: inherit;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.15);
}

/* --- SmartMag Single Article Typography --- */
.smartmag-single {
  border: 1px solid rgba(24, 59, 86, 0.08) !important;
}
.smartmag-single-header h1 {
  letter-spacing: -0.02em;
}
.smartmag-single-banner {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.smartmag-single-content {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.85;
}
.smartmag-single-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2.25rem;
  margin-bottom: 0.9rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  position: relative;
  padding-left: 0.85rem;
  border-left: 4px solid var(--brand-primary, #7c3aed);
}
.smartmag-single-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 1.85rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.smartmag-single-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #334155;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.smartmag-single-content p {
  margin-bottom: 1.35rem;
}
.smartmag-single-content blockquote {
  border-left: 4px solid var(--brand-primary, #7c3aed);
  background: rgba(124, 58, 237, 0.06);
  padding: 1.15rem 1.35rem;
  margin: 1.85rem 0;
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: #334155;
  font-size: 1.08rem;
  line-height: 1.75;
}
.smartmag-single-content ul,
.smartmag-single-content ol {
  margin-bottom: 1.35rem;
  padding-left: 1.6rem;
}
.smartmag-single-content li {
  margin-bottom: 0.55rem;
}
.smartmag-single-content strong {
  color: #0f172a;
}
.smartmag-single-content hr {
  margin: 2.5rem 0;
  opacity: 0.12;
}

/* --- Share Bar & Author Bio --- */
.smartmag-share-bar {
  border: 1px solid #e2e8f0 !important;
}
.smartmag-author-box {
  border: 1px solid #e2e8f0 !important;
}

/* --- Dark Mode Overrides --- */
[data-bs-theme="dark"] .logo-brand-text {
  color: #f8f9fc !important;
}

[data-bs-theme="dark"] .smartmag-single,
[data-bs-theme="dark"] .smartmag-post-item,
[data-bs-theme="dark"] .smartmag-widget,
[data-bs-theme="dark"] .smartmag-related-posts .card {
  background-color: #1e2430 !important;
  border-color: #2f3848 !important;
  box-shadow: none !important;
}
[data-bs-theme="dark"] .smartmag-single h1,
[data-bs-theme="dark"] .smartmag-single-content h2,
[data-bs-theme="dark"] .smartmag-single-content h3,
[data-bs-theme="dark"] .smartmag-single-content h4,
[data-bs-theme="dark"] .smartmag-single-content strong,
[data-bs-theme="dark"] .smartmag-post-item h2 a,
[data-bs-theme="dark"] .widget-header h3,
[data-bs-theme="dark"] .smartmag-related-posts h3,
[data-bs-theme="dark"] .smartmag-related-posts h4 a,
[data-bs-theme="dark"] .blog-header h1,
[data-bs-theme="dark"] .smartmag-single-meta .text-dark,
[data-bs-theme="dark"] .smartmag-post-item .text-dark,
[data-bs-theme="dark"] .smartmag-author-box h4,
[data-bs-theme="dark"] .smartmag-share-bar .text-dark {
  color: #f1f5f9 !important;
}
[data-bs-theme="dark"] .smartmag-single-content,
[data-bs-theme="dark"] .smartmag-single-content p,
[data-bs-theme="dark"] .smartmag-single-content li {
  color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .smartmag-single-content blockquote {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: #a78bfa;
  color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .smartmag-single-content h2 {
  border-left-color: #a78bfa;
}
[data-bs-theme="dark"] .smartmag-share-bar,
[data-bs-theme="dark"] .smartmag-author-box {
  background-color: #242c34 !important;
  border-color: #3a4558 !important;
}
[data-bs-theme="dark"] .smartmag-filter-bar .nav-link.bg-light {
  background-color: #242c34 !important;
  color: #cbd5e1 !important;
  border-color: #2f3848 !important;
}
[data-bs-theme="dark"] .smartmag-filter-bar .nav-link.bg-light:hover {
  background-color: #2e3846 !important;
  color: #f1f5f9 !important;
}
[data-bs-theme="dark"] .smartmag-filter-bar.border-bottom,
[data-bs-theme="dark"] .smartmag-single-meta.border-top,
[data-bs-theme="dark"] .smartmag-single-meta.border-bottom,
[data-bs-theme="dark"] .smartmag-post-item .border-top,
[data-bs-theme="dark"] .widget-header.border-bottom {
  border-color: #2f3848 !important;
}
[data-bs-theme="dark"] .ranked-num {
  background-color: #242c34 !important;
  color: #a78bfa !important;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.25);
}
[data-bs-theme="dark"] .ranked-post-content h4 a {
  color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .ranked-post-content h4 a:hover {
  color: #a78bfa !important;
}
[data-bs-theme="dark"] .smartmag-sidebar a.bg-light {
  background-color: #242c34 !important;
  color: #e2e8f0 !important;
}
[data-bs-theme="dark"] .smartmag-sidebar a.bg-light:hover {
  background-color: #2e3846 !important;
  color: #a78bfa !important;
}
