/* =================================
------------------------------------
  TIYEMDER - Post Detail Page Styles
------------------------------------
====================================*/

/* ===== POST DETAIL PAGE ===== */
.post-detail-page {
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 50%, #f1f8e9 100%);
  position: relative;
  overflow: hidden;
}

/* ===== HERO SECTION - Updated to horizontal layout ===== */
.post-hero-section {
  position: relative;
  background: linear-gradient(135deg, #0E2062, #4a69bd);
  padding: 60px 0;
  color: #fff;
  overflow: hidden;
}

.post-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.post-floating-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  width: 150px;
  height: 150px;
  transition: transform 2s ease;
}

.post-floating-element:nth-child(1) {
  top: -30px;
  left: 10%;
  width: 100px;
  height: 100px;
}

.post-floating-element:nth-child(2) {
  bottom: -50px;
  right: 15%;
  width: 120px;
  height: 120px;
}

.post-floating-element:nth-child(3) {
  top: 20%;
  left: 35%;
  width: 60px;
  height: 60px;
}

.post-floating-element:nth-child(4) {
  bottom: 30%;
  right: 30%;
  width: 80px;
  height: 80px;
}

.post-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.post-hero-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-hero-left h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 15px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.post-badge-wrapper {
  margin-bottom: 15px;
}

.post-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.post-title-badge i {
  color: #fff;
  font-size: 1rem;
}

.post-breadcrumb {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-breadcrumb a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.post-breadcrumb a:hover {
  opacity: 0.8;
}

.post-breadcrumb span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.post-breadcrumb i {
  font-size: 0.75rem;
}

.post-hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Ccircle cx='10' cy='10' r='2'/%3E%3C/g%3E%3C/svg%3E") repeat;
}

/* ===== POST DETAIL SECTION ===== */
.post-detail-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

/* Post Article */
.post-detail-article {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(14, 32, 98, 0.1);
  margin-bottom: 40px;
}

.post-detail-image {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
}

.post-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.post-detail-article:hover .post-detail-image img {
  transform: scale(1.05);
}

.post-detail-header {
  padding: 40px 40px 20px;
  border-bottom: 1px solid rgba(14, 32, 98, 0.1);
  position: relative;
}

.post-category-badge {
  position: absolute;
  top: -20px;
  right: 40px;
  background: linear-gradient(135deg, #0E2062, #4a69bd);
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 15px rgba(14, 32, 98, 0.3);
}

.post-category-badge i {
  font-size: 12px;
}

.post-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: #0E2062;
  margin-bottom: 20px;
  line-height: 1.3;
}

.post-detail-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.post-detail-meta-left, .post-detail-meta-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #666;
  font-size: 14px;
}

.post-meta-item i {
  color: #0E2062;
  font-size: 14px;
}

.post-detail-content {
  padding: 40px;
}

.post-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
}

.post-detail-content p {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.8;
  color: #444;
}

.post-detail-content h2, 
.post-detail-content h3, 
.post-detail-content h4 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: #0E2062;
  font-weight: 700;
}

.post-detail-content h2 {
  font-size: 22px;
}

.post-detail-content h3 {
  font-size: 1.7rem;
}

.post-detail-content h4 {
  font-size: 1.4rem;
}

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

.post-detail-content li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.post-detail-content blockquote {
  background: #f8f9fa;
  border-left: 4px solid #0E2062;
  padding: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #555;
  border-radius: 0 10px 10px 0;
}

/* Share Section */
.post-share-section {
  padding: 30px 40px 40px;
  border-top: 1px solid rgba(14, 32, 98, 0.1);
}

.share-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0E2062;
  margin-bottom: 20px;
}

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

.share-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

.share-btn.telegram {
  background: #0088cc;
}

/* ===== SIDEBAR ===== */
.post-sidebar {
  position: sticky;
  top: 100px;
}

.post-widget {
  background: #fff;
  border-radius: 20px;
  padding: 35px 30px;
  margin-bottom: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(14, 32, 98, 0.1);
}

.post-widget h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0E2062;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-widget h4 i {
  font-size: 1.2rem;
  color: #4a69bd;
}

/* Sidebar Search */
.sidebar-search-form {
  position: relative;
}

