/* Genel stiller */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #eee;
  color: #333;
  line-height: 1.6;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Container */
.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.main-header {
  background-color: #1a374d;
  color: #fff;
  padding: 1rem 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.search-box input {
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
}

.auth-buttons {
  display: flex;
  gap: 0.5rem;
}

.auth-buttons .btn {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #406882;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.auth-buttons .btn:hover {
  background-color: #508bbd;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  margin-top: 1rem;
}

/* Navigation */
.main-nav {
  margin-top: 1rem;
  font-family: 'Georgia', serif;
}

.main-nav ul.menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 1rem;
}

.main-nav ul.menu > li {
  position: relative;
}

.main-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem;
  display: block;
}

.main-nav a:hover {
  color: #fff;
}

/* Dropdown (alt menü) */
.has-submenu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a374d;
  min-width: 150px;
  list-style: none;
  padding: 0.5rem 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 100;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li a {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: #ccc;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: #2e5a77;
  color: #fff;
}

/* Ana içerik */
.main-content {
  display: flex;
  gap: 20px;
  margin-top: 24px;
}

.left-col {
  flex: 0 0 260px; /* Genişliği mevcut oranınız neyse ona göre ayarlayın */
  min-width: 200px;
  max-width: 320px;
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
}

.main-col {
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
}

.main-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.right-col {
  margin-top: 32px;
}

.left-col h2 {
  margin-bottom: 1rem;
}

.quote-list {
  list-style: none;
}

.quote-list li {
  margin-bottom: 0.5rem;
}

.post {
  margin-bottom: 2rem;
}

.post h3 {
  margin-bottom: 0.5rem;
}

.right-col h2 {
  margin-bottom: 1rem;
}

.video {
  margin-bottom: 1rem;
}

/* Alt menüleri gizlemek */
.has-submenu .submenu {
  display: none;
  background-color: #1a374d;
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Mobilde alt menülerin açılması */
.has-submenu .submenu.active {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .main-content {
    flex-direction: column;
    gap: 0;
  }

  .left-col,
  .center-col,
  .right-col {
    width: 100%;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
  }

  .main-nav ul.menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background-color: #1a374d;
    border-top: 1px solid #2a5068;
    padding: 1rem 0;
  }

  .main-nav ul.menu.active {
    display: flex;
  }

  .main-nav ul.menu > li {
    padding: 0.5rem;
  }

  .has-submenu .submenu {
    position: static;
    display: none;
  }

  .main-nav ul.menu > li > a:hover {
    background-color: #2e5a77;
  }
}

@media (max-width: 900px) {
  .main-content {
    flex-direction: column;
    gap: 0;
  }
  .left-col, .main-col {
    max-width: 100%;
    min-width: 0;
  }
  .right-col {
    margin-top: 32px;
  }
}

/* Footer */
.main-footer {
  background-color: #1a374d;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.main-footer a {
  color: #ccc;
}

.main-footer a:hover {
  color: #fff;
}

/* Logo Stili */
.logo img {
  height: 50px; /* Boyutları isteğinize göre değiştirebilirsiniz */
  width: auto;
}

/* Fancy Post - responsive post yapısı */
.fancy-post {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1.2rem;
  margin-bottom: 2rem; /* postlar arası boşluk */
  font-family: 'Georgia', serif;
}

.fancy-post h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: bold;
  line-height: 1.2;
}

.fancy-post-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-image {
  max-width: 300px;
  max-height: 120px;
  border-radius: 6px;
  flex-shrink: 0;
}

.post-description {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.4;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.post-actions span {
  margin-right: 1rem;
  font-size: 0.9rem;
}

.post-actions span::before {
  margin-right: 0.3em;
}

.post-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  text-align: center;
}

.post-author .author-info {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: #333;
}

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

.author-info a {
  display: block;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  font-size: 0.85rem;
  line-height: 1.2;
}

.author-info span {
  display: block;
  font-size: 0.75rem;
  color: #777;
  line-height: 1.2;
  margin-top: 1px;
}

/* Like butonu – post kartları */
.like-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  background: #f0f0f0;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.like-btn:hover {
  background: #e8e8e8;
  border-color: #ddd;
  color: #333;
}

.like-btn:active {
  transform: scale(0.97);
}

.like-btn i {
  font-size: 0.95em;
  opacity: 0.9;
}

/* Beğenildiğinde (btn-success ile birlikte) */
.like-btn.btn-success {
  color: #fff !important;
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
  border-color: #27ae60 !important;
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.35);
}

