/* ============================================================
   Bulk Job Posting Credits - Page-Specific Styles
   Module Prefix: prc-
   Extends the base prc-styles.css styles
   ============================================================ */

/* Hero badge */
.bulk-hero-badge {
    display: inline-block;
    background: rgba(var(--color-primary-rgb, 49, 114, 174), 0.1);
    color: var(--color-text, #2c3e50);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.bulk-hero-badge i {
    color: var(--color-primary, #3172ae);
    margin-right: 0.5rem;
}

/* ---- Quantity Selector ---- */
.bulk-quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 1.25rem 0;
}

.bulk-qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-border, #dee2e6);
    background: var(--color-bg-subtle, #f8f9fa);
    color: var(--color-text, #2c3e50);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bulk-qty-btn:hover:not(:disabled) {
    background: var(--color-primary, #3172ae);
    border-color: var(--color-primary, #3172ae);
    color: white;
}

.bulk-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bulk-qty-btn.bulk-qty-minus {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.bulk-qty-btn.bulk-qty-plus {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.bulk-qty-input {
    width: 70px;
    height: 40px;
    border: 2px solid var(--color-border, #dee2e6);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text, #2c3e50);
    -moz-appearance: textfield;
}

.bulk-qty-input::-webkit-outer-spin-button,
.bulk-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bulk-qty-input:focus {
    outline: none;
    border-color: var(--color-primary, #3172ae);
}

/* ---- Discount Tiers List ---- */
.bulk-discount-tiers {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.bulk-discount-tiers li {
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    color: var(--color-text-secondary, #6c757d);
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bulk-discount-tiers li.active-tier {
    background: #e8f4e8;
    color: #155724;
    font-weight: 600;
}

.bulk-discount-tiers li.active-tier::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--color-success, #28a745);
}

.bulk-tier-label {
    flex: 1;
}

.bulk-tier-price {
    font-weight: 600;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.bulk-tier-discount {
    color: var(--color-success, #28a745);
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* ---- Price Total Display ---- */
.bulk-total-section {
    background: var(--color-bg-subtle, #f8f9fa);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    border: 2px dashed var(--color-border, #dee2e6);
    text-align: center;
}

.bulk-total-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text, #2c3e50);
    line-height: 1.2;
}

.bulk-per-credit {
    font-size: 0.9rem;
    color: var(--color-text-secondary, #6c757d);
    margin-top: 0.25rem;
}

.bulk-savings {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.bulk-savings.no-savings {
    background: transparent;
    color: var(--color-text-secondary, #6c757d);
    font-weight: 400;
}

/* ---- Purchase Button ---- */
.btn-bulk-purchase {
    background: var(--color-primary, #3172ae);
    border: none;
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
}

.btn-bulk-purchase:hover {
    background: var(--color-primary-dark, #28609a);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--color-primary-rgb, 49, 114, 174), 0.3);
    color: white;
}

.btn-bulk-purchase:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- How It Works Section ---- */
.bulk-how-it-works {
    padding: 4rem 0;
    background: var(--color-bg-subtle, #f8f9fa);
}

.bulk-step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--color-bg, white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.bulk-step-number {
    width: 50px;
    height: 50px;
    background: var(--color-primary, #3172ae);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.bulk-step-card h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text, #2c3e50);
    margin-bottom: 0.75rem;
}

.bulk-step-card p {
    color: var(--color-text-secondary, #6c757d);
    font-size: 0.95rem;
    margin: 0;
}

/* ---- Login prompt ---- */
.bulk-login-prompt {
    background: #fff3cd;
    border: 1px solid var(--color-warning, #ffc107);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-top: 0.75rem;
}

.bulk-login-prompt a {
    color: var(--color-primary, #3172ae);
    font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .bulk-hero-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .bulk-total-amount {
        font-size: 1.5rem;
    }

    .bulk-discount-tiers {
        font-size: 0.8rem;
    }
}
