/* ==========================================================================
   Single Post CSS - BhaskarPress Pro
   ========================================================================== */

/* Variables */
:root {
  --sp-text: #222;
  --sp-text-light: #555;
  --sp-bg: #fff;
  --sp-bg-light: #f9f9f9;
  --sp-border: #eaeaea;
  --sp-primary: #d60000;
  --sp-secondary: #0056b3;
  --sp-shadow: rgba(0,0,0,0.05);
}

body.dark-mode {
  --sp-text: #e0e0e0;
  --sp-text-light: #aaa;
  --sp-bg: #121212;
  --sp-bg-light: #1e1e1e;
  --sp-border: #333;
  --sp-primary: #ff4d4d;
  --sp-shadow: rgba(0,0,0,0.5);
}

/* Base Layout */
.bh-single-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  gap: 30px;
}
.bh-single-main {
  width: 68%;
}
.bh-single-sidebar {
  width: 32%;
}

/* Breadcrumb */
.bh-breadcrumb {
  font-size: 13px;
  color: var(--sp-text-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.bh-breadcrumb a {
  color: var(--sp-primary);
  text-decoration: none;
}
.bh-breadcrumb a:hover {
  text-decoration: underline;
}

/* Header */
.bh-article-header {
  margin-bottom: 25px;
}
.bh-cat-badge {
  display: inline-block;
  background: var(--sp-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-decoration: none;
}
.bh-article-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--sp-text);
  margin: 0 0 15px;
}
.bh-article-subhead {
  font-size: 20px;
  color: var(--sp-text-light);
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 400;
}

/* Author & Meta */
.bh-author-meta {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
  padding: 15px 0;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
}
.bh-author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.bh-author-info {
  display: flex;
  flex-direction: column;
}
.bh-author-name {
  font-weight: 700;
  color: var(--sp-text);
  font-size: 15px;
  text-decoration: none;
}
.bh-author-designation {
  font-size: 13px;
  color: var(--sp-text-light);
}
.bh-meta-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: var(--sp-text-light);
  margin-left: auto;
}
.bh-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Article Tools */
.bh-article-tools {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--sp-border);
  padding-bottom: 15px;
}
.bh-tool-btn {
  background: none;
  border: 1px solid var(--sp-border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--sp-text-light);
  transition: all 0.2s;
}
.bh-tool-btn:hover {
  background: var(--sp-bg-light);
  color: var(--sp-primary);
  border-color: var(--sp-primary);
}

/* Reading Progress */
#bh-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--sp-primary);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Featured Image */
.bh-featured-image {
  margin-bottom: 30px;
}
.bh-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.bh-featured-caption {
  font-size: 13px;
  color: var(--sp-text-light);
  text-align: right;
  margin-top: 8px;
  font-style: italic;
}

/* Content Area layout with Share Bar */
.bh-content-layout {
  display: flex;
  gap: 30px;
}
.bh-share-sidebar {
  width: 50px;
  flex-shrink: 0;
}
.bh-share-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bh-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s;
}
.bh-share-btn:hover {
  transform: translateY(-2px);
}
.bh-share-fb { background: #1877F2; }
.bh-share-tw { background: #000; }
.bh-share-wa { background: #25D366; }
.bh-share-tg { background: #0088cc; }
.bh-share-cp { background: var(--sp-text-light); }

/* Main Typography */
.bh-article-content {
  max-width: 850px;
  font-size: 18px;
  line-height: 1.9;
  color: var(--sp-text);
}
.bh-article-content p {
  margin-bottom: 25px;
}
.bh-article-content h2, .bh-article-content h3, .bh-article-content h4 {
  color: var(--sp-text);
  font-weight: 700;
  margin: 35px 0 15px;
  line-height: 1.4;
}
.bh-article-content h2 { font-size: 28px; }
.bh-article-content h3 { font-size: 24px; }
.bh-article-content a {
  color: var(--sp-primary);
  text-decoration: underline;
}
.bh-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 20px 0;
}
.bh-article-content blockquote {
  border-left: 4px solid var(--sp-primary);
  padding: 10px 20px;
  margin: 25px 0;
  background: var(--sp-bg-light);
  font-style: italic;
  font-size: 20px;
}

/* Inline Ads */
.bh-inline-ad {
  margin: 30px 0;
  text-align: center;
  background: var(--sp-bg-light);
  padding: 10px;
  border: 1px solid var(--sp-border);
}

/* Tags */
.bh-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sp-border);
}
.bh-article-tags a {
  background: var(--sp-bg-light);
  color: var(--sp-text);
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--sp-border);
  transition: all 0.2s;
}
.bh-article-tags a:hover {
  background: var(--sp-primary);
  color: #fff;
  border-color: var(--sp-primary);
}

/* Author Box */
.bh-author-box {
  display: flex;
  gap: 20px;
  background: var(--sp-bg-light);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 40px;
  border: 1px solid var(--sp-border);
}
.bh-author-box-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.bh-author-box-content h4 {
  margin: 0 0 5px;
  font-size: 20px;
  color: var(--sp-text);
}
.bh-author-box-desc {
  font-size: 15px;
  color: var(--sp-text-light);
  margin-bottom: 15px;
  line-height: 1.6;
}
.bh-author-social {
  display: flex;
  gap: 10px;
}
.bh-author-social a {
  color: var(--sp-text-light);
}

/* Related Posts */
.bh-related-posts {
  margin-bottom: 50px;
}
.bh-related-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--sp-text);
}
.bh-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.bh-related-card {
  border: 1px solid var(--sp-border);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  background: var(--sp-bg);
  transition: transform 0.2s;
}
.bh-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--sp-shadow);
}
.bh-related-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.bh-related-info {
  padding: 12px;
}
.bh-related-cat {
  font-size: 11px;
  color: var(--sp-primary);
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.bh-related-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--sp-text);
  line-height: 1.4;
  margin-bottom: 8px;
}
.bh-related-date {
  font-size: 11px;
  color: var(--sp-text-light);
}

/* Sidebar */
.bh-sidebar-sticky {
  position: sticky;
  top: 90px;
}
.bh-widget {
  background: var(--sp-bg);
  border: 1px solid var(--sp-border);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 25px;
}
.bh-widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--sp-text);
  margin: 0 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sp-primary);
  display: inline-block;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .bh-single-container { flex-direction: column; }
  .bh-single-main { width: 100%; }
  .bh-single-sidebar { width: 100%; }
  .bh-related-grid { grid-template-columns: repeat(2, 1fr); }
  .bh-article-title { font-size: 38px; }
}

@media (max-width: 768px) {
  .bh-article-title { font-size: 28px; }
  .bh-content-layout { flex-direction: column; }
  .bh-share-sidebar { display: none; }
  .bh-related-grid { grid-template-columns: 1fr; }
  .bh-author-box { flex-direction: column; text-align: center; align-items: center; }
  .bh-meta-details { margin-left: 0; width: 100%; }
}
