/* BinShops Blog - Modern Styling */

/* Base Styles */
:root {
  --primary-color: #6d28d9;
  --primary-hover: #5b21b6;
  --text-color: #333333;
  --text-light: #666666;
  --text-lighter: #777777;
  --border-color: #e5e7eb;
  --bg-light: #f9fafb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* Scrollbar Styling */
#scrollbar {
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 0%;
  height: 5px;
  z-index: 9999;
  background-color: var(--primary-color);
}

#scrollbar-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  opacity: 0.3;
}

/* Typography */
.blog-title {
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.blog-subtitle {
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 1rem;
}

.blog-excerpt {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-excerpt p {
  margin-bottom: 0.75rem;
}

.blog-excerpt img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

/* Buttons */
.blog-button {
  margin-top: auto;
}

.blog-button a {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-button a:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
  text-decoration: none;
}

/* Images */
.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.blog-card {
  animation: fadeIn 0.5s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .blog-title {
    font-size: 1.2rem;
  }
  
  .blog-subtitle {
    font-size: 0.9rem;
  }
  
  .blog-excerpt {
    font-size: 0.9rem;
  }
  
  .blog-button {
    width: 100%;
    text-align: center;
  }
}

/* Performance Optimizations */
.blog-image {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.blog-card {
  contain: content;
}

/* Lazy Loading Support */
.blog-image img.lazy {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.blog-image img.lazy.loaded {
  opacity: 1;
}

/* Print Styles */
@media print {
  .blog-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  .blog-button {
    display: none;
  }
  
  .blog-image {
    max-height: 150px;
  }
}

/* Category Styles */
.cat2 {
  padding-left: 20px !important;
}

.cat3 {
  padding-left: 40px !important;
}
