/**
 * 水瀬いのり YouTubeコメントランキング
 * メインスタイルシート
 */

/* 全体のスタイル */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', 'Meiryo UI', sans-serif;
    color: #333;
}

/* ヘッダースタイル */
header {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* カード影効果 */
.card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* テーブルスタイル */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* ユーザーアイコン */
.user-avatar {
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* テキスト切り捨て */
.truncate-text {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* コメントテキスト */
.comment-text {
    line-height: 1.6;
    white-space: pre-line;
}

/* ページネーション */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: #007bff;
    border-radius: 0.2rem;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* モーダルスタイル */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
}

/* コメント月別グループ */
.comment-month-header {
    font-size: 1rem;
    color: #495057;
    border-left: 4px solid #007bff;
}

/* コメントカード */
.comment-card {
    border-left: 3px solid #e9ecef;
    transition: border-left 0.2s;
}

.comment-card:hover {
    border-left-color: #007bff;
}

/* ボタンスタイル */
.btn-outline-info {
    color: #17a2b8;
    border-color: #17a2b8;
}

.btn-outline-info:hover {
    background-color: #17a2b8;
    color: #fff;
}

/* ローディングスピナー */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* フッター */
footer {
    border-top: 1px solid #e9ecef;
}

/* ホバーアニメーション */
.animate-hover {
    transition: transform 0.3s;
}

.animate-hover:hover {
    transform: translateY(-2px);
}