/* =========================================================
   FRONTEND BASE - Autoplacevi
   Global foundation only
   ========================================================= */

:root {
    --front-bg: #f4f7fb;
    --front-surface: #ffffff;
    --front-surface-soft: #f8fafc;
    --front-border: #e2e8f0;

    --front-text: #0f172a;
    --front-muted: #64748b;

    --front-primary: #0f172a;
    --front-primary-dark: #020617;
    --front-primary-soft: #f8fafc;
    --front-accent: #334155;
    --front-dark: #07111f;

    --front-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);

    --front-radius-xl: 28px;
    --front-radius-lg: 20px;
    --front-radius-md: 14px;

    --front-container: 100%;
    --front-gutter: clamp(16px, 3vw, 48px);
}

/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: var(--front-text);
    background: var(--front-bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* =========================================================
   GLOBAL LAYOUT
   ========================================================= */

.front-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: var(--front-gutter);
    padding-right: var(--front-gutter);
}

.site-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    width: 100%;
    flex: 1;
}

/* =========================================================
   BASIC FORM HELPERS
   ========================================================= */

input,
select,
textarea {
    color: var(--front-text);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* =========================================================
   COMMON EMPTY / PLACEHOLDER SECTIONS
   ========================================================= */

.placeholder-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.placeholder-grid article {
    width: 100%;
    min-height: 220px;
    background: #ffffff;
    border: 1px solid var(--front-border);
    box-shadow: var(--front-shadow);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;
    padding: 28px 0;
    background: var(--front-dark);
    color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-inner strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
}

.footer-inner p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.5;
}

/* =========================================================
   CENTRAL CONFIRM MODAL
   ========================================================= */

body.frontend-modal-open {
    overflow: hidden;
}

.frontend-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(8px);
}

.frontend-modal-backdrop[hidden] {
    display: none !important;
}

.frontend-modal {
    width: min(460px, 100%);
    background: #ffffff;
    border: 1px solid var(--front-border);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    animation: frontendModalIn 0.2s ease-out;
}

.frontend-modal-body {
    padding: 26px;
}

.frontend-modal-kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.frontend-modal h3 {
    margin: 0 0 10px;
    color: var(--front-text);
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.frontend-modal p {
    margin: 0;
    color: var(--front-muted);
    line-height: 1.6;
}

.frontend-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 26px;
    background: #f8fafc;
    border-top: 1px solid var(--front-border);
}

.frontend-modal-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 0;
    font-family: inherit;
    font-weight: 950;
    cursor: pointer;
}

.frontend-modal-btn.is-secondary {
    background: #ffffff;
    color: var(--front-text);
    border: 1px solid var(--front-border);
}

.frontend-modal-btn.is-secondary:hover {
    background: #f8fafc;
}

.frontend-modal-btn.is-danger {
    border: 0;
    background: #dc2626;
    color: #ffffff;
}

.frontend-modal-btn.is-danger:hover {
    background: #b91c1c;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes frontendModalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =========================================================
   ACCESSIBILITY HELPERS
   ========================================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
    .placeholder-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    :root {
        --front-gutter: 16px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .frontend-modal-actions {
        flex-direction: column-reverse;
    }

    .frontend-modal-btn {
        width: 100%;
    }
}
/* =========================================================
   FOOTER - refined layout
   ========================================================= */

.site-footer {
    padding: 0;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .12), transparent 34%),
        var(--front-dark);
}

.footer-inner {
    display: grid;
    gap: 0;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: 32px 0 26px;
}

