/* Blog Page Styles */

/* Blog Main Section */
.blog-main-section {
  padding: 80px 0 120px 0;
  background: var(--nefes-beji);
}

.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-content-area {
  /* Blog content styles */
}

.blog-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

/* Sidebar Widgets - Minimal & Clean */
.sidebar-widget {
  background: transparent;
  padding: 0 0 32px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(139, 106, 78, 0.15);
  transition: all 0.3s ease;
}

.sidebar-widget:last-child {
  border-bottom: none;
}

.sidebar-widget:hover {
  transform: translateX(2px);
}

.widget-title {
  font-family: var(--font--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--derun-toprak);
  margin: 0 0 24px 0;
  padding-bottom: 0;
  position: relative;
  display: inline-block;
}

/* Sidebar Search - Minimal */
.sidebar-widget .search-input-wrapper {
  position: relative;
  width: 100%;
}

.sidebar-widget .blog-search-input {
  width: 100%;
  padding: 14px 40px 14px 0;
  border: none;
  border-bottom: 2px solid rgba(139, 106, 78, 0.2);
  border-radius: 0;
  font-size: 15px;
  background: transparent;
  color: var(--derun-toprak);
  transition: all 0.3s ease;
}

.sidebar-widget .blog-search-input:focus {
  outline: none;
  border-bottom-color: var(--doga-yesil);
  background: rgba(124, 154, 109, 0.03);
}

.sidebar-widget .blog-search-input::placeholder {
  color: var(--derun-toprak);
  opacity: 0.5;
}

.sidebar-widget .search-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--derun-toprak);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.sidebar-widget .blog-search-input:focus + .search-icon {
  color: var(--doga-yesil);
  opacity: 1;
}

/* Sidebar Category Filters - Minimal */
.sidebar-widget .blog-category-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-widget .category-filter {
  padding: 8px 0;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  padding-left: 16px;
  color: var(--derun-toprak);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  opacity: 0.75;
}

.sidebar-widget .category-filter:hover {
  border-left-color: var(--doga-yesil);
  transform: translateX(4px);
  opacity: 1;
  color: var(--doga-yesil);
}

.sidebar-widget .category-filter.active {
  border-left-color: var(--doga-yesil);
  color: white;
  opacity: 1;
  font-weight: 600;
}

/* Sidebar Sort - Minimal */
.sidebar-widget .blog-sort-select {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 2px solid rgba(139, 106, 78, 0.2);
  border-radius: 0;
  background: transparent;
  color: var(--derun-toprak);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-widget .blog-sort-select:focus {
  outline: none;
  border-bottom-color: var(--doga-yesil);
  background: rgba(124, 154, 109, 0.03);
}

/* Popular Posts - Minimal */
.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popular-post-item {
  display: flex;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  padding-left: 20px;
}

.popular-post-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--doga-yesil);
  transition: height 0.3s ease;
}

.popular-post-item:hover::before {
  height: 100%;
}

.popular-post-item:hover {
  transform: translateX(4px);
}

.popular-post-image {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.popular-post-item:hover .popular-post-image {
  box-shadow: 0 6px 16px rgba(124, 154, 109, 0.2);
  transform: scale(1.05);
}

.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.popular-post-item:hover .popular-post-image img {
  transform: scale(1.1);
}

.popular-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popular-post-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--derun-toprak);
  margin: 0 0 8px 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.popular-post-item:hover .popular-post-title {
  color: var(--doga-yesil);
}

.popular-post-date {
  font-size: 12px;
  color: var(--derun-toprak);
  opacity: 0.6;
}

/* Blog Tags - Minimal */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(124, 154, 109, 0.08);
  border: none;
  border-radius: 16px;
  color: var(--derun-toprak);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-tag:hover {
  background: var(--doga-yesil);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(124, 154, 109, 0.2);
}

/* Search Container */
.blog-search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.search-input-wrapper {
  position: relative;
  max-width: 500px;
  width: 100%;
}

.blog-search-input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  border: 2px solid var(--derun-toprak);
  border-radius: 16px 20px 18px 22px;
  font-size: 16px;
  background: var(--nefes-beji);
  color: var(--derun-toprak);
  transition: all 0.3s ease;
  box-shadow: 2px 2px 0px rgba(139, 106, 78, 0.1);
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--doga-yesil);
  box-shadow: 4px 4px 0px rgba(124, 154, 109, 0.2);
  background: var(--nefes-beji);
}

.blog-search-input::placeholder {
  color: var(--derun-toprak);
  opacity: 0.6;
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--derun-toprak);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.blog-search-input:focus + .search-icon {
  color: var(--doga-yesil);
  opacity: 1;
}

/* Category Filters */
.blog-category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.category-filter {
  padding: 12px 24px;
  background: var(--nefes-beji);
  border: 2px solid var(--derun-toprak);
  border-radius: 16px 20px 18px 22px;
  color: var(--derun-toprak);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 2px 2px 0px rgba(139, 106, 78, 0.1);
}

