/* Blog Page Styles - Elegant Bento Grid */
.blog {
  min-height: 100vh;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
  color: var(--text-light);
}

[data-theme="dark"] .blog {
  background: var(--bg-dark);
  color: var(--text-dark);
}

/* Hero Section */
.blog .hero {
  position: relative;
  height: 40vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #2a5a27 0%, #1a3a17 100%);
  overflow: hidden;
}

.blog .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/pattern.png');
  opacity: 0.05;
  animation: float 30s linear infinite;
}

.blog .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.blog .hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
  animation: slideDown 0.8s ease-out;
  font-family: 'Montserrat', sans-serif;
}

.blog .hero-sub {
  font-size: 1.25rem;
  color: var(--white);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  animation: slideUp 0.8s ease-out;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
}

/* Blog Posts Grid */
.blog-posts {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.blog-posts-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  list-style: none;
  padding: 0;
}

.blog-post-item {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-post-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96e6a1, #d4fc79, #ff9a9e);
  background-size: 600% 100%;
  animation: none;
  transition: all 0.3s ease;
}

.blog-post-item:hover::after {
  animation: neon-line 2s linear forwards;
}

.blog-post-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-post-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-banner-box {
  position: relative;
  aspect-ratio: 16/9;
  max-height: 180px;
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-banner-box img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 0.75rem;
}

.blog-post-item:hover .blog-banner-box img {
  transform: scale(1.1);
}

.blog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--gray);
}

.blog-category {
  color: #2a5a27;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dot {
  width: 4px;
  height: 4px;
  background: var(--gray);
  border-radius: 50%;
}