.footer-brand {
    max-width: 420px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.footer-copy,
.footer-note {
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    font-weight: 800;
}

.footer-note {
    text-align: right;
}

@media (max-width: 760px) {
    .footer-top,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-top {
        padding: 28px 0 20px;
    }

    .footer-note {
        text-align: left;
    }
}

/* =========================================================
   FOOTER - admin controlled layout refinements
   ========================================================= */
.footer-top {
    padding-bottom: 22px;
}

.footer-brand p {
    max-width: 620px;
    margin-top: 8px;
}

.footer-bottom-left {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.footer-bottom .footer-links {
    margin-left: auto;
    justify-content: flex-end;
}

.footer-bottom .footer-note {
    text-align: left;
}

@media (max-width: 760px) {
    .footer-bottom .footer-links {
        margin-left: 0;
        justify-content: flex-start;
    }
}

/* =========================================================
   FOOTER - final bottom menu fix
   Footer meni ostaje u donjoj liniji footera i ide desno na desktopu.
   ========================================================= */
.site-footer .footer-inner {
    display: grid;
    gap: 0;
}

.site-footer .footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: 32px 0 24px;
}

.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.site-footer .footer-bottom-left {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.site-footer .footer-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 16px;
    text-align: right;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.site-footer .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 760px) {
    .site-footer .footer-top,
    .site-footer .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer .footer-links {
        margin-left: 0;
        justify-content: flex-start;
        text-align: left;
    }
}


/* =========================================================
   FOOTER - isolated menu alignment v1.0.4
   Koristi novu klasu .site-footer-links da globalni .footer-links
   stilovi iz drugih CSS fajlova ne mogu pomjerati footer meni.
   ========================================================= */
.site-footer .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.site-footer .footer-top {
    display: block;
    padding: 32px 0 24px;
}

.site-footer .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .10);
}

.site-footer .footer-bottom-left {
    min-width: 0;
}

.site-footer .site-footer-links {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 16px;
    text-align: right;
    margin: 0;
    padding: 0;
}

.site-footer .site-footer-links a {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    text-decoration: none;
}

.site-footer .site-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 760px) {
    .site-footer .footer-bottom {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .site-footer .site-footer-links {
        justify-self: start;
        justify-content: flex-start;
        text-align: left;
    }
}


/* PATCH v1.0.5 - professional icon-only seller verification badges */
.seller-trust-inline.is-icon-only,
.dealer-trust-inline.is-icon-only {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.seller-trust-inline.is-icon-only span,
.dealer-trust-inline.is-icon-only span {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    line-height: 1;
}

.seller-trust-inline.is-icon-only svg,
.dealer-trust-inline.is-icon-only svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.seller-trust-inline.is-icon-only em,
.dealer-trust-inline.is-icon-only em {
    display: none !important;
}

.seller-trust-inline.is-icon-only .is-email,
.dealer-trust-inline.is-icon-only .is-email {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.seller-trust-inline.is-icon-only .is-phone,
.dealer-trust-inline.is-icon-only .is-phone {
    border-color: #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.seller-trust-inline.is-icon-only .is-checked,
.dealer-trust-inline.is-icon-only .is-checked {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.seller-trust-inline.is-icon-only .is-medal,
.dealer-trust-inline.is-icon-only .is-medal {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #475569;
}

.seller-trust-inline.is-icon-only .is-tier-bronze,
.dealer-trust-inline.is-icon-only .is-tier-bronze {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.seller-trust-inline.is-icon-only .is-tier-silver,
.dealer-trust-inline.is-icon-only .is-tier-silver {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #334155;
}

.seller-trust-inline.is-icon-only .is-tier-gold,
.dealer-trust-inline.is-icon-only .is-tier-gold {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.vehicle-seller-trust-box,
.dealer-trust-box,
.seller-profile-trust-panel {
    display: none !important;
}

/* PATCH v1.0.6 - PNG seller trust icons */
.seller-trust-inline.is-icon-only,
.dealer-trust-inline.is-icon-only {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
}

.seller-trust-inline.is-icon-only span,
.dealer-trust-inline.is-icon-only span {
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
    line-height: 1;
}

.seller-trust-inline.is-icon-only .is-checked,
.dealer-trust-inline.is-icon-only .is-checked,
.seller-trust-inline.is-icon-only .is-medal,
.dealer-trust-inline.is-icon-only .is-medal {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
}

.seller-trust-inline.is-icon-only img,
.dealer-trust-inline.is-icon-only img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.seller-trust-inline.is-icon-only svg,
.dealer-trust-inline.is-icon-only svg {
    display: none !important;
}

/* PATCH v1.0.8 - pending trust icon state */
.seller-trust-inline.is-icon-only .is-pending,
.dealer-trust-inline.is-icon-only .is-pending {
    opacity: .45;
    filter: grayscale(1);
}