.category-filter:hover {
  background: var(--nefes-beji);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0px rgba(139, 106, 78, 0.2);
}

.category-filter.active {
  background: var(--doga-yesil);
  color: white;
  border-color: var(--doga-yesil);
  box-shadow: 4px 4px 0px rgba(124, 154, 109, 0.3);
}

.category-filter.active:hover {
  background: var(--derun-toprak);
  border-color: var(--derun-toprak);
  transform: translateY(-2px);
}

/* Sort Container */
.blog-sort-container {
  display: flex;
  justify-content: center;
}

.blog-sort-select {
  padding: 12px 20px;
  border: 2px solid var(--derun-toprak);
  border-radius: 16px 20px 18px 22px;
  background: var(--nefes-beji);
  color: var(--derun-toprak);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 2px 2px 0px rgba(139, 106, 78, 0.1);
  min-width: 180px;
}

.blog-sort-select:focus {
  outline: none;
  border-color: var(--doga-yesil);
  box-shadow: 4px 4px 0px rgba(124, 154, 109, 0.2);
  background: var(--nefes-beji);
}

.blog-sort-select option {
  background: var(--nefes-beji);
  color: var(--derun-toprak);
  padding: 8px;
}

/* Results Info - Minimal */
.blog-results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 16px 0;
  background: transparent;
  border-bottom: 1px solid rgba(139, 106, 78, 0.15);
}

#results-count {
  font-size: 15px;
  font-weight: 600;
  color: var(--derun-toprak);
  opacity: 0.8;
}

#active-filters {
  font-size: 13px;
  color: var(--doga-yesil);
  font-weight: 600;
}

/* Blog Grid Section */
.blog-grid-section {
  padding: 80px 0 120px 0;
  background: var(--nefes-beji);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

/* Blog Card */
.blog-card {
  background: var(--nefes-beji);
  border: none;
  border-radius: 28px 32px 30px 34px;
  overflow: hidden;
  position: relative;
}

.blog-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 15px,
    rgba(124, 154, 109, 0.05) 15px,
    rgba(124, 154, 109, 0.05) 30px
  );
  border-radius: 28px 32px 30px 34px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

/* Blog Image */
.blog-image-wrapper {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-category {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--doga-yesil);
  color: white;
  padding: 8px 16px;
  border-radius: 12px 16px 14px 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 2;
}

/* Blog Content */
.blog-content {
  padding: 24px;
  position: relative;
  z-index: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-date,
.blog-read-time {
  font-size: 12px;
  color: var(--derun-toprak);
  font-weight: 500;
  opacity: 0.8;
}

.blog-date::after {
  content: "•";
  margin-left: 12px;
  color: var(--doga-yesil);
}

.blog-title {
  font-family: var(--font--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--derun-toprak);
  margin: 0 0 12px 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--black);
  margin: 0 0 20px 0;
  opacity: 0.85;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--doga-yesil);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-read-more svg {
  transition: transform 0.3s ease;
}

.blog-read-more:hover {
  color: var(--derun-toprak);
  gap: 12px;
}

.blog-read-more:hover svg {
  transform: translateX(4px);
}

/* Blog Article Detail */
.blog-article-section {
  padding: 80px 0 120px 0;
  background: var(--nefes-beji);
}

.blog-article {
  max-width: 800px;
  margin: 0 auto;
}

/* Article Header */
.article-header {
  text-align: center;
  margin-bottom: 40px;
}

.article-category-badge {
  display: inline-block;
  background: var(--doga-yesil);
  color: white;
  padding: 8px 20px;
  border-radius: 12px 16px 14px 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.article-title {
  font-family: var(--font--serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--derun-toprak);
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: var(--derun-toprak);
  opacity: 0.8;
}

.article-meta span::after {
  content: "•";
  margin-left: 16px;
  color: var(--doga-yesil);
}

.article-meta span:last-child::after {
  content: "";
  margin-left: 0;
}

/* Featured Image */
.article-featured-image {
  width: 100%;
  height: 400px;
  border-radius: 28px 32px 30px 34px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 4px 4px 0px rgba(139, 106, 78, 0.1),
    8px 8px 0px rgba(139, 106, 78, 0.05);
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article Content */
.article-content {
  margin-bottom: 40px;
}

.article-intro {
  font-size: 18px;
  line-height: 1.8;
  color: var(--black);
  font-weight: 500;
  margin: 0 0 32px 0;
  padding: 24px;
  background: var(--nefes-beji);
  border-left: 4px solid var(--doga-yesil);
  border-radius: 16px 20px 18px 22px;
}

.article-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--black);
  margin: 0 0 24px 0;
  opacity: 0.85;
}

.article-subheading {
  font-family: var(--font--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--derun-toprak);
  margin: 40px 0 20px 0;
  line-height: 1.3;
}

.article-section-title {
  font-family: var(--font--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--doga-yesil);
  margin: 32px 0 16px 0;
}

