/**
 * Modern Blog Detail Page
 * Carpe Diem Turizm - Enhanced Design
 */

.blog-detail-wrapper {
  padding: 60px 0 80px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  min-height: 100vh;
}

.blog-detail-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

/* Main Content - Modern Card Style */
.blog-main-content {
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
}

/* Decorative Element */
.blog-main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1ca8cb, #0891b2, #1ca8cb);
  background-size: 200% 100%;
  animation: gradient-flow 3s ease infinite;
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Blog Header */
.blog-header {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 2px solid #e0f2fe;
}

.blog-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 20px 0;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.blog-meta-info {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.95rem;
  position: relative;
}

.meta-item:not(:last-child)::after {
  content: '•';
  position: absolute;
  right: -13px;
  color: #cbd5e1;
}

.meta-item i {
  color: #1ca8cb;
  font-size: 1rem;
}

/* Featured Image */
.blog-featured-image {
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.blog-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.blog-featured-image:hover img {
  transform: scale(1.02);
}

/* Blog Content - Enhanced Typography */
.blog-content {
  color: #475569;
  font-size: 1.1rem;
  line-height: 1.9;
}

.blog-content p {
  margin-bottom: 25px;
}

.blog-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f172a;
  margin: 40px 0 20px 0;
}

.blog-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin: 30px 0 15px 0;
}

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

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

.blog-content blockquote {
  margin: 30px 0;
  padding: 20px 25px;
  background: #f8fafc;
  border-left: 4px solid #1ca8cb;
  font-style: italic;
  color: #475569;
}

.blog-content a {
  color: #1ca8cb;
  text-decoration: none;
  border-bottom: 1px dotted #1ca8cb;
  transition: all 0.3s;
}

.blog-content a:hover {
  color: #0891b2;
  border-bottom-style: solid;
}

