/**
 * ================================================================================
 * BLOG-SPECIFIC STYLES
 * Streamline Dumpsters Ltd. - Blog Section
 * ================================================================================
 *
 * IMPORTANT: This file contains ONLY blog-specific styles.
 * All base styles are inherited from main-purged.min.css
 * DO NOT override existing site styles - only add new blog classes
 */

/* ============================================================================
   BLOG HERO SECTION
   ============================================================================ */

.blog-hero {
  background: linear-gradient(135deg, #01B0BB 0%, #019099 100%);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.blog-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.blog-hero__subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================================
   BLOG LAYOUT
   ============================================================================ */

.blog-layout {
  padding: 2rem 0 4rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.blog-main {
  min-width: 0; /* Prevents grid blowout */
}

/* ============================================================================
   BLOG SECTIONS
   ============================================================================ */

.blog-section {
  margin-bottom: 3rem;
}

.blog-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #01B0BB;
}

/* ============================================================================
   FEATURED POSTS GRID
   ============================================================================ */

.featured-posts {
  display: grid;
  gap: 2rem;
}

.featured-post {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.featured-post__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.featured-post__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f5f5f5;
}

.featured-post__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-post:hover .featured-post__image {
  transform: scale(1.05);
}

.featured-post__category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #01B0BB;
  color: #fff;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-post__content {
  padding: 1.5rem;
}

.featured-post__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.featured-post__excerpt {
  font-size: 1rem;
  color: #666;
  margin: 0 0 1rem;
  line-height: 1.6;
}

.featured-post__meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #999;
}

.featured-post__meta time {
  font-weight: 500;
}

.featured-post__read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.featured-post__read-time::before {
  content: "•";
  margin-right: 0.5rem;
}

/* ============================================================================
   BLOG CTA SECTION
   ============================================================================ */

.blog-cta {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 3rem;
}

.blog-cta__title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 1rem;
}

.blog-cta__text {
  font-size: 1.125rem;
  color: #666;
  margin: 0 0 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ============================================================================
   SIDEBAR
   ============================================================================ */

.blog-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.sidebar-widget {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-widget__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #01B0BB;
}

.sidebar-widget__text {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.sidebar-widget__phone {
  text-align: center;
  font-size: 0.875rem;
  color: #666;
  margin-top: 1rem;
}

.sidebar-widget__phone a {
  color: #01B0BB;
  font-weight: 600;
  text-decoration: none;
}

.sidebar-widget__phone a:hover {
  text-decoration: underline;
}

.sidebar-widget__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-widget__list li {
  margin-bottom: 0.75rem;
}

.sidebar-widget__list a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.sidebar-widget__list a::before {
  content: "→";
  margin-right: 0.5rem;
  color: #01B0BB;
  font-weight: 700;
}

.sidebar-widget__list a:hover {
  color: #01B0BB;
}

.sidebar-widget__link {
  display: inline-block;
  color: #01B0BB;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

.sidebar-widget__link:hover {
  color: #019099;
}

.sidebar-widget__categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-widget__categories li {
  margin-bottom: 0.75rem;
}

.sidebar-widget__categories a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  display: block;
  border-radius: 4px;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.sidebar-widget__categories a:hover {
  background: #01B0BB;
  color: #fff;
}

/* ============================================================================
   BLOG POST PAGE STYLES
   ============================================================================ */

.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.blog-post__header {
  margin-bottom: 2rem;
  text-align: center;
}

.blog-post__meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #999;
  flex-wrap: wrap;
}

.blog-post__category {
  background: #01B0BB;
  color: #fff;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

.blog-post__meta time,
.blog-post__read-time {
  font-weight: 500;
}

.blog-post__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 1rem;
  line-height: 1.2;
}

.blog-post__excerpt {
  font-size: 1.25rem;
  color: #666;
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
}

.blog-post__featured-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-post__content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
}

.blog-post__content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.blog-post__content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 2rem 0 1rem;
  line-height: 1.4;
}

.blog-post__content p {
  margin: 0 0 1.5rem;
}

.blog-post__content ul,
.blog-post__content ol {
  margin: 0 0 1.5rem;
  padding-left: 2rem;
}

.blog-post__content li {
  margin-bottom: 0.75rem;
}

.blog-post__content a {
  color: #01B0BB;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.blog-post__content a:hover {
  border-bottom-color: #01B0BB;
}

.blog-post__content strong {
  font-weight: 700;
  color: #222;
}

.blog-post__content blockquote {
  border-left: 4px solid #01B0BB;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 4px;
}

.blog-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

/* Info Box */
.info-box {
  background: #f0f9fa;
  border-left: 4px solid #01B0BB;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.info-box__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #01B0BB;
  margin: 0 0 0.75rem;
}

.info-box p {
  margin: 0;
  color: #333;
}

/* Table Styles */
.blog-post__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
}

.blog-post__content th,
.blog-post__content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.blog-post__content th {
  background: #f8f9fa;
  font-weight: 700;
  color: #333;
}

.blog-post__content tbody tr:hover {
  background: #f8f9fa;
}

/* ============================================================================
   BLOG POST FOOTER
   ============================================================================ */

.blog-post__footer {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid #e9ecef;
}

.blog-post__cta {
  background: linear-gradient(135deg, #01B0BB 0%, #019099 100%);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 3rem;
}

.blog-post__cta h3 {
  font-size: 2rem;
  margin: 0 0 1rem;
  color: #fff;
}

.blog-post__cta p {
  font-size: 1.125rem;
  margin: 0 0 2rem;
  opacity: 0.95;
}

.blog-post__cta .btn {
  background: #fff;
  color: #01B0BB;
  font-weight: 700;
}

.blog-post__cta .btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

/* Related Articles */
.blog-post__related {
  margin-top: 3rem;
}

.blog-post__related h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 1.5rem;
}

.related-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-post {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.related-post__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-post__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.related-post__content {
  padding: 1rem;
}

.related-post__title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .sidebar-widget {
    margin-bottom: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .blog-hero {
    padding: 3rem 1.5rem;
  }

  .blog-hero__title {
    font-size: 2rem;
  }

  .blog-hero__subtitle {
    font-size: 1.125rem;
  }

  .blog-grid {
    padding: 0 1rem;
  }

  .blog-section__title {
    font-size: 1.5rem;
  }

  .featured-post__title {
    font-size: 1.25rem;
  }

  .featured-post__content {
    padding: 1.25rem;
  }

  .blog-cta {
    padding: 2rem 1.5rem;
  }

  .blog-cta__title {
    font-size: 1.5rem;
  }

  .blog-cta__text {
    font-size: 1rem;
  }

  .blog-post {
    padding: 1.5rem 1rem;
  }

  .blog-post__title {
    font-size: 2rem;
  }

  .blog-post__excerpt {
    font-size: 1.125rem;
  }

  .blog-post__content {
    font-size: 1rem;
  }

  .blog-post__content h2 {
    font-size: 1.5rem;
  }

  .blog-post__content h3 {
    font-size: 1.25rem;
  }

  .blog-sidebar {
    grid-template-columns: 1fr;
  }

  .related-posts {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.btn--full-width {
  width: 100%;
  display: block;
}

.active {
  color: #01B0BB !important;
  font-weight: 700 !important;
}
