:root {
    --primary-dark: #003366;
    --accent-green: #4CAF50;
    --white: #FFFFFF;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius-md: 12px;
    --transition: all 0.3s ease;
}

/* Engagement Bar Container */
.new-engagement-bar {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: var(--white);
    padding: 16px 20px;
    width: 100%;
    margin: 24px auto;
    gap: 0;
}

.new-actions-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 12px;
    align-items: center;
}

.new-actions-row {
    display: flex;
    flex: 2;
    gap: 12px;
    min-width: 0;
}

/* Responsive Layout */
@media (min-width: 769px) {
    .new-actions-container {
        flex-direction: row;
    }
    
    .new-share-btn {
        flex: 1;
        order: 3;
    }
}

@media (max-width: 768px) {
    .new-engagement-bar {
        padding: 20px;
    }
    
    .new-actions-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .new-actions-row {
        flex: none;
        width: 100%;
    }
    
    .new-action-btn {
        flex: 1;
    }
    
    .new-share-btn {
        order: 2;
        width: 100%;
    }
}

/* Action Buttons */
.new-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: transparent;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
    flex: 1;
    min-height: 52px;
    cursor: pointer;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.new-action-btn:hover:not(.active):not(.disabled):not(.loading) {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Active States */
.new-appreciate-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-lg);
}

.new-comment-btn.active {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-lg);
}

/* Share Button */
.new-share-btn {
    background: var(--accent-green ) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.new-share-btn:hover {
    background: #45a049 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Icon Styles */
.new-action-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.new-clap-icon {
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.new-appreciate-btn.active .new-clap-icon {
    transform: rotateY(360deg) scale(1.2);
}

.new-action-count {
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 40px;
    flex-shrink: 0;
    text-align: center;
}

/* Disabled State */
.new-action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading State */
.new-action-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    right: 16px;
    animation: new-spin 1s linear infinite;
}

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

/* Mobile Optimizations */
@media (max-width: 768px) {
    .new-action-btn {
        padding: 12px;
        font-size: 0.85rem;
        min-height: 48px;
    }
    
    .new-action-btn .text {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .new-action-btn .text { 
        display: none;
    }
}


/* View Count - Read-only display (non-interactive) */
.new-view-count {
    cursor: default !important;  /* Change cursor to default */
    pointer-events: none;        /* Disable all click events */
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
    user-select: none;           /* Prevent text selection */
}


.new-view-count:hover {
    border-color: var(--border-color) !important;
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
    color: var(--text-secondary) !important;
}

.new-view-count .new-action-icon {
    opacity: 0.7;
}

/* Optional: Different style for high view count */
.new-view-count.popular {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.new-view-count.popular .new-action-icon {
    color: #f59e0b;
}

.new-view-count.popular:hover {
    border-color: #d97706;
    background: rgba(217, 119, 6, 0.1);
}


/* Optional: Add subtle animation to show it's just a stat */
.new-view-count {
    animation: none;
}
