/* フィード・マッチタブ最適化スタイル */

/* 管理者用一括削除スタイル */
.admin-toolbar{background:#fff3cd;border:1px solid #ffc107;padding:12px;margin-bottom:16px;border-radius:8px}
.admin-toolbar .flex{display:flex;align-items:center;justify-content:space-between}
.admin-toolbar label{display:flex;align-items:center;cursor:pointer;font-size:14px}
.admin-toolbar input[type="checkbox"]{margin-right:8px}
#selected-count{color:#666;font-size:14px;margin-left:16px}
#delete-selected-btn{padding:8px 16px;background:#dc3545;color:white;border:none;border-radius:4px;font-size:14px;cursor:pointer;transition:background 0.2s}
#delete-selected-btn:hover:not(:disabled){background:#c82333}
#delete-selected-btn:disabled{background:#ccc;cursor:not-allowed}
.feed-post.admin-mode .post-header{align-items:flex-start}
.post-select-checkbox{margin-right:8px;margin-top:2px;cursor:pointer}
.no-matches-message{text-align:center;padding:40px 20px;color:#666;font-size:14px;background:white;margin:0}
.matches-list{background:white}
.match-item{display:flex;align-items:center;padding:16px;border-bottom:1px solid #e0e0e0;transition:background 0.2s}
.match-item:hover{background:#fafafa}
.match-avatar{width:48px;height:48px;border-radius:50%;overflow:hidden;flex-shrink:0;margin-right:12px}
.match-info{flex:1;min-width:0}
.match-name{font-weight:600;color:#1a1a1a;font-size:16px;margin-bottom:4px;display:flex;align-items:center;gap:8px}
.new-label{background:#ff6b35;color:white;font-size:10px;font-weight:700;padding:2px 6px;border-radius:12px;letter-spacing:0.5px}
.match-location{color:#666;font-size:13px;margin-bottom:2px}
.match-rate{color:#333;font-size:14px;font-weight:500}
.match-actions{flex-shrink:0}

.has-notification{position:relative}
.has-notification::after{content:'';position:absolute;top:8px;right:8px;width:8px;height:8px;background:#ff6b35;border-radius:50%}
.post-composer{background:white;padding:4px 16px;margin-bottom:0px}
.composer-header{display:flex;align-items:center;gap:12px;margin-bottom:8px;justify-content:space-between}
.user-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;flex-shrink:0}
.avatar-placeholder{width:100%;height:100%;background:#555}
.user-info{flex:1}
.user-info .display-name{font-weight:bold;color:#1a1a1a;font-size:14px;text-align:left}
.composer-input-area{display:flex;flex-direction:column;gap:8px}
.post-input{min-height:50px;padding:4px 11px;border:1px solid #d0d0d0;border-radius:8px;line-height:1.4}
.post-input:focus{outline:none;border-color:#333;border-width:1px;background:white}
.image-preview{position:relative;max-width:200px;border-radius:8px;overflow:hidden;border:1px solid #e0e0e0}
.preview-img{width:100%;height:auto;max-height:150px;object-fit:cover;display:block}
.remove-image-btn{position:absolute;top:4px;right:4px;background:rgba(0,0,0,.7);color:white;border:none;border-radius:50%;width:24px;height:24px;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.remove-image-btn:hover{background:rgba(0,0,0,.9)}
.composer-actions{display:flex;gap:13px;align-items:center;justify-content:flex-end;margin-left:auto;flex-shrink:0}
.image-attach-btn{background:none;border:none;padding:0px 0px;font-size:16px;cursor:pointer;color:#666;outline:none;box-shadow:none;border-radius:0}
.image-attach-btn:hover{background:none;color:#333}
.image-attach-btn:focus{background:none;color:#333;outline:none;box-shadow:none}
.image-attach-btn:active{background:none;color:#333;outline:none;box-shadow:none}
.post-submit-btn{background:none;color:#333;border:none;padding:0px 0px;font-size:13px;font-weight:500;cursor:pointer;min-width:50px;outline:none;box-shadow:none;border-radius:0}
.post-submit-btn:hover:not(:disabled){background:none;color:#000}
.post-submit-btn:focus:not(:disabled){background:none;color:#000;outline:none;box-shadow:none}
.post-submit-btn:active:not(:disabled){background:none;color:#000;outline:none;box-shadow:none}
.post-submit-btn:disabled{background:none;color:#ccc;cursor:not-allowed}

/* 検索エリア */
.feed-search-area{background:white;padding:2px 16px 4px 16px;border-bottom:1px solid #e0e0e0;margin-bottom:0px;text-align:right}
.search-container{position:relative}
.search-input-group{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.search-input{flex:1;padding:8px 12px;border:1px solid #d0d0d0;border-radius:20px;font-size:14px;outline:none}
.search-input:focus{border-color:#333}
/* .search-btn{background:#333;color:white;border:none;padding:8px 12px;border-radius:20px;font-size:12px;cursor:pointer;min-width:40px} */
/* .search-btn:hover{background:#555} */
.search-clear-btn{background:#666;color:white;border:none;padding:6px 10px;border-radius:50%;font-size:12px;cursor:pointer;width:30px;height:30px;display:flex;align-items:center;justify-content:center}
.search-clear-btn:hover{background:#888}

.search-options{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:8px;padding:12px;margin-top:8px}
.search-filters{display:flex;gap:16px;margin-bottom:8px;flex-wrap:wrap}
.search-period{display:flex;align-items:center}
.filter-option{display:flex;align-items:center;gap:4px;font-size:14px;cursor:pointer}
.filter-option input[type="radio"]{margin:0}
.filter-option select{padding:4px 8px;border:1px solid #d0d0d0;border-radius:4px;font-size:14px;background:white}
.search-results-info{background:#e7f3ff;border:1px solid #b3d9ff;border-radius:4px;padding:8px 12px;margin-top:8px;font-size:13px;color:#0066cc}
.search-results-info .results-count{font-weight:600}
.search-results-info .clear-search{color:#666;text-decoration:underline;cursor:pointer;margin-left:8px}
.search-results-info .clear-search:hover{color:#333}

/* 検索結果の返信表示 */
.search-result-reply{background:#f0f8ff;border:1px solid #b3d9ff;margin-bottom:16px}
.reply-badge{margin-bottom:8px}
.reply-badge span{background:#007acc;color:white;padding:2px 8px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase}
.parent-post-info{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:6px;padding:12px;margin-bottom:12px}
.parent-post-info .text-xs{color:#666;margin-bottom:4px}
.parent-post-info .text-sm{color:#333;line-height:1.4}
.view-full-post-btn{background:none;border:none;color:#007acc;font-size:13px;cursor:pointer;padding:4px 0}
.view-full-post-btn:hover{text-decoration:underline}
.feed-posts{background:white}
.loading-placeholder,.no-posts,.error-message{text-align:center;padding:40px 20px;color:#666;font-size:14px}
.error-message{color:#d32f2f}
.feed-post{border-bottom:1px solid #ddd;margin-bottom:2px;padding:4px 12px;background:white}
.feed-post:last-child{border-bottom:none;margin-bottom:0}
.feed-post:hover{background:#fafafa}
.post-header{display:flex;align-items:center;gap:12px;margin-bottom:8px;justify-content:space-between}
.post-header-left{display:flex;align-items:center;gap:12px}
.post-header .user-avatar{width:40px;height:40px}
.post-meta{display:flex;flex-direction:column;gap:2px}
.post-author{font-weight:600;color:#1a1a1a;font-size:10px}
.post-time{font-size:12px;color:#666}
.post-content{margin:0 0 4px 0;font-size:14px;line-height:1.5;color:#1a1a1a;white-space:pre-wrap;word-wrap:break-word;text-indent:0;padding-left:0}

.action-btn{background:none;border:none;padding:4px 6px;border-radius:6px;cursor:pointer;display:flex;align-items:center;gap:4px;font-size:12px;color:#666}
.action-btn:active,.action-btn:focus{background:none!important;outline:none}
.bookmark-btn:active,.bookmark-btn:focus,.reply-btn:active,.reply-btn:focus{background:none!important;outline:none}
.reply-icon{font-size:16px}
.feed-post .bookmark-star{font-size:16px}
.reply-text{color:#000;font-weight:500;font-size:14px}
.reply-count{font-size:11px;color:#888}
.feed-post .action-btn.bookmark-btn .bookmark-star{color:#555!important;background:transparent!important;width:auto!important;height:auto!important;border-radius:0!important;clip-path:none!important}
.feed-post .action-btn.bookmark-btn.bookmarked .bookmark-star{color:#000!important}
.feed-post .action-btn.bookmark-btn:hover .bookmark-star{color:#000!important}
.feed-post .action-btn.bookmark-btn.bookmarked:hover .bookmark-star{color:#000!important}
.post-replies{margin:4px 0 0 44px;border-top:1px solid #f0f0f0;padding-top:8px}
.reply-input-area{display:flex;gap:8px;margin-bottom:16px;align-items:flex-start;position:relative}
.reply-input{flex:1;min-height:36px;padding:8px 36px 8px 12px;border:1px solid #d0d0d0;border-radius:18px;background:#f8f8f8;resize:none}
.reply-input:focus{outline:none;border-color:#333;background:white}


.reply-image-preview{margin:8px 0;max-width:150px;position:relative;border-radius:6px;overflow:hidden;border:1px solid #e0e0e0}
.reply-preview-img{width:100%;height:auto;max-height:100px;object-fit:cover;display:block}

.replies-list{display:flex;flex-direction:column;gap:8px}
.reply-item{background:#f8f8f8;border-radius:8px;padding:8px 12px;border-left:3px solid #e0e0e0}
.reply-header{display:flex;gap:8px;align-items:center;margin-bottom:4px}
.reply-author{font-weight:600;font-size:12px;color:#333}
.reply-time{font-size:11px;color:#888}
.reply-content{font-size:13px;line-height:1.4;color:#333;white-space:pre-wrap;word-wrap:break-word}
.reply-image{margin-top:6px;max-width:200px;border-radius:6px;overflow:hidden;border:1px solid #e0e0e0}
.reply-img{width:100%;height:auto;max-height:150px;object-fit:cover;display:block;cursor:pointer}
.reply-img:hover{transform:scale(1.02)}
.post-image{margin:4px 0 4px 44px;max-width:400px;border-radius:8px;overflow:hidden;border:1px solid #e0e0e0}
.post-img{width:100%;height:auto;max-height:300px;object-fit:cover;display:block;cursor:pointer}
.post-img:hover{transform:scale(1.02)}
@media (max-width:768px){
.post-composer{padding:4px 12px}
.feed-post{padding:4px 12px}
.post-content,.post-replies,.post-image{margin-left:0}
.composer-header .user-avatar,.post-header .user-avatar{width:40px;height:40px}
.post-input{min-height:60px}
.reply-input-area{gap:6px}
.post-image{max-width:calc(100vw - 80px)}
.image-preview{max-width:150px}
.preview-img{max-height:100px}
}