/*
|--------------------------------------------------------------------------
| Royal Servicess LLC
| Vehicle Media System
|--------------------------------------------------------------------------
*/

.vehicle-media {
    position: relative;

    overflow: hidden;

    width: 100%;

    aspect-ratio: 16 / 10;

    border:
        1px solid rgba(192, 192, 192, 0.12);

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0.01)
        ),
        rgba(12, 12, 14, 0.90);
}

.vehicle-media__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.vehicle-media__placeholder {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    padding: 24px;

    background:
        radial-gradient(
            circle at 50% 25%,
            rgba(212, 175, 55, 0.11),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.025),
            rgba(0, 0, 0, 0.08)
        );

    align-items: center;
    justify-content: center;

    text-align: center;
}

.vehicle-media__placeholder-mark {
    display: inline-flex;

    width: 54px;
    height: 54px;

    margin-bottom: 13px;

    border:
        1px solid rgba(212, 175, 55, 0.35);

    border-radius: 50%;

    background:
        rgba(212, 175, 55, 0.055);

    color: var(--gold-200);

    align-items: center;
    justify-content: center;

    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

.vehicle-media__placeholder-name {
    color: var(--silver-100);

    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 650;
}

.vehicle-media__placeholder-copy {
    margin-top: 5px;

    color: var(--silver-500);

    font-size: 0.76rem;
}


/*
|--------------------------------------------------------------------------
| Administration
|--------------------------------------------------------------------------
*/

.vehicle-media-admin-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.vehicle-media-admin-card {
    overflow: hidden;

    border:
        1px solid rgba(192, 192, 192, 0.12);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.036),
            rgba(255, 255, 255, 0.012)
        ),
        rgba(16, 16, 18, 0.80);
}

.vehicle-media-admin-card__preview {
    padding: 16px 16px 0;
}

.vehicle-media-admin-card__body {
    padding: 20px;
}

.vehicle-media-admin-card__header {
    display: flex;
    gap: 15px;

    margin-bottom: 17px;

    align-items: flex-start;
    justify-content: space-between;
}

.vehicle-media-admin-card__header h3 {
    margin: 0 0 4px;

    color: var(--silver-100);

    font-family: var(--font-heading);
}

.vehicle-media-admin-card__header p {
    margin: 0;

    color: var(--silver-500);

    font-size: 0.8rem;
}

.vehicle-image-upload {
    display: grid;
    gap: 13px;
}

.vehicle-image-upload input[type="file"] {
    width: 100%;

    border:
        1px solid rgba(192, 192, 192, 0.14);

    border-radius: 12px;

    padding: 11px;

    background:
        rgba(255, 255, 255, 0.025);

    color: var(--silver-300);
}

.vehicle-image-upload__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vehicle-image-rules {
    margin: 0;

    color: var(--silver-500);

    font-size: 0.78rem;
    line-height: 1.5;
}

.vehicle-media-admin-alert {
    margin-bottom: 22px;

    border:
        1px solid rgba(212, 175, 55, 0.18);

    border-radius: 14px;

    padding: 16px 18px;

    background:
        rgba(212, 175, 55, 0.04);

    color: var(--silver-300);

    line-height: 1.55;
}

.vehicle-media-admin-alert strong {
    color: var(--gold-100);
}

@media (max-width: 850px) {
    .vehicle-media-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .vehicle-image-upload__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .vehicle-image-upload__actions .button {
        width: 100%;

        justify-content: center;
    }
}
