/* Button Styles */
.scdev-sb-v2-post-btn,
.scdev-sb-v2-comment-submit {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 8px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2) !important;
}

.scdev-sb-v2-post-btn:hover,
.scdev-sb-v2-comment-submit:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

/* Night / Dark mode for primary submit buttons */
body.dark-mode .scdev-sb-v2-post-btn,
body.dark-mode .scdev-sb-v2-comment-submit,
body.night-mode .scdev-sb-v2-post-btn,
body.night-mode .scdev-sb-v2-comment-submit,
body.sheer-dark .scdev-sb-v2-post-btn,
body.sheer-dark .scdev-sb-v2-comment-submit,
body.sheer-dark-mode .scdev-sb-v2-post-btn,
body.sheer-dark-mode .scdev-sb-v2-comment-submit,
body.wp-dark-mode-active .scdev-sb-v2-post-btn,
body.wp-dark-mode-active .scdev-sb-v2-comment-submit,
html.dark .scdev-sb-v2-post-btn,
html.dark .scdev-sb-v2-comment-submit,
[data-theme="dark"] .scdev-sb-v2-post-btn,
[data-theme="dark"] .scdev-sb-v2-comment-submit,
[data-color-scheme="dark"] .scdev-sb-v2-post-btn,
[data-color-scheme="dark"] .scdev-sb-v2-comment-submit {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4) !important;
}

body.dark-mode .scdev-sb-v2-post-btn:hover,
body.dark-mode .scdev-sb-v2-comment-submit:hover,
body.night-mode .scdev-sb-v2-post-btn:hover,
body.night-mode .scdev-sb-v2-comment-submit:hover,
body.sheer-dark .scdev-sb-v2-post-btn:hover,
body.sheer-dark .scdev-sb-v2-comment-submit:hover,
body.sheer-dark-mode .scdev-sb-v2-post-btn:hover,
body.sheer-dark-mode .scdev-sb-v2-comment-submit:hover,
body.wp-dark-mode-active .scdev-sb-v2-post-btn:hover,
body.wp-dark-mode-active .scdev-sb-v2-comment-submit:hover,
html.dark .scdev-sb-v2-post-btn:hover,
html.dark .scdev-sb-v2-comment-submit:hover,
[data-theme="dark"] .scdev-sb-v2-post-btn:hover,
[data-theme="dark"] .scdev-sb-v2-comment-submit:hover,
[data-color-scheme="dark"] .scdev-sb-v2-post-btn:hover,
[data-color-scheme="dark"] .scdev-sb-v2-comment-submit:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

.scdev-sb-v2-delete-btn,
.scdev-sb-v2-comment-delete {
    background: transparent;
    color: var(--scdev-text-muted);
    border: none;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
}

.scdev-sb-v2-delete-btn:hover,
.scdev-sb-v2-comment-delete:hover {
    color: #e74c3c;
}

.scdev-sb-v2-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--scdev-border, #e2e8f0);
}

.scdev-sb-v2-react-btn,
.scdev-sb-v2-comment-btn,
.scdev-sb-v2-share-btn,
.scdev-sb-v2-views-btn {
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #334155 !important;
    transition: all 0.2s ease;
}

.scdev-sb-v2-share-btn {
    position: relative;
    padding: 7px 10px !important;
}

.scdev-sb-v2-react-btn:hover,
.scdev-sb-v2-comment-btn:hover,
.scdev-sb-v2-share-btn:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.scdev-sb-v2-react-btn.active {
    color: #2563eb !important;
    border-color: #93c5fd !important;
    background: #eff6ff !important;
}

.scdev-sb-v2-views-btn {
    cursor: default;
    pointer-events: none;
}

.scdev-sb-v2-icon {
    font-size: 18px;
    line-height: 1 !important;
}

.scdev-sb-v2-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.scdev-sb-v2-react-count,
.scdev-sb-v2-comment-count,
.scdev-sb-v2-share-count,
.scdev-sb-v2-views-count {
    font-weight: 700;
    color: #1e293b !important;
}

/* Night / Dark mode for action buttons */
body.night-mode .scdev-sb-v2-react-btn,
body.dark-mode .scdev-sb-v2-react-btn,
body.night-mode .scdev-sb-v2-comment-btn,
body.dark-mode .scdev-sb-v2-comment-btn,
body.night-mode .scdev-sb-v2-share-btn,
body.dark-mode .scdev-sb-v2-share-btn,
body.night-mode .scdev-sb-v2-views-btn,
body.dark-mode .scdev-sb-v2-views-btn,
html.dark .scdev-sb-v2-react-btn,
html.dark .scdev-sb-v2-comment-btn,
html.dark .scdev-sb-v2-share-btn,
html.dark .scdev-sb-v2-views-btn {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}

