/**
 * Anke Comments CSS
 * 
 * コメントシステムのスタイル
 */

/* コメントラッパー */
.anke-comments-wrapper {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* コメントヘッダー */
.anke-comments-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.anke-comments-title {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.anke-comments-count {
    color: #ff6b35;
}

/* コメントフォーム */
.anke-comment-form-wrapper {
    margin-bottom: 30px;
}

.anke-comment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.anke-comment-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.anke-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.anke-comment-avatar-placeholder {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    margin-right: 10px;
}

.anke-comment-username {
    font-weight: bold;
    color: #333;
}

.anke-comment-input-wrapper {
    margin-bottom: 15px;
}

.anke-comment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.anke-comment-textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.anke-comment-form-actions {
    display: flex;
    gap: 10px;
}

.anke-comment-submit-btn {
    padding: 10px 30px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.anke-comment-submit-btn:hover {
    background: #e55a2b;
}

.anke-comment-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.anke-comment-cancel-btn {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.anke-comment-cancel-btn:hover {
    background: #5a6268;
}

/* メッセージ */
.anke-comment-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.anke-comment-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.anke-comment-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* コメント一覧 */
.anke-comments-list {
    margin-top: 20px;
}

.anke-comments-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

/* コメントアイテム */
.anke-comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.anke-comment-item:last-child {
    border-bottom: none;
}

.anke-comment-content-wrapper {
    flex: 1;
}

.anke-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.anke-comment-author {
    font-weight: bold;
    color: #333;
}

.anke-comment-date {
    font-size: 12px;
    color: #999;
}

.anke-comment-points {
    font-size: 12px;
    color: #ff6b35;
    font-weight: bold;
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 12px;
}

.anke-comment-text {
    margin-bottom: 10px;
    color: #333;
    line-height: 1.6;
}

.anke-comment-actions {
    display: flex;
    gap: 15px;
}

.anke-comment-reply-btn,
.anke-comment-delete-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

.anke-comment-reply-btn:hover {
    color: #ff6b35;
}

.anke-comment-delete-btn:hover {
    color: #dc3545;
}

/* 返信 */
.anke-comment-replies {
    margin-top: 15px;
    margin-left: 40px;
    padding-left: 20px;
    border-left: 2px solid #f0f0f0;
}

.anke-comment-reply-form {
    margin-top: 15px;
}

/* ログインメッセージ */
.anke-comment-login-message {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.anke-comment-login-message a {
    color: #ff6b35;
    text-decoration: underline;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .anke-comments-wrapper {
        padding: 15px;
    }
    
    .anke-comment-form {
        padding: 15px;
    }
    
    .anke-comment-replies {
        margin-left: 20px;
        padding-left: 15px;
    }
}
