/* Yajutter specific styles */

/* Prevent text overflow in cards */
.card {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Break long URLs and text */
.posts .card-body {
  word-break: break-word;
  hyphens: auto;
}

/* Ensure flex containers don't overflow */
.posts .flex-grow-1 {
  min-width: 0;
}

/* Button forms in posts should be inline */
.posts form {
  display: inline-block;
}

/* Like and repost buttons styling */
.posts .btn-link {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

.posts .btn-link:hover {
  opacity: 0.8;
}

/* Fix dropdown menu button_to styling */
.dropdown-menu form {
  margin: 0;
}

.dropdown-menu .dropdown-item {
  background: none;
  width: 100%;
  text-align: left;
}

/* Mobile bottom navigation styling */
@media (max-width: 767px) {
  /* Add padding to content to account for fixed bottom nav */
  body.yajutter-layout {
    padding-bottom: 60px;
  }
}

/* Bottom navigation styling */
.fixed-bottom .nav-link {
  color: #6c757d;
  padding: 0.5rem;
}

.fixed-bottom .nav-link:hover {
  color: #0d6efd;
}

.fixed-bottom .nav-link.text-primary {
  color: #0d6efd !important;
}

.fixed-bottom .nav-link i {
  display: block;
  margin-bottom: 0.25rem;
}

.fixed-bottom .nav-link .small {
  font-size: 0.75rem;
  line-height: 1;
}

/* Quoted post card styling */
.quoted-post-card {
  transition: background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  word-break: break-word;
  overflow: hidden;
}

.quoted-post-card .flex-grow-1 {
  min-width: 0;
  overflow: hidden;
}

.quoted-post-card:hover {
  background-color: #e9ecef !important;
  border-color: #adb5bd !important;
}

/* Prevent underline on links within quoted posts */
a:hover .quoted-post-card {
  text-decoration: none;
}

/* Link preview styling */
.link-preview-card {
  transition: background-color 0.2s ease;
}

.link-preview-card:hover {
  background-color: #f8f9fa;
}

.link-preview-image {
  background-color: #f8f9fa;
}

/* Responsive link preview image sizes */
@media (min-width: 768px) {
  .link-preview-image {
    width: 120px !important;
    height: 120px !important;
  }
}
