
/* Bottom Bar Container */
.blog-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.05);
    z-index: 9999;

    /* NEW: Hide by default and set up the slide animation */
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

/* NEW: Class added by jQuery after scrolling 500px */
.blog-bottom-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Reading Progress Indicator */
.reading-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
}
.reading-progress-bar {
    height: 100%;
    background-color: #F9452D; /* Adjust to match your orange brand color */
    width: 0%;
    transition: width 0.1s ease-out;
}

/* Content Layout */
.bottom-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.title-wrapper {
    display: flex;
    gap: 8px;
}
.title-wrapper .blog-bar-title {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: -0.6px;
    color: #6D6D6D;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #6D6D6D;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.3s;
}

/* Share Modal Positioning */
.share-wrapper { position: relative; display: flex; gap: 24px }

/* share popup start*/
.custom-share-modal {
    position: absolute;
    bottom: 40px;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 2px solid #F9452D;
    z-index: 10; /* Added to ensure it stays above other content */
}
.custom-share-modal.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Inner Styling */
.modal-label {
    font-size: 18px;
    color: #000000;
    line-height: 22px;
    margin-bottom: 10px;
    font-weight: 400;
}

.modal-section { margin-bottom: 24px; }

.modal-section:last-child { margin-bottom: 0; }

.input-with-copy-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-with-copy-wrapper .url-input {
    flex: 1;
    font-size: 14px;
    color: #718096;
    outline: none;
    display: flex;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 8px;
}

.copy-link-btn:hover {
    background: #edf2f7;
}

.copy-link-btn {
    display: flex;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 6px;
    cursor: pointer;
    color: #4a5568;
    transition: 0.2s;
}

/* NEW: Copy Link SVG Toggle Logic */
.copy-link-btn svg {
    transition: all 0.2s ease;
}

.copy-link-btn .icon-tick {
    display: none;
    color: #F9452D; /* Green success color for the checkmark */
}

.copy-message {
    font-size: 14px;
    color: #F9452D;
    line-height: 22px;
    margin-top: 2px;
    font-weight: 400;
    display: none;
}
.copy-message.show {
    display: block;
}

/* When the '.copied' class is added via JS */
.copy-link-btn.copied svg:not(.icon-tick) {
    display: none; /* Hide default copy icon */
}
.copy-link-btn.copied .icon-tick {
    display: block; /* Show checkmark */
}

/* Social Icons Row */
.social-icons-row {
    display: flex;
    gap: 16px;
}
.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    line-height: 18px;
    color: gray;
}
.social-item:hover { color: #2d3748; }
.footer {
    padding-bottom: 60px;
}
/* Responsive */
@media (max-width: 1024px) {
    .title-wrapper {
        display: none;
    }
    .custom-share-modal {
        padding: 18px;
    }
    .modal-label {
        font-size: 16px;
        margin-bottom: 6px;
    }
    .modal-section {
        margin-bottom: 14px;
    }
    .share-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    .social-icons-row {
        gap: 10px;
    }
    .social-item svg {
        height: 20px;
        width: 20px;
    }
    .custom-share-modal { right: 0;  }
}