/* ===================================
 * Reaction Section
 * =================================== */

.pokeca-reaction-section {
    flex-basis: 100%;
    margin: 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.pokeca-reaction-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #333;
}

/* Reaction Buttons */
.pokeca-reaction-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.pokeca-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    user-select: none;
}

.pokeca-reaction-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pokeca-reaction-btn--good:hover,
.pokeca-reaction-btn--good.pokeca-reaction-btn--active {
    border-color: #4caf50;
    background: #e8f5e9;
    color: #2e7d32;
}

.pokeca-reaction-btn--bad:hover,
.pokeca-reaction-btn--bad.pokeca-reaction-btn--active {
    border-color: #f44336;
    background: #ffebee;
    color: #c62828;
}

.pokeca-reaction-btn--disabled {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.pokeca-reaction-icon {
    display: flex;
    align-items: center;
    line-height: 1;
}

.pokeca-reaction-btn--good .pokeca-reaction-icon {
    color: #4caf50;
}

.pokeca-reaction-btn--bad .pokeca-reaction-icon {
    color: #f44336;
}

.pokeca-reaction-btn--good.pokeca-reaction-btn--active .pokeca-reaction-icon,
.pokeca-reaction-btn--bad.pokeca-reaction-btn--active .pokeca-reaction-icon {
    color: inherit;
}

.pokeca-reaction-label {
    font-size: 14px;
}

.pokeca-reaction-count {
    font-size: 14px;
    font-weight: 700;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* Reaction Form */
.pokeca-reaction-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.pokeca-reaction-prompt {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px;
}

.pokeca-form-field {
    margin-bottom: 12px;
}

.pokeca-input,
.pokeca-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.pokeca-input:focus,
.pokeca-textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.pokeca-textarea {
    resize: vertical;
    min-height: 80px;
}

.pokeca-form-actions {
    display: flex;
    gap: 8px;
}

.pokeca-submit-btn {
    padding: 10px 24px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pokeca-submit-btn:hover {
    background: #43a047;
}

.pokeca-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pokeca-skip-btn {
    padding: 10px 24px;
    background: transparent;
    color: #666;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.pokeca-skip-btn:hover {
    background: #f8f9fa;
    color: #333;
}

/* Success/Error Message */
.pokeca-reaction-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.pokeca-reaction-message--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.pokeca-reaction-message--error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ===================================
 * Comments Section
 * =================================== */

.pokeca-comments-section {
    margin: 24px 0;
}

.pokeca-comments-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #333;
}

/* Comment Form (standalone) */
.pokeca-comment-form-section {
    margin-top: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.pokeca-comment-form-message {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.pokeca-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Comment Item */
.pokeca-comment-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.pokeca-comment-reaction {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
}

.pokeca-comment-reaction--good {
    background: #e8f5e9;
    color: #4caf50;
}

.pokeca-comment-reaction--bad {
    background: #ffebee;
    color: #f44336;
}

.pokeca-comment-body {
    flex: 1;
    min-width: 0;
}

.pokeca-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.pokeca-comment-author {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

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

.pokeca-comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
    word-break: break-word;
}

/* Comment Number */
.pokeca-comment-number {
    font-size: 12px;
    font-weight: 700;
    color: #1976d2;
    font-family: monospace;
}

/* Anonymous ID */
.pokeca-comment-anon-id {
    font-size: 11px;
    color: #999;
    font-family: monospace;
    background: #f5f5f5;
    padding: 1px 4px;
    border-radius: 3px;
}

/* Anchor Link */
.pokeca-anchor-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    font-family: monospace;
}

.pokeca-anchor-link:hover {
    text-decoration: underline;
}

/* Comment Actions (vote + reply) */
.pokeca-comment-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

/* Vote Buttons */
.pokeca-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    color: #999;
    transition: all 0.15s;
    line-height: 1;
}

.pokeca-vote-btn:hover {
    border-color: #bdbdbd;
    color: #666;
}

.pokeca-vote-btn--good.pokeca-vote-btn--active {
    border-color: #4caf50;
    color: #4caf50;
    background: #e8f5e9;
}

.pokeca-vote-btn--bad.pokeca-vote-btn--active {
    border-color: #f44336;
    color: #f44336;
    background: #ffebee;
}

.pokeca-vote-btn svg {
    display: block;
}

.pokeca-vote-count {
    font-weight: 600;
    min-width: 8px;
    text-align: center;
}

/* Reply Button */
.pokeca-reply-btn {
    border: none;
    background: none;
    color: #999;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 4px;
    transition: color 0.15s;
}

.pokeca-reply-btn:hover {
    color: #1976d2;
}

/* Replies (nested) */
.pokeca-replies {
    margin-top: 8px;
    padding-left: 16px;
    border-left: 2px solid #e8e8e8;
}

.pokeca-comment-item--reply {
    padding: 8px 0;
}

.pokeca-comment-item--reply .pokeca-comment-content {
    font-size: 13px;
}

/* Reply Form */
.pokeca-reply-form-container {
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.pokeca-input--sm,
.pokeca-textarea--sm {
    font-size: 13px;
    padding: 8px 10px;
}

.pokeca-textarea--sm {
    min-height: 60px;
}

.pokeca-submit-btn--sm {
    padding: 8px 16px;
    font-size: 13px;
}

.pokeca-reply-cancel-btn {
    padding: 8px 16px;
    background: transparent;
    color: #666;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.pokeca-reply-cancel-btn:hover {
    background: #f8f9fa;
    color: #333;
}

/* Highlight target comment */
.pokeca-comment-item--highlight {
    background: #fff8e1;
    border-radius: 4px;
    transition: background 1s ease;
}

/* Load More Button */
.pokeca-load-more-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    background: #fff;
    color: #666;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.pokeca-load-more-btn:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #adb5bd;
}

.pokeca-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===================================
 * Scroll to Comments Button
 * =================================== */

.pokeca-scroll-to-comments {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: #fff;
    color: #1976d2;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pokeca-scroll-to-comments:hover {
    background: #e3f2fd;
    border-color: #1976d2;
}

.pokeca-scroll-to-comments svg {
    display: block;
    flex-shrink: 0;
}

/* ===================================
 * Responsive
 * =================================== */

@media (max-width: 480px) {
    .pokeca-reaction-section {
        padding: 16px;
        margin: 24px 0;
    }

    .pokeca-reaction-buttons {
        flex-direction: row;
    }

    .pokeca-reaction-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 14px;
    }

    .pokeca-form-actions {
        flex-direction: column;
    }

    .pokeca-submit-btn,
    .pokeca-skip-btn {
        width: 100%;
        text-align: center;
    }
}
