/* Fixed Button Container Styles */
.fixed-button-container {
    position: fixed;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.3s ease;
}

/* Position variants - change class to switch position */
.fixed-button-container.position-right {
    right: 20px;
}

/* Enhanced Publish Button Styles */
.publish-button-wrapper {
    position: relative;
}

.btn-publish-enhanced {
    position: relative;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.btn-publish-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.btn-publish-enhanced:active {
    transform: translateY(0);
}

.btn-publish-enhanced i {
    font-size: 18px;
}

/* Pulsing animation for first-time users */
.btn-publish-enhanced.first-time-notice {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4), 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.6), 0 0 0 10px rgba(0, 123, 255, 0);
    }
}

/* Badge indicator */
.publish-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
    animation: bounce-badge 2s ease-in-out infinite;
}

@keyframes bounce-badge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Hint tooltip for first-time users */
.publish-button-hint {
    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 280px;
    max-width: 320px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: slideDownFadeIn 0.5s ease-out;
    z-index: 1001;
}

.publish-button-hint::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #764ba2;
}

.publish-button-hint i.fa-info-circle {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.publish-button-hint span {
    flex: 1;
}

.btn-close-hint {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.btn-close-hint:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-close-hint i {
    font-size: 12px;
}

@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide hint after dismissal */
.publish-button-hint.hidden {
    display: none;
}

/* Tooltip styling when shown automatically */
.tooltip.show {
    opacity: 1 !important;
}

.tooltip-inner {
    background-color: #333;
    color: #fff;
    padding: 10px 14px;
    font-size: 13px;
    max-width: 250px;
    text-align: left;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip.bs-tooltip-left .arrow::before {
    border-left-color: #333;
}

/* Keep tooltip visible longer for first-time users */
.btn-publish-enhanced.first-time-notice + .tooltip {
    animation: tooltipPulse 2s ease-in-out infinite;
}

@keyframes tooltipPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .publish-button-hint {
        min-width: 240px;
        max-width: 280px;
        font-size: 13px;
        right: -20px;
    }

    .btn-publish-enhanced {
        padding: 12px 20px;
        font-size: 15px;
        min-width: 120px;
    }

    .tooltip-inner {
        max-width: 200px;
        font-size: 12px;
    }
}

