/* ========================================
   Bullet Numbers To Card - Layout & Styles
   ======================================== */

/* Reset default list & setup counter */
ol {
    counter-reset: bntc-counter;
    list-style: none !important;
    padding-left: 50px !important;
    margin-left: 0 !important;
}

/* ✅ CARD: Column layout */
ol li.bntc-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    background: #ffffff !important;
    border: 1.5px solid #c2d0e8 !important;
    border-radius: 10px !important;
    padding: 20px 18px !important;
    margin: 0 0 16px 0 !important;
    box-shadow: 0 4px 12px rgba(100, 130, 200, 0.18) !important;
    position: relative;
    counter-increment: bntc-counter;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
    height: auto !important;
    min-height: 50px !important;
}

/* Number Badge */
ol li.bntc-card::before {
    content: counter(bntc-counter);
    position: absolute;
    left: -48px;
    top: 20px;
    width: 30px;
    height: 30px;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    z-index: 1;
}

ol li.bntc-card:hover {
    border-color: #90a8d4 !important;
    box-shadow: 0 7px 16px rgba(80, 110, 180, 0.24) !important;
    transform: translateY(-2px);
}

/* ✅ MULTILINE TEXT: Preserves your exact line breaks, wraps only long words */
ol li.bntc-card > *:not(.bntc-controls) {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;          /* Flex gap handles spacing */
    white-space: pre-wrap !important; /* Keeps \n line breaks exactly as stored */
    overflow-wrap: break-word !important; /* Splits only words/URLs that are too wide */
    line-height: 1.6 !important;
    box-sizing: border-box !important;
}

/* Buttons Container */
.bntc-controls {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    order: 2;
    margin-top: 4px;
}

/* ✅ COPY BUTTON */
.bntc-copy {
    cursor: pointer !important;
    font-size: 14px !important;
    color: #1e40af !important;
    background: #dbeafe !important;
    border: none !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}
.bntc-copy:hover { background: #bfdbfe !important; }

/* ✅ ICON BUTTONS */
.bntc-btn {
    cursor: pointer !important;
    font-size: 18px !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #a0a0a0 !important;
    filter: grayscale(100%) opacity(0.6) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.bntc-btn:hover { filter: grayscale(50%) opacity(0.8) !important; }
.bntc-btn:active { transform: scale(0.92) !important; }

/* ✅ ACTIVE STATES */
.bntc-like.active {
    color: #ff3b3b !important;
    filter: none !important;
}
.bntc-dislike.active {
    color: #ffb300 !important;
    filter: none !important;
}

/* 📱 MOBILE */
@media (max-width: 600px) {
    ol {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
    ol li.bntc-card {
        padding: 12px 14px !important;
        min-height: 45px !important;
        margin: 0 0 12px 0 !important;
        gap: 8px !important;
    }
    ol li.bntc-card::before {
        display: none !important;
    }
    .bntc-controls {
        gap: 6px !important;
        margin-top: 6px;
        justify-content: center !important;
    }
    .bntc-controls .bntc-btn,
    .bntc-controls .bntc-copy {
        flex: 1 !important;
        height: 40px !important;
        width: auto !important;
        border-radius: 8px !important;
        justify-content: center !important;
        align-items: center !important;
        font-size: 14px !important;
    }
}