.like-btn.btn-success:hover,
.like-btn.btn-success:focus {
  background: linear-gradient(135deg, #27ae60 0%, #219a52 100%) !important;
  border-color: #1e8449 !important;
  box-shadow: 0 3px 12px rgba(46, 204, 113, 0.4);
}

/* ✅ MOBİL – post-meta (actions + author) baştan tasarım */
@media (max-width: 768px) {
  .fancy-post-content {
    flex-direction: column;
  }

  .post-image {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Alt bar: actions ile author yan yana, arada boşluk yok */
  .post-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    min-width: 0;
  }

  .post-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .post-actions span {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #555;
  }

  .post-actions .like-btn {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 38px;
    border-radius: 19px;
  }

  /* Author (MOBİL): avatar üstte, isim + tarih altta, kompakt sütun */
  .post-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 72px;
    flex: 0 0 auto;
  }

  .post-author .author-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .post-author .author-info {
    margin-top: 0;
    text-align: center;
    min-width: 0;
  }

  .post-author .author-info a {
    display: block;
    font-size: 13px;
    line-height: 1.3;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .post-author .author-info span {
    display: block;
    font-size: 12px;
    color: #777;
    line-height: 1.3;
  }
}

/* Base styling for both follow and unfollow buttons */
.follow-btn, .unfollow-btn {
  padding: 5px 8px;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  color: white;
  outline: none;
  transition: background-color 0.3s, box-shadow 0.3s;
  width: 70px;   /* Makes the image width responsive to the container width */
  height: 30px;  /* Maintains the aspect ratio */
  margin-bottom: auto;
  margin-top: auto;
}

/* Specific styling for follow button */
.follow-btn {
  background-color: #c7d8c7; /* Green background for follow button */
}

/* Specific styling for unfollow button */
.unfollow-btn {
  background-color: rgb(197, 187, 187); /* Red background for unfollow button */
}

/* Hover effects */
.follow-btn:hover, .unfollow-btn:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

/* Active state effects when the button is clicked */
.follow-btn:active, .unfollow-btn:active {
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}

.link-container {
  text-decoration: none ! important; /* Remove underline from links */
  color: inherit; /* Inherit text color */
}

/* Quote Two Columns */
.quote-two-cols {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.quote-post-container {
  flex: 2;
  min-width: 0;
}

.yt-video-col {
  flex: 1;
  min-width: 220px;
  max-width: 350px;
}

@media (max-width: 900px) {
  .quote-two-cols {
    flex-direction: column;
    gap: 0;
  }
  .yt-video-col {
    margin-top: 32px;
    max-width: 100%;
    min-width: 0;
  }
}

#search-input {
  width: 320px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 24px;
  font-size: 0.95rem;
  font-family: 'Georgia', serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: #fafbfc;
  color: #222;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

#search-input:focus {
  border-color: #0077ff;
  box-shadow: 0 2px 8px rgba(0,119,255,0.08);
  background: #fff;
}

/* Placeholder rengi */
#search-input::placeholder {
  color: #888;
  opacity: 1;
}

/* ...existing code... */
.search-box {
  position: relative;
  width: 400px;      /* Önceki 320px yerine daha geniş */
  max-width: 100%;
}

#searchresult {
  position: absolute;
  top: 48px;
  left: 0;
  width: 600px;
  max-width: 100vw;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

#searchresult_post {
  position: absolute;
  width: 600px;
  max-width: 100vw;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  z-index: 100;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

#searchresult_post.active {
  display: block;
}

#searchresult_post a {
  display: block;
  padding: 5px 5px;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #f2f2f2;
  transition: background 0.15s;
  font-size: 0.9rem;
}

#searchresult_post a:last-child {
  border-bottom: none;
}

#searchresult_post a:hover, #searchresult_post a:focus {
  background: #f0f6ff;
  color: #0077ff;
}


/* Responsive: Mobilde tam genişlik */
@media (max-width: 500px) {
  .search-box,
  #searchresult {
    width: 100vw;
    left: -2px; /* container padding telafisi için ayarlayabilirsiniz */
    border-radius: 0 0 12px 12px;
  }
}

#searchresult.active {
  display: block;
}

#searchresult a {
  display: block;
  padding: 5px 5px;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid #f2f2f2;
  transition: background 0.15s;
  font-size: 0.9rem;
}

#searchresult a:last-child {
  border-bottom: none;
}

#searchresult a:hover, #searchresult a:focus {
  background: #f0f6ff;
  color: #0077ff;
}

.quote-post-container {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Postlar ve buton arasında boşluk */
}

.load-more-container {
  display: flex;
  justify-content: center; /* Butonu yatay olarak ortalar */
  margin-top: 16px; /* Üstteki postlardan biraz boşluk bırakır */
}

.load-more-btn {
  padding: 10px 20px;
  background-color: #0077ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.load-more-btn:hover {
  background-color: #0056cc;
}

.youtube-video {
    position: relative;
    width: 100%;
    max-width: 560px;
    cursor: pointer;
}
.youtube-video img {
    width: 100%;
    height: auto;
    display: block;
}
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    background: url('/assets/play-button-icon-png.png') no-repeat center;
    background-size: contain;
    transform: translate(-50%, -50%);
}

.btn-success {
  color: #fff !important;
  background-color: #5cb85c !important;
  border: 1px solid #4cae4c !important;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 1rem;
  transition: background 0.2s;
}
.btn-success:hover,
.btn-success:focus {
  background-color: #449d44 !important;
  border-color: #398439 !important;
  color: #fff !important;
}

.btn-danger {
  color: #fff !important;
  background-color: #d9534f !important;
  border: 1px solid #d43f3a !important;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 1rem;
  transition: background 0.2s;
}
.btn-danger:hover,
.btn-danger:focus {
  background-color: #c9302c !important;
  border-color: #ac2925 !important;
  color: #fff !important;
}

.hot-quotes-trigger {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  color: #fff;
  /* background: #e67e22; */
  background: #31af91;
  width: 50%;
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
  margin: 10px 0;
}

@media (max-width: 900px) {
  .hot-quotes-trigger {
    display: flex;
  }
  .left-col {
    position: fixed;
    top: 0;
    left: -320px;
    width: 260px;
    max-width: 80vw;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 16px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: left 0.3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    border-radius: 0 12px 12px 0;
    padding: 24px 16px 16px 16px;
  }
  .left-col.open {
    left: 0;
  }
  #hotQuotesOverlay {
    display: none;
    position: fixed;
    z-index: 9998;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
  }
}

.home-page {
    cursor: pointer;
    bottom:20px;
    position: fixed;
    right:30px;
    width: 30px;
    height: 30px; 
}