/* Tags - Modern Style */
.blog-tags {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e0f2fe;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.blog-tags i {
  color: #1ca8cb;
  font-size: 1.2rem;
}

.blog-tags a {
  background: #f0f9ff;
  color: #0891b2;
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.blog-tags a:hover {
  background: linear-gradient(135deg, #1ca8cb, #0891b2);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(28, 168, 203, 0.3);
}

/* Author Box - Modern Style */
.author-box {
  margin-top: 50px;
  padding: 35px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-radius: 16px;
  border: 1px solid #e0f2fe;
  display: flex;
  gap: 25px;
  align-items: center;
  transition: all 0.3s;
}

.author-box:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.author-avatar {
  min-width: 100px;
  width: 100px;
  height: 100px;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.author-info {
  flex: 1;
}

.author-info h4 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  color: #0f172a;
  font-weight: 700;
}

.author-info p {
  margin: 0 0 15px 0;
  color: #64748b;
  line-height: 1.6;
}

.author-social {
  display: flex;
  gap: 10px;
}

.author-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  color: #64748b;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.author-social a:hover {
  background: #1ca8cb;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(28, 168, 203, 0.3);
}

/* Sidebar - Modern Widgets */
.blog-sidebar {
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: white;
  border: none;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.sidebar-widget:hover {
  box-shadow: 0 8px 35px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
  margin: 0 0 20px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0f2fe;
  position: relative;
}

.sidebar-widget h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, #1ca8cb, #0891b2);
}

/* Recent Posts List - Enhanced */
.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-posts-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s;
}

.recent-posts-list li:hover {
  transform: translateX(5px);
}

.recent-posts-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.post-thumb {
  width: 80px;
  min-width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

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

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.recent-posts-list li:hover .post-thumb img {
  transform: scale(1.1);
}

.post-info {
  flex: 1;
}

.post-info h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  line-height: 1.4;
}

.post-info h4 a {
  color: #0f172a;
  text-decoration: none;
  transition: all 0.3s;
}

.post-info h4 a:hover {
  background: linear-gradient(90deg, #1ca8cb, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-date {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-date::before {
  content: '📅';
  font-size: 0.9rem;
}

/* Categories Widget - Enhanced */
.categories-widget {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-widget li {
  margin-bottom: 5px;
}

.categories-widget li a {
  display: block;
  padding: 12px 16px;
  color: #475569;
  text-decoration: none;
  border-radius: 8px;
  background: #f8fafc;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.categories-widget li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #1ca8cb;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.categories-widget li a:hover {
  background: #e0f2fe;
  color: #0891b2;
  padding-left: 24px;
}

.categories-widget li a:hover::before {
  transform: scaleY(1);
}

/* Share Widget (New) */
.share-widget {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  text-align: center;
}

.share-widget h3 {
  border-bottom: none !important;
  margin-bottom: 15px !important;
}

.share-widget h3::after {
  display: none;
}

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

.share-buttons a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  color: #64748b;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.share-buttons a.facebook:hover {
  background: #1877f2;
  color: white;
}

.share-buttons a.twitter:hover {
  background: #1da1f2;
  color: white;
}

.share-buttons a.whatsapp:hover {
  background: #25d366;
  color: white;
}

.share-buttons a.linkedin:hover {
  background: #0077b5;
  color: white;
}

/* Category Count */
.cat-count {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: normal;
  margin-left: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .blog-detail-container {
    grid-template-columns: 1fr 300px;
  }
}

@media (max-width: 992px) {
  .blog-detail-container {
    grid-template-columns: 1fr;
  }
  
  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .blog-main-content {
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .blog-sidebar {
    grid-template-columns: 1fr;
  }
  
  .blog-main-content {
    padding: 30px 20px;
  }
  
  .blog-title {
    font-size: 2rem;
  }
  
  .blog-meta-info {
    gap: 15px;
  }
  
  .meta-item {
    font-size: 0.85rem;
  }
}

/* Print Styles */
@media print {
  .blog-sidebar,
  .blog-tags {
    display: none;
  }
  
  .blog-detail-container {
    grid-template-columns: 1fr;
  }
  
  .blog-main-content {
    box-shadow: none;
    padding: 20px;
  }
}

/* Mobile Responsive - 576px */
@media (max-width: 576px) {
  .blog-detail-wrapper {
    padding: 40px 0 60px 0;
  }
  
  .blog-detail-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .blog-main-content {
    padding: 30px 20px;
  }
  
  .blog-title {
    font-size: 1.6rem;
  }
  
  .blog-meta-info {
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .meta-item {
    font-size: 0.85rem;
  }
  
  .blog-featured-image {
    margin-bottom: 30px;
  }
  
  .blog-content {
    font-size: 1rem;
  }
  
  .blog-content h2 {
    font-size: 1.5rem;
  }
  
  .blog-content h3 {
    font-size: 1.2rem;
  }
  
  .blog-tags a {
    padding: 7px 14px;
    font-size: 0.85rem;
    min-height: 36px;
    touch-action: manipulation;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
  
  .sidebar-widget h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 375px) {
  .blog-detail-wrapper {
    padding: 35px 0 50px 0;
  }
  
  .blog-main-content {
    padding: 25px 16px;
  }
  
  .blog-title {
    font-size: 1.4rem;
  }
  
  .meta-item {
    font-size: 0.8rem;
  }
  
  .blog-content {
    font-size: 0.95rem;
  }
  
  .blog-content h2 {
    font-size: 1.3rem;
  }
  
  .blog-content h3 {
    font-size: 1.1rem;
  }
  
  .blog-tags a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .sidebar-widget {
    padding: 18px;
  }
}

/* ============================================
   YORUMLAR BÖLÜMÜ
   ============================================ */
.blog-comments-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #e0f2fe;
}

.comments-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 30px;
}

.comments-title i {
  color: #1ca8cb;
}

.comments-title .comment-count {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
}

/* Yorum Formu */
.comment-form-wrapper {
  background: #f8fafc;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 35px;
}

.comment-form-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.commenter-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.commenter-info {
  display: flex;
  flex-direction: column;
}

.commenter-name {
  font-weight: 600;
  color: #1e293b;
}

.commenter-action {
  font-size: 0.85rem;
  color: #64748b;
}

.comment-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s;
}

.comment-form textarea:focus {
  outline: none;
  border-color: #1ca8cb;
  box-shadow: 0 0 0 3px rgba(28, 168, 203, 0.1);
}

.submit-comment-btn {
  margin-top: 15px;
  background: linear-gradient(135deg, #1ca8cb, #0891b2);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.submit-comment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(28, 168, 203, 0.4);
}

/* Giriş Yap Kutusu */
.login-to-comment {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 2px solid #bae6fd;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-bottom: 35px;
}

.login-to-comment i {
  font-size: 3rem;
  color: #1ca8cb;
  margin-bottom: 15px;
}

.login-to-comment p {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 20px;
}

.login-to-comment .login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1ca8cb, #0891b2);
  color: white;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s;
}

.login-to-comment .login-btn i {
  color: white;
}

.login-to-comment .login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(28, 168, 203, 0.4);
}

/* Yorumlar Listesi */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.comment-item {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.3s;
}

.comment-item:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.comment-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-body {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.comment-author {
  font-weight: 600;
  color: #1e293b;
}

.comment-date {
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-text {
  color: #475569;
  line-height: 1.7;
}

.comment-text p {
  margin: 0;
}

/* Yanıtla Butonu */
.reply-btn {
  margin-top: 12px;
  background: none;
  border: none;
  color: #1ca8cb;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.reply-btn:hover {
  color: #0891b2;
}

/* Yanıt Formu */
.reply-form-wrapper {
  margin-top: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
}

.reply-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  transition: all 0.3s;
}

.reply-form textarea:focus {
  outline: none;
  border-color: #1ca8cb;
}

.reply-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-end;
}

.cancel-reply-btn {
  background: #e2e8f0;
  color: #64748b;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.cancel-reply-btn:hover {
  background: #cbd5e1;
}

.submit-reply-btn {
  background: linear-gradient(135deg, #1ca8cb, #0891b2);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.submit-reply-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(28, 168, 203, 0.3);
}

/* Alt Yorumlar (Yanıtlar) */
.comment-replies {
  margin-top: 20px;
  padding-left: 20px;
  border-left: 3px solid #e0f2fe;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.reply-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 12px;
}

.reply-avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.reply-body {
  flex: 1;
}

.reply-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.reply-author {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
}

.reply-date {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.reply-text {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
}

.reply-text p {
  margin: 0;
}

/* Yorum Yok */
.no-comments {
  text-align: center;
  padding: 50px 30px;
  background: #f8fafc;
  border-radius: 16px;
}

.no-comments i {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 15px;
}

.no-comments p {
  color: #64748b;
  font-size: 1.1rem;
  margin: 0;
}

/* Yorumlar Mobil */
@media (max-width: 768px) {
  .blog-comments-section {
    margin-top: 30px;
    padding-top: 25px;
  }
  
  .comments-title {
    font-size: 1.2rem;
  }
  
  .comment-form-wrapper {
    padding: 20px;
  }
  
  .login-to-comment {
    padding: 30px 20px;
  }
  
  .comment-item {
    flex-direction: column;
    gap: 15px;
    padding: 20px;
  }
  
  .comment-avatar img {
    width: 50px;
    height: 50px;
  }
  
  .comment-meta {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .comment-replies {
    padding-left: 15px;
  }
  
  .reply-item {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
}