body.night-mode .scdev-sb-v2-react-btn:hover,
body.dark-mode .scdev-sb-v2-react-btn:hover,
body.night-mode .scdev-sb-v2-comment-btn:hover,
body.dark-mode .scdev-sb-v2-comment-btn:hover,
body.night-mode .scdev-sb-v2-share-btn:hover,
body.dark-mode .scdev-sb-v2-share-btn:hover,
html.dark .scdev-sb-v2-react-btn:hover,
html.dark .scdev-sb-v2-comment-btn:hover,
html.dark .scdev-sb-v2-share-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

body.night-mode .scdev-sb-v2-react-btn.active,
body.dark-mode .scdev-sb-v2-react-btn.active,
html.dark .scdev-sb-v2-react-btn.active {
    color: #60a5fa !important;
    border-color: #3b82f6 !important;
    background: rgba(59, 130, 246, 0.2) !important;
}

body.night-mode .scdev-sb-v2-react-count,
body.dark-mode .scdev-sb-v2-react-count,
body.night-mode .scdev-sb-v2-comment-count,
body.dark-mode .scdev-sb-v2-comment-count,
body.night-mode .scdev-sb-v2-share-count,
body.dark-mode .scdev-sb-v2-share-count,
body.night-mode .scdev-sb-v2-views-count,
body.dark-mode .scdev-sb-v2-views-count,
html.dark .scdev-sb-v2-react-count,
html.dark .scdev-sb-v2-comment-count,
html.dark .scdev-sb-v2-share-count,
html.dark .scdev-sb-v2-views-count {
    color: #f8fafc !important;
}

.scdev-sb-v2-share-btn .scdev-sb-v2-share-count {
    position: absolute;
    right: -6px;
    bottom: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #2f6fca;
    color: #fff;
    font-size: 10px;
    line-height: 17px;
    text-align: center;
}


/* Share Wrapper */
.scdev-sb-v2-share-wrapper {
    position: relative;
    display: inline-block;
}

.scdev-sb-v2-share-box {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background: #ffffff !important;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    display: flex;
    gap: 4px;
}

/* Dark mode - only when body has dark mode class or attribute */
body.dark-mode .scdev-sb-v2-share-box,
body.is-dark .scdev-sb-v2-share-box,
body.dark .scdev-sb-v2-share-box,
body.night-mode .scdev-sb-v2-share-box,
body.theme-dark .scdev-sb-v2-share-box,
body[data-theme="dark"] .scdev-sb-v2-share-box,
body.wp-dark-mode-active .scdev-sb-v2-share-box {
    background: #1a1a1a !important;
    border-color: #444444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.scdev-sb-v2-share-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scdev-sb-v2-share-icon-btn {
    background: transparent !important;
    border: none;
    padding: 6px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.scdev-sb-v2-share-icon-btn:hover {
    background: var(--scdev-bg-hover) !important;
}

.scdev-sb-v2-share-icon-btn svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

.scdev-sb-v2-share-icon-btn[data-platform="facebook"] svg path {
    fill: #1877F2 !important;
}

.scdev-sb-v2-share-icon-btn[data-platform="twitter"] svg path {
    fill: #000000 !important;
}

.scdev-sb-v2-share-icon-btn[data-platform="whatsapp"] svg path {
    fill: #25D366 !important;
}

.scdev-sb-v2-share-icon-btn[data-platform="copy"] svg path {
    fill: #666666 !important;
}

/* Dark mode adjustments for Twitter icon - make it white */
body.dark-mode .scdev-sb-v2-share-icon-btn[data-platform="twitter"] svg path,
body.is-dark .scdev-sb-v2-share-icon-btn[data-platform="twitter"] svg path,
body.dark .scdev-sb-v2-share-icon-btn[data-platform="twitter"] svg path,
body.night-mode .scdev-sb-v2-share-icon-btn[data-platform="twitter"] svg path,
body.theme-dark .scdev-sb-v2-share-icon-btn[data-platform="twitter"] svg path,
body[data-theme="dark"] .scdev-sb-v2-share-icon-btn[data-platform="twitter"] svg path,
body.wp-dark-mode-active .scdev-sb-v2-share-icon-btn[data-platform="twitter"] svg path {
    fill: #ffffff !important;
}


/* Copy Message Toast */
.scdev-sb-v2-copy-message {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s;
}

.scdev-sb-v2-copy-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Real-time reaction count pop animation */
@keyframes scdevCountPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}
.scdev-count-pop {
    animation: scdevCountPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* React button active pulse when toggling */
.scdev-sb-v2-react-btn.active .scdev-sb-v2-icon {
    display: inline-block;
    animation: scdevCountPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

