/*
 * De ce exista:
 * Acest fisier stilizeaza flow-ul de promovare pentru ofertele muncitorului.
 *
 * Responsabilitate:
 * Creeaza o prezentare clara pentru pachetele promo, starea platii si sumarul
 * ofertei fara sa afecteze alte ecrane worker.
 *
 * Ce NU face:
 * Nu stilizeaza CRUD-ul general al ofertelor si nu schimba shell-ul global.
 *
 * Depinde de:
 * tpl-screen-worker-offer-promotion si worker-offer-promotion-screen.js.
 */

.v2-screen--worker-offer-promotion {
    display: grid;
    gap: 20px;
}

.v2-worker-offer-promotion-hero {
    margin-bottom: 0;
}

.v2-screen--worker-offer-promotion .v2-results-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-color: rgba(209, 213, 219, 0.84);
    box-shadow:
        0 18px 36px rgba(17, 24, 39, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.v2-promotion-summary-card {
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.16), transparent 34%),
        linear-gradient(180deg, #ffffff, rgba(240, 253, 244, 0.66));
}

.v2-promotion-state-card {
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff, rgba(249, 250, 251, 0.98));
}

.v2-promotion-checkout-card {
    border-color: rgba(22, 163, 74, 0.2);
    background:
        radial-gradient(circle at top right, rgba(22, 163, 74, 0.14), transparent 34%),
        linear-gradient(180deg, #ffffff, rgba(240, 253, 244, 0.72));
}

.v2-promotion-offer-meta {
    display: grid;
    gap: 10px;
}

.v2-promotion-offer-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(229, 231, 235, 0.88);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
}

.v2-promotion-offer-meta-item span {
    display: grid;
    gap: 2px;
}

.v2-promotion-offer-meta-item small {
    color: #6b7280;
}

.v2-chip.is-promoted {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.22);
}

.v2-promotion-package-grid {
    display: grid;
    gap: 12px;
}

.v2-promotion-package-card {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(209, 213, 219, 0.88);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.96));
    text-align: left;
    color: #111827;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.v2-promotion-package-card strong {
    font-size: 1rem;
}

.v2-promotion-package-card span {
    font-weight: 600;
    color: #166534;
}

.v2-promotion-package-card small {
    color: #6b7280;
}

.v2-promotion-package-card.is-selected {
    border-color: rgba(22, 163, 74, 0.58);
    background:
        radial-gradient(circle at top right, rgba(220, 252, 231, 0.72), transparent 36%),
        #ffffff;
    box-shadow:
        0 14px 28px rgba(22, 163, 74, 0.1),
        inset 0 0 0 1px rgba(22, 163, 74, 0.12);
}

.v2-promotion-disclaimer,
.v2-promotion-note {
    margin: 0;
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.5;
}

.v2-promotion-checkout-actions {
    display: grid;
    gap: 10px;
}

.v2-promotion-checkout-actions .v2-button,
.v2-promotion-checkout-actions .v2-button-ghost {
    width: 100%;
    justify-content: center;
}

.v2-billing-terms-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(22, 163, 74, 0.18);
    background: rgba(255, 255, 255, 0.9);
}

.v2-billing-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #111827;
    font-weight: 600;
    line-height: 1.45;
}

.v2-billing-terms-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #16a34a;
    flex-shrink: 0;
}

.v2-billing-terms-check a {
    color: #15803d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.v2-billing-terms-card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.v2-promotion-simulate-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px dashed rgba(22, 163, 74, 0.28);
    border-radius: 18px;
    background: rgba(240, 253, 244, 0.78);
}

.v2-promotion-simulate-card p {
    margin: 0;
    color: #14532d;
}

@media (min-width: 760px) {
    .v2-promotion-offer-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .v2-promotion-package-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .v2-promotion-checkout-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
