/* 
 * SHW Ad-Ready Enhancements Styles
 * Professional styling for better UX and ad network approval
 */

/* Breadcrumbs */
.shw-breadcrumbs {
  font-size: 0.9rem;
  color: #718096;
  padding: 15px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.shw-breadcrumbs a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s ease;
}

.shw-breadcrumbs a:hover {
  color: #5568d3;
  text-decoration: underline;
}

.shw-breadcrumbs span {
  color: #2d3748;
}

/* Post Meta (Reading Time & Date) */
.shw-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.shw-reading-time,
.shw-post-date {
  display: inline-flex;
  align-items: center;
}

/* Ad Zones */
.shw-ad-zone {
  min-height: 250px;
  background: #f8f9fa;
  border: 2px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  border-radius: 8px;
  color: #a0aec0;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shw-ad-top {
  margin-top: 30px;
}

.shw-ad-bottom {
  margin-bottom: 40px;
}

/* Related Posts Section */
.shw-related-posts {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #e2e8f0;
}

.shw-related-posts h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #2d3748;
}

.shw-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.shw-related-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.shw-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  border-color: #667eea;
}

.shw-related-image {
  display: block;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.shw-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.shw-related-card:hover .shw-related-image img {
  transform: scale(1.05);
}

.shw-related-content {
  padding: 20px;
}

.shw-related-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.shw-related-content h4 a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.2s ease;
}

.shw-related-content h4 a:hover {
  color: #667eea;
}

.shw-related-content p {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 15px;
}

.shw-read-more {
  display: inline-block;
  color: #667eea;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.shw-read-more:hover {
  color: #5568d3;
  text-decoration: underline;
}

/* Author Bio Box */
.shw-author-bio {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  padding: 25px;
  margin: 40px 0;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.shw-author-avatar {
  flex-shrink: 0;
}

.shw-author-avatar img {
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.shw-author-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2d3748;
}

.shw-author-info p {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .shw-related-grid {
    grid-template-columns: 1fr;
  }
  
  .shw-author-bio {
    flex-direction: column;
    text-align: center;
  }
  
  .shw-breadcrumbs {
    font-size: 0.85rem;
  }
  
  .shw-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Print Styles */
@media print {
  .shw-ad-zone,
  .shw-related-posts {
    display: none;
  }
}

/* Table of Contents */
.shw-toc {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  padding: 25px;
  margin: 30px 0;
  border-radius: 8px;
}

.shw-toc.sticky {
  position: sticky;
  top: 80px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.shw-toc h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2d3748;
}

.shw-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shw-toc-list li {
  margin-bottom: 10px;
}

.shw-toc-list a {
  color: #4a5568;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.shw-toc-list a:hover,
.shw-toc-list a.active {
  background: white;
  color: #667eea;
  padding-left: 20px;
}

/* Social Share Buttons */
.shw-social-share {
  margin: 40px 0;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.shw-social-share h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2d3748;
}

.shw-share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.shw-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.shw-share-btn svg {
  flex-shrink: 0;
}

.shw-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.shw-share-facebook {
  background: #1877f2;
}

.shw-share-facebook:hover {
  background: #145dbf;
}

.shw-share-twitter {
  background: #000000;
}

.shw-share-twitter:hover {
  background: #333333;
}

.shw-share-linkedin {
  background: #0a66c2;
}

.shw-share-linkedin:hover {
  background: #084d91;
}

.shw-share-pinterest {
  background: #e60023;
}

.shw-share-pinterest:hover {
  background: #ad081b;
}

.shw-share-email {
  background: #718096;
}

.shw-share-email:hover {
  background: #4a5568;
}

/* Scroll to Top Button */
.shw-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.shw-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.shw-scroll-top:hover {
  background: #5568d3;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* Reading Progress Bar */
.shw-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  z-index: 9999;
}

.shw-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  width: 0%;
  transition: width 0.1s ease;
}

/* Lazy Load Images */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

/* Category Archive Headers */
.shw-category-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px;
  margin-bottom: 40px;
  text-align: center;
  border-radius: 0 0 20px 20px;
}

.shw-category-header-content {
  max-width: 800px;
  margin: 0 auto;
}

.shw-category-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: white;
}

.shw-category-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.95;
}

.shw-category-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.shw-post-count {
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
  .shw-toc.sticky {
    position: relative;
    top: 0;
  }
  
  .shw-share-buttons {
    flex-direction: column;
  }
  
  .shw-share-btn {
    width: 100%;
    justify-content: center;
  }
  
  .shw-scroll-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }
}