.blog-item-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-item-title span {
  display: block;
  background: linear-gradient(90deg, #2a5a27 0%, #4a9a47 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.blog-item-title span:nth-child(2) {
  background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.blog-item-title span:nth-child(3) {
  background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.blog-text {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.blog-read-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: #2a5a27;
  font-weight: 600;
  transition: all 0.3s ease;
}

.blog-post-item:hover .blog-read-more {
  color: #1a3a17;
}

.read-more-icon {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-size: 1.2rem;
}

.blog-post-item:hover .read-more-icon {
  transform: translateX(8px);
}

/* Dark Theme Adjustments */
[data-theme="dark"] .blog-post-item {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(30, 30, 30, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .blog-post-item:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .blog-category {
  color: #7ab97a;
}

[data-theme="dark"] .blog-item-title span:nth-child(1) {
  background: linear-gradient(90deg, #7ab97a 0%, #a8d5a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

[data-theme="dark"] .blog-item-title span:nth-child(2) {
  background: linear-gradient(90deg, #e57373 0%, #ef5350 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

[data-theme="dark"] .blog-item-title span:nth-child(3) {
  background: linear-gradient(90deg, #64b5f6 0%, #42a5f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

[data-theme="dark"] .blog-read-more {
  border-top-color: rgba(255, 255, 255, 0.05);
  color: #7ab97a;
}

[data-theme="dark"] .blog-post-item:hover .blog-read-more {
  color: #a8d5a8;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blog-posts-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .blog-posts-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-posts {
    padding: 4rem 1.5rem;
  }
  
  .blog-posts-list {
    gap: 1.5rem;
  }
  
  .blog-banner-box {
    max-height: 160px;
  }
  
  .blog-item-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .blog-posts-list {
    grid-template-columns: 1fr;
  }
  
  .blog-banner-box {
    max-height: 140px;
  }
  
  .blog-content {
    padding: 1.5rem;
  }
  
  .blog-item-title {
    font-size: 1.2rem;
  }
  
  .blog-text {
    font-size: 0.95rem;
  }
}

/* Blog Post Details */
.blog-post-details {
  padding: 6rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-content {
  background: var(--white);
  border-radius: 1.25rem;
  padding: 3rem;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-theme="dark"] .blog-post-content {
  background: var(--gray-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-post-content:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .blog-post-content:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.blog-post-title {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  color: var(--black);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

[data-theme="dark"] .blog-post-title {
  color: var(--white);
}

/* Blog Post CTA */
.blog-post-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

[data-theme="dark"] .blog-post-cta {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.blog-post-cta h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--black);
  font-weight: 700;
}

[data-theme="dark"] .blog-post-cta h3 {
  color: var(--white);
}

.blog-post-cta p {
  margin-bottom: 2rem;
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Individual Blog Post Page */
.blog-post {
  min-height: 100vh;
  background: var(--bg-light);
  position: relative;
}

[data-theme="dark"] .blog-post {
  background: var(--bg-dark);
}

.blog-post-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #2a5a27 0%, #1a3a17 100%);
  overflow: hidden;
}

.blog-post-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/images/pattern.png');
  opacity: 0.05;
  animation: float 30s linear infinite;
}

.blog-post-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
  color: var(--white);
}

.blog-post-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
}

.blog-post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-subtitle {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog Post Content Layout */
.blog-post-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.blog-post-main {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .blog-post-main {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-post-main h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin: 2rem 0 1.5rem;
  background: linear-gradient(90deg, #2a5a27 0%, #4a9a47 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

[data-theme="dark"] .blog-post-main h2 {
  background: linear-gradient(90deg, #7ab97a 0%, #a8d5a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.blog-post-main p {
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

[data-theme="dark"] .blog-post-main p {
  color: var(--text-dark);
}

.blog-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post-sidebar-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .blog-post-sidebar-card {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-post-sidebar-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--black);
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
}

[data-theme="dark"] .blog-post-sidebar-card h3 {
  color: var(--white);
}

.blog-post-sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-post-sidebar-card li {
  margin-bottom: 0.75rem;
}

.blog-post-sidebar-card a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .blog-post-sidebar-card a {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.blog-post-sidebar-card a:hover {
  color: #2a5a27;
}

[data-theme="dark"] .blog-post-sidebar-card a:hover {
  color: #7ab97a;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-30px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0); }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Neon line animation */
@keyframes neon-line {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Blog Social Share */
.blog-social-share {
  margin: 3rem 0;
  text-align: center;
  padding: 2rem;
  background: var(--card-bg-light);
  border-radius: 1rem;
  box-shadow: 0 4px 6px var(--shadow-light);
}

[data-theme="dark"] .blog-social-share {
  background: var(--card-bg-dark);
  box-shadow: 0 4px 6px var(--shadow-dark);
}

.blog-social-share h4 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: var(--text-primary-light);
  font-weight: 600;
}

[data-theme="dark"] .blog-social-share h4 {
  color: var(--text-primary-dark);
}

.social-share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  background: var(--button-bg-light);
  color: var(--text-primary-light);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

[data-theme="dark"] .share-button {
  background: var(--button-bg-dark);
  color: var(--text-primary-dark);
}

.share-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px var(--shadow-light);
}

[data-theme="dark"] .share-button:hover {
  box-shadow: 0 4px 12px var(--shadow-dark);
}

.share-button i {
  font-size: 1.1rem;
}

.share-button span {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .social-share-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .share-button {
    justify-content: center;
  }
}

/* Blog Article Slider */
.blog-article-slider {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border-radius: 1.25rem;
  margin: 4rem auto;
  max-width: 1400px;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="dark"] .blog-article-slider {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(30, 30, 30, 0.7));
}

.blog-article-slider h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #2a5a27;
  font-family: 'Montserrat', sans-serif;
}

[data-theme="dark"] .blog-article-slider h2 {
  color: #7ab97a;
}

.slider-container {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  width: 100%;
  box-sizing: border-box;
}

.slider-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 1rem;
  width: max-content;
  box-sizing: border-box;
}

.slider-item {
  min-width: 300px;
  width: 300px;
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}

[data-theme="dark"] .slider-item {
  background: var(--gray-dark);
}

.slider-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.slider-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
  display: block;
}

.slider-item-content {
  padding: 1.5rem;
  box-sizing: border-box;
}

.slider-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #2a5a27;
  font-family: 'Montserrat', sans-serif;
}

[data-theme="dark"] .slider-item h3 {
  color: #7ab97a;
}

.slider-item p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.slider-item .read-more {
  color: #2a5a27;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

[data-theme="dark"] .slider-item .read-more {
  color: #7ab97a;
}

.slider-item .read-more:hover {
  color: #1a3a17;
  gap: 0.75rem;
}

[data-theme="dark"] .slider-item .read-more:hover {
  color: #a8d5a8;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 1rem;
  box-sizing: border-box;
}

.slider-button {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

[data-theme="dark"] .slider-button {
  background: rgba(30, 30, 30, 0.9);
}

.slider-button:hover {
  background: #2a5a27;
  color: white;
}

[data-theme="dark"] .slider-button:hover {
  background: #7ab97a;
}

.slider-button i {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .blog-article-slider {
    padding: 3rem 1rem;
  }
  
  .slider-item {
    min-width: 250px;
    width: 250px;
  }
  
  .slider-item img {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .blog-article-slider h2 {
    font-size: 1.5rem;
  }
  
  .slider-item {
    min-width: 200px;
    width: 200px;
  }
  
  .slider-item img {
    height: 120px;
  }
  
  .slider-item-content {
    padding: 1rem;
  }
  
  .slider-item h3 {
    font-size: 1rem;
  }
  
  .slider-item p {
    font-size: 0.8rem;
  }
} 