/* TUNGA HUKUK - Blog Detail Page Styles
 * Created: April 25, 2025
 */

/* Blog Detail Section */
.blog-detail-section {
  position: relative;
}

.blog-detail-image {
  margin-bottom: 30px;
}

.blog-detail-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.blog-detail-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #777;
}

.blog-detail-meta span {
  display: flex;
  align-items: center;
}

.blog-detail-meta i {
  margin-right: 8px;
  color: var(--turkuaz);
}

.blog-detail-text h2 {
  color: var(--turkuaz);
  margin-bottom: 20px;
  font-size: 2rem;
}

.blog-content {
  line-height: 1.8;
}

.blog-content h3 {
  color: var(--gold);
  margin: 25px 0 15px;
}

.blog-content ul, 
.blog-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.blog-content ul li, 
.blog-content ol li {
  margin-bottom: 10px;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 20px 0;
}

.blog-share {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.blog-share h4 {
  margin-bottom: 15px;
}

.share-buttons {
  display: flex;
  gap: 10px;
}

.share-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  transition: var(--transition);
}

.share-facebook {
  background-color: #3b5998;
}

.share-twitter {
  background-color: #1da1f2;
}

.share-whatsapp {
  background-color: #25d366;
}

.share-linkedin {
  background-color: #0077b5;
}

.share-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar */

.fixed-sidebar {
  position: fixed;
  top: 10px; /* Header'a göre ayarla */
  right: 110px;
  width: 320px;
  max-height: calc(100vh - 100px); /* ekran boyundan biraz düşük */
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;    /* IE/Edge */
  padding-right: 10px; /* scrollbar'a yer bırak */ 
}
.fixed-sidebar::-webkit-scrollbar {
  display: none;               /* Chrome/Safari */
}

.sidebar-widget {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 10px;
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--turkuaz);
  position: relative;
  padding-bottom: 10px;
}

.sidebar-widget h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--gold);
}
/* Sticky sağ sidebar */
.sidebar.fixed-sidebar {
  position: fixed;
  top: 100px;
  right: 50px;
  width: 320px;
  z-index: 999;
}
.blog-detail-layout {
  padding-right: 370px; /* sidebar genişliği + biraz boşluk */
}

.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.recent-post {
  display: flex;
  gap: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.recent-post:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.recent-post-img {
  flex: 0 0 80px;
}

.recent-post-img img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.recent-post-content {
  flex: 1;
}

.recent-post-content h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.recent-post-content h4 a {
  color: var(--dark);
  transition: var(--transition);
}

.recent-post-content h4 a:hover {
  color: var(--turkuaz);
}

.recent-post-content span {
  font-size: 0.85rem;
  color: #777;
  display: flex;
  align-items: center;
}

.recent-post-content span i {
  margin-right: 5px;
  color: var(--turkuaz);
}

.contact-widget {
  background-color: #f9f9f9;
}

.contact-widget .contact-info {
  margin: 20px 0;
}

.contact-widget .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.contact-widget .contact-item i {
  font-size: 1.2rem;
  color: var(--turkuaz);
  margin-right: 15px;
  margin-top: 5px;
}

.contact-widget .contact-item h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.contact-widget .contact-item p {
  margin-bottom: 0;
}

.whatsapp-widget {
  background-color: #25D366;
  color: white;
}

.whatsapp-widget h3 {
  color: white;
}

.whatsapp-widget h3::after {
  background-color: white;
}

.whatsapp-widget p {
  color: rgba(255, 255, 255, 0.9);
}

.btn-whatsapp {
  background-color: white;
  color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #f4f4f4;
  color: #128C7E;
}

/* Related Posts Section */
.related-posts-section {
  position: relative;
}

.related-posts {
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .col-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 50px;
  }
  


@media (max-width: 768px) {
  .blog-detail-text h2 {
    font-size: 1.8rem;
  }
  
  .blog-detail-meta {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .blog-detail-text h2 {
    font-size: 1.5rem;
  }
  
  .share-buttons {
    flex-wrap: wrap;
  }
}