/* Article Benefits */
.article-benefits {
  margin: 32px 0;
  display: grid;
  gap: 16px;
}

.benefit-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--nefes-beji);
  border-radius: 16px 20px 18px 22px;
  border: 1px solid var(--derun-toprak);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: var(--nefes-beji);
  transform: translateX(8px);
  box-shadow: 4px 4px 0px rgba(139, 106, 78, 0.1);
}

.benefit-icon {
  color: var(--doga-yesil);
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.benefit-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--black);
}

.benefit-text strong {
  color: var(--derun-toprak);
  font-weight: 600;
}

/* Article Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--nefes-beji);
  border-radius: 16px 20px 18px 22px;
}

.tag-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--derun-toprak);
}

.article-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--nefes-beji);
  border: 1px solid var(--derun-toprak);
  border-radius: 12px 16px 14px 18px;
  color: var(--derun-toprak);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-tag:hover {
  background: var(--doga-yesil);
  color: white;
  border-color: var(--doga-yesil);
}

/* Share Buttons */
.article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--nefes-beji);
  border-radius: 16px 20px 18px 22px;
  margin-bottom: 60px;
}

.share-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--derun-toprak);
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--doga-yesil);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 2px 2px 0px rgba(124, 154, 109, 0.3);
}

.share-button:hover {
  background: var(--derun-toprak);
  transform: translateY(-4px);
  box-shadow: 4px 4px 0px rgba(139, 106, 78, 0.4);
}

/* Related Posts */
.related-posts {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 2px solid var(--derun-toprak);
}

.related-posts-title {
  font-family: var(--font--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--derun-toprak);
  margin: 0 0 40px 0;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-post-card {
  background: var(--nefes-beji);
  border: 2px solid var(--derun-toprak);
  border-radius: 20px 24px 22px 26px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 3px 3px 0px rgba(139, 106, 78, 0.1);
}

.related-post-card:hover {
  transform: translateY(-8px);
  border-color: var(--doga-yesil);
  box-shadow: 5px 5px 0px rgba(124, 154, 109, 0.2);
}

.related-post-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.related-post-card:hover .related-post-image img {
  transform: scale(1.1);
}

.related-post-content {
  padding: 20px;
}

.related-post-category {
  display: inline-block;
  background: var(--doga-yesil);
  color: white;
  padding: 4px 12px;
  border-radius: 8px 12px 10px 14px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.related-post-title {
  font-family: var(--font--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--derun-toprak);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.related-post-link {
  color: var(--doga-yesil);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-card:hover .related-post-link {
  color: var(--derun-toprak);
}

/* Responsive Design */
@media screen and (max-width: 991px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .blog-sidebar {
    position: static;
    order: -1;
  }

  .sidebar-widget {
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .blog-grid-section {
    padding: 60px 0 100px 0;
  }

  .article-title {
    font-size: 32px;
  }

  .article-subheading {
    font-size: 24px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media screen and (max-width: 767px) {
  .blog-main-section {
    padding: 50px 0 80px 0;
  }

  .blog-layout {
    gap: 30px;
  }

  .sidebar-widget {
    padding: 0 0 24px 0;
    margin-bottom: 24px;
  }

  .widget-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .sidebar-widget .blog-category-filters {
    gap: 10px;
  }

  .sidebar-widget .category-filter {
    padding: 6px 0;
    padding-left: 14px;
    font-size: 14px;
  }

  .sidebar-widget .blog-search-input {
    padding: 12px 35px 12px 0;
    font-size: 14px;
  }

  .popular-post-item {
    padding: 0;
    padding-left: 16px;
    gap: 12px;
  }

  .popular-post-image {
    width: 60px;
    height: 60px;
  }

  .popular-post-title {
    font-size: 13px;
  }

  .popular-post-date {
    font-size: 11px;
  }

  .blog-tag {
    padding: 5px 12px;
    font-size: 11px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  .blog-grid-section,
  .blog-article-section {
    padding: 50px 0 80px 0;
  }

  .blog-image-wrapper {
    height: 220px;
  }

  .blog-content {
    padding: 20px;
  }

  .blog-title {
    font-size: 18px;
  }

  .blog-excerpt {
    font-size: 13px;
  }

  .article-title {
    font-size: 28px;
  }

  .article-featured-image {
    height: 300px;
  }

  .article-intro {
    font-size: 16px;
    padding: 20px;
  }

  .article-content p {
    font-size: 15px;
  }

  .article-subheading {
    font-size: 22px;
  }

  .article-section-title {
    font-size: 18px;
  }

  .article-meta {
    flex-direction: column;
    gap: 8px;
  }

  .article-meta span::after {
    content: "";
    margin-left: 0;
  }

  .article-share {
    flex-direction: column;
    align-items: flex-start;
  }

  .related-posts {
    margin-top: 60px;
  }

  .related-posts-title {
    font-size: 24px;
  }
}
