/*
 * MyCarPlate.my — Plate visual + cards (dark theme)
 */

/* Black Malaysian plate */
.plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    border: 3px solid #222;
    border-radius: 5px;
    padding: 6px 12px;
    min-width: 90px;
    height: 38px;
    box-shadow:
        inset 0 0 0 2px #000,
        inset 0 2px 4px rgba(255,255,255,.08),
        0 2px 6px rgba(0,0,0,.3);
    font-family: 'Arial Black', 'Helvetica Neue', Impact, sans-serif;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
    line-height: 1;
}
.plate--lg {
    height: 64px;
    font-size: 32px;
    padding: 12px 22px;
    letter-spacing: 2.5px;
    min-width: 160px;
}
.plate--sm {
    height: 34px;
    font-size: 16px;
    padding: 5px 10px;
    letter-spacing: 1.2px;
    min-width: 80px;
}

/* WHITE plate card (on black bg) */
.plate-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 14px 10px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 108px;
    animation: cardIn .35s ease-out backwards;
}
.plate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(252,209,22,.25);
    border-color: var(--mp-gold);
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.plate-card .price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #0c447c;
    margin: 0;
    letter-spacing: .3px;
}

/* Featured badge — hidden per user preference (kept for future) */
.plate-card .badge-featured { display: none; }

/* RESERVED — diagonal corner ribbon, top-right */
.plate-card .badge-reserved {
    position: absolute !important;
    top: 12px !important;
    right: -38px !important;
    width: 130px !important;
    transform: rotate(45deg) !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-align: center;
    padding: 3px 0;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
    box-shadow: 0 2px 4px rgba(0,0,0,.25);
    z-index: 5 !important;
    pointer-events: none;
    line-height: 1.4;
    margin: 0 !important;
    font-family: 'Rajdhani', sans-serif;
}

.plate-card.is-reserved {
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
    border-color: #fecaca;
}
.plate-card.is-reserved:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 20px rgba(220,38,38,.2);
}

/* Reserved banner in modal */
.reserved-banner {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    padding: 14px 16px;
    border-radius: 8px;
    text-align: center;
    margin: 14px 0;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(220,38,38,.3);
}
.reserved-banner .small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    margin-top: 4px;
    opacity: .95;
    text-transform: none;
}
