/* ============================================
   VOTE & SHARE BUTTONS - COMPACT & CLEAN
   ============================================ */

/* ===== CONTAINER ===== */
.article-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.2rem 1.8rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ===== VOTE SECTION ===== */
.vote-section {
    display: flex;
    gap: 0.7rem;
    flex: 0 0 auto;
}

.worder-vote-container {
    display: flex;
    gap: 0.7rem;
}

.vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    background: white;
    border: 2px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vote-btn i {
    font-size: 15px;
    transition: transform 0.25s ease;
}

.vote-btn:hover i {
    transform: scale(1.15);
}

.vote-text {
    font-weight: 600;
    letter-spacing: 0.2px;
}

.vote-count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    transition: all 0.25s ease;
}

/* ===== HELPFUL BUTTON ===== */
.vote-helpful {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.vote-helpful:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.vote-helpful.active {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.vote-helpful:hover .vote-count,
.vote-helpful.active .vote-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ===== NOT HELPFUL BUTTON ===== */
.vote-not-helpful {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.vote-not-helpful:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.vote-not-helpful.active {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.vote-not-helpful:hover .vote-count,
.vote-not-helpful.active .vote-count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* ===== LOADING STATE ===== */
.vote-btn.loading {
    pointer-events: none;
    opacity: 0.6;
}

.vote-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== SHARE SECTION ===== */
.share-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    justify-content: flex-end;
}

.share-label {
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.worder-share-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-buttons {
    display: flex;
    gap: 0.4rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: currentColor;
}

.share-btn i {
    transition: transform 0.25s ease;
}

.share-btn:hover i {
    transform: scale(1.1);
}

.share-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff6b35;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* ===== PLATFORM COLORS (LOGO MÀU GỐC) ===== */
.share-btn.facebook i {
    color: #1877F2;
}

.share-btn.facebook:hover {
    background: white;
    border-color: #1877F2;
}
/* Messenger button */
.share-btn.messenger i {
    background: linear-gradient(135deg, #0084ff 0%, #0066cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.share-btn.messenger:hover {
    background: white;
    border-color: #0084ff;
}


.share-btn.instagram i {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.share-btn.instagram:hover {
    background: white;
    border-color: #E4405F;
}

.share-btn.tiktok i {
    color: #000000;
}

.share-btn.tiktok:hover {
    background: white;
    border-color: #000000;
}

.share-btn.copy-link i {
    color: #64748b;
}

.share-btn.copy-link:hover {
    background: white;
    border-color: #64748b;
}

.share-btn.copy-link.copied {
    background: white;
    border-color: #10b981;
    animation: copySuccess 0.5s ease;
}

.share-btn.copy-link.copied i {
    color: #10b981;
}

@keyframes copySuccess {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .article-actions {
        gap: 1.2rem;
    }
    
    .share-section {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .article-actions {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.2rem;
    }
    
    .vote-section {
        width: 100%;
    }
    
    .worder-vote-container {
        width: 100%;
    }
    
    .vote-btn {
        flex: 1;
    }
    
    .share-section {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .vote-btn {
        font-size: 12px;
        padding: 7px 12px;
        gap: 5px;
    }
    
    .vote-btn i {
        font-size: 14px;
    }
    
    .vote-count {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .share-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    
    .share-label {
        font-size: 12px;
    }
}

/* ===== ACCESSIBILITY ===== */
.vote-btn:focus,
.share-btn:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.vote-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
    -webkit-tap-highlight-color: transparent;
}

.vote-btn,
.share-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/* ============================================
   NOTIFICATION POPUP
   ============================================ */

.avsc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 350px;
}

.avsc-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.avsc-notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.avsc-notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.avsc-notification-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

@media (max-width: 768px) {
    .avsc-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 14px;
        padding: 14px 20px;
    }
}