.input-group {
  display: flex;
  gap: 10px;
}

.sidebar-search-input {
  flex: 1;
  padding: 15px 15px 15px 45px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.sidebar-search-input:focus {
  outline: none;
  border-color: #0E2062;
  box-shadow: 0 0 0 4px rgba(14, 32, 98, 0.1);
}

.sidebar-search-btn {
  background: linear-gradient(135deg, #0E2062, #4a69bd);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 15px rgba(14, 32, 98, 0.25);
}

.sidebar-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(14, 32, 98, 0.35);
}

.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #666;
  pointer-events: none;
}

/* Recent Posts */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recent-post-item {
  display: flex;
  gap: 15px;
}

.recent-post-thumb {
  flex: 0 0 100px;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
}

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

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

.recent-post-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.recent-post-title a {
  color: #0E2062;
  text-decoration: none;
  transition: all 0.3s ease;
}

.recent-post-title a:hover {
  color: #4a69bd;
}

.recent-post-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #777;
  font-size: 0.85rem;
}

.recent-post-date i {
  font-size: 0.8rem;
  color: #4a69bd;
}

/* Categories */
.category-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-item {
  background: #f0f4f8;
  padding: 8px 16px;
  border-radius: 50px;
  color: #0E2062;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-item:hover {
  background: linear-gradient(135deg, #0E2062, #4a69bd);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(14, 32, 98, 0.2);
  text-decoration: none;
}

/* Newsletter */
.newsletter-widget {
  background: linear-gradient(135deg, #0E2062, #4a69bd);
  color: #fff;
}

.newsletter-widget h4 {
  color: #fff;
}

.newsletter-widget h4 i {
  color: #FFD700;
}

.newsletter-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.newsletter-input {
  padding: 15px 15px 15px 45px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.newsletter-input:focus {
  outline: none;
  border-color: #0E2062;
  box-shadow: 0 0 0 4px rgba(14, 32, 98, 0.1);
}

.newsletter-button {
  background: #FFD700;
  color: #0E2062;
  border: none;
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.newsletter-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Beğeni butonu stilleri */
.like-button-container {
    display: flex;
    align-items: center;
}

.btn-like {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    outline: none;
}

.btn-like:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

.btn-like i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-like.liked i {
    animation: heartPulse 0.5s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

/* Animasyonlar */
.post-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.post-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.post-slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-out;
}

.post-slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991px) {
  .post-hero-title {
    font-size: 3.2rem;
  }
  
  .post-detail-title {
    font-size: 24px;
  }
  
  .post-detail-header {
    padding: 30px;
  }
  
  .post-detail-content {
    padding: 30px;
  }
  
  .post-sidebar {
    position: static;
    margin-top: 40px;
  }
  
  .post-widget {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .post-hero-section {
    padding: 80px 0 60px;
  }
  
  .post-hero-title {
    font-size: 2.8rem;
  }
  
  .post-detail-section {
    padding: 80px 0;
  }
  
  .post-detail-title {
    font-size: 1.8rem;
  }
  
  .post-detail-header {
    padding: 25px;
  }
  
  .post-detail-content {
    padding: 25px;
  }
  
  .post-detail-meta {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .post-detail-image {
    height: 300px;
  }
  
  .post-widget {
    padding: 25px 20px;
  }
  
  .recent-post-item {
    flex-direction: column;
    gap: 10px;
  }
  
  .recent-post-thumb {
    width: 100%;
    height: 150px;
  }
}

@media (max-width: 576px) {
  .post-hero-title {
    font-size: 2.2rem;
  }
  
  .post-breadcrumb {
    font-size: 0.85rem;
    padding: 8px 15px;
  }
  
  .post-detail-title {
    font-size: 1.6rem;
  }
  
  .post-detail-header {
    padding: 20px 15px;
  }
  
  .post-detail-content {
    padding: 20px 15px;
  }
  
  .post-widget {
    padding: 20px 15px;
  }
  
  .post-detail-image {
    height: 250px;
  }
  
  .post-share-section {
    padding: 20px 15px;
  }
  
  .share-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .post-widget h4 {
    font-size: 1.3rem;
  }
}