/* DM返信ボタンのフラッシュアニメーション */
@keyframes dm-reply-flash {
  0% {
    background-color: transparent;
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
  50% {
    background-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
  }
  100% {
    background-color: transparent;
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
}

.dm-reply-flash {
  animation: dm-reply-flash 1s ease-out;
  border-radius: 0.375rem;
  padding: 0.25rem;
  margin: -0.25rem;
}
/* Kaminari pagination styles for Tailwind CSS */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pagination li {
  display: inline-block;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #9ca3af; /* gray-400 */
  text-decoration: none;
  background-color: #1f2937; /* gray-800 */
  border: 1px solid #374151; /* gray-700 */
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .pagination a,
  .pagination span {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
}

.pagination a:hover {
  color: #ffffff;
  background-color: #374151; /* gray-700 */
  border-color: #4b5563; /* gray-600 */
}

.pagination .active span,
.pagination .active a {
  color: #ffffff;
  background-color: #3b82f6; /* blue-500 */
  border-color: #3b82f6;
}

.pagination .disabled span,
.pagination .disabled a {
  color: #4b5563; /* gray-600 */
  background-color: #111827; /* gray-900 */
  border-color: #374151; /* gray-700 */
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination .first a,
.pagination .prev a,
.pagination .next a,
.pagination .last a {
  font-weight: 600;
}
/* SNS投稿のスタイル */

/* スマートフォンサイズでのユーザー名表示の最適化 */
@media (max-width: 640px) {
  /* メイン投稿のユーザー名 */
  .post-username {
    font-size: 0.7rem; /* 約11.2px */
  }
  
  /* 返信のユーザー名 */
  .reply-username {
    font-size: 0.7rem; /* 約11.2px */
  }
  
  /* @ユーザーネーム */
  .post-user-handle {
    font-size: 0.7rem; /* 約11.2px */
  }
  
  /* 時間表示 */
  .post-time {
    font-size: 0.7rem; /* 約11.2px */
  }
  
  /* リプライの@usernameと時刻を本文右下に配置 */
  .reply-content-wrapper {
    position: relative;
  }
  
  .reply-meta-mobile {
    display: block;
    text-align: right;
    font-size: 0.65rem;
    color: #9ca3af;
    margin-top: 0.25rem;
  }
  
  /* スマホではヘッダーのユーザーハンドルと年齢を非表示 */
  .reply-header-mobile-hidden {
    display: none;
  }
}

/* PC/タブレットサイズでは本文右下のメタ情報を非表示、ヘッダー情報は表示 */
@media (min-width: 641px) {
  .reply-meta-mobile {
    display: none;
  }
  
  .reply-header-mobile-hidden {
    display: inline;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
