:root {
    --bg-body: #020617;
    --bg-card: #ffffff;
    --bg-hero: radial-gradient(circle at top left, #38bdf8 0, #020617 60%);
    --blue-main: #0ea5e9;
    --blue-dark: #0369a1;
    --blue-soft: #e0f2fe;
    --yellow-main: #fbbf24;
    --yellow-soft: #fef3c7;
    --text-main: #0f172a;
    --text-soft: #64748b;
    --border-soft: #e5e7eb;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.14);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 999px;
    --transition-fast: 180ms ease-out;
    --transition-slow: 260ms ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #e5e7eb;
    background: radial-gradient(circle at top, #0f172a 0, #020617 55%, #000 100%);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--blue-main);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-main {
    flex: 1 0 auto;
    padding: 32px 16px 48px;
}

.site-footer {
    flex-shrink: 0;
    border-top: 1px solid #0f172a;
    background: linear-gradient(to right, #020617, #020617, #020617);
    color: #9ca3af;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: linear-gradient(to bottom, rgba(15,23,42,0.95), rgba(15,23,42,0.9), transparent);
    border-bottom: 1px solid rgba(148,163,184,0.2);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(56,189,248,0.6);
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
}

.brand-sub {
    font-size: 12px;
    color: #9ca3af;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.main-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: #e5e7eb;
    border: 1px solid transparent;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.main-nav a:hover {
    background: rgba(15,23,42,0.7);
    border-color: rgba(148,163,184,0.5);
    transform: translateY(-1px);
}

.main-nav a.active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #0b1120;
    font-weight: 600;
}

.nav-admin {
    background: #111827;
    border-color: #1f2937;
}

.nav-login {
    background: #1f2937;
}

/* HERO */

.hero {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 40px 40px 60px;
    border-radius: 32px;
    background: var(--bg-hero);
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 28px;
    box-shadow: 0 40px 80px rgba(15,23,42,0.7);
}

.hero-text h1 {
    font-size: 36px;
    line-height: 1.15;
    margin: 0 0 12px;
}

.hero-text h1 span {
    color: var(--blue-main);
}

.hero-text p {
    margin: 0 0 18px;
    color: #cbd5f5;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-card {
    background: rgba(15,23,42,0.9);
    border-radius: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 18px 40px rgba(15,23,42,0.85);
    font-size: 14px;
}

.hero-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

/* PAGE WRAPPER STYLES */

.page {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 24px 28px 28px;
    border-radius: 28px;
    background: rgba(15,23,42,0.85);
    box-shadow: 0 24px 60px rgba(15,23,42,0.75);
}

.page h1 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 26px;
}

/* Light blue theme for vehicles */

.page-light-blue {
    background: linear-gradient(135deg, #f9fafb, #e0f2fe);
    color: var(--text-main);
}

.page-light-blue h1,
.page-light-blue h2,
.page-light-blue h3 {
    color: #0f172a;
}

/* Light yellow theme for machines */

.page-light-yellow {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #1f2937;
}

.page-light-yellow h1,
.page-light-yellow h2,
.page-light-yellow h3 {
    color: #1f2937;
}

/* CONTACT PAGE */

.page-contact .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.8fr);
    gap: 24px;
}

.map-wrapper {
    margin-top: 14px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    box-shadow: var(--shadow-soft);
}

.map-wrapper iframe {
    border: 0;
    width: 100%;
    height: 260px;
}

/* FORMS & BUTTONS */

.form-group {
    margin-bottom: 14px;
    font-size: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: inherit;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #ffffff;
    color: var(--text-main);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue-main);
    box-shadow: 0 0 0 1px rgba(14,165,233,0.25);
    transform: translateY(-1px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn-main {
    background: var(--blue-main);
    color: #0b1120;
    box-shadow: 0 12px 30px rgba(14,165,233,0.55);
}

.btn-main:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(14,165,233,0.6);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background: #e5f1ff;
    border-color: var(--blue-main);
    transform: translateY(-1px);
}

.btn-secondary.yellow {
    background: #ffffff;
    border-color: var(--yellow-main);
    color: #92400e;
}

.btn-secondary.yellow:hover {
    background: #fef3c7;
}

.btn-danger {
    background: #dc2626;
    color: #fef2f2;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn.small {
    padding: 6px 14px;
    font-size: 13px;
}

/* BADGES */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-red {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-purple {
    background: #ede9fe;
    color: #6d28d9;
}

/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-body {
    padding: 14px 16px 16px;
}

.card-media img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.placeholder-img {
    width: 100%;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 13px;
}

.card-vehicle .card-body h2,
.card-machine .card-body h2 {
    margin: 0 0 4px;
    font-size: 17px;
}

.card-category {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--text-soft);
}

.card-price {
    margin: 0 0 4px;
    font-weight: 600;
    font-size: 15px;
}

.card-meta {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--text-soft);
}

.card-status {
    margin: 4px 0 8px;
    font-size: 12px;
}

/* hover effekt */

.hover-raise {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.hover-raise:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(15,23,42,0.40);
    border-color: rgba(14,165,233,0.45);
}

/* DETAIL PAGE */

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr);
    gap: 22px;
}

.detail-main-image img {
    width: 100%;
    height: 320px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.detail-thumbs {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.thumb-button {
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.thumb-button img {
    width: 70px;
    height: 58px;
    object-fit: cover;
    display: block;
}

.thumb-button:hover {
    border-color: var(--blue-main);
    transform: translateY(-1px);
}

.detail-info h1 {
    margin-top: 0;
    margin-bottom: 4px;
}

.detail-category {
    margin: 0 0 10px;
    color: var(--text-soft);
    font-size: 13px;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.detail-price {
    margin: 0 0 8px;
}

.detail-meta {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text-soft);
}

.detail-list {
    padding-left: 18px;
    font-size: 13px;
}

/* FILTERS */

.filter-form {
    padding: 14px 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.85);
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(148,163,184,0.3);
    margin-bottom: 12px;
}

.page-light-yellow .filter-form {
    background: #fffbeb;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px 16px;
}

.filter-extras {
    margin-top: 10px;
    border-radius: 14px;
    border: 1px dashed #d1d5db;
    padding: 8px 10px;
    background: #f9fafb;
    font-size: 13px;
}

.filter-extras summary {
    cursor: pointer;
    font-weight: 500;
    outline: none;
}

.extras-grid {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 12px;
}

.checkbox-pill input {
    width: auto;
}

.filter-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

/* ADMIN */

.page-admin {
    background: linear-gradient(135deg, #020617, #020617);
    color: #e5e7eb;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-box {
    border-radius: 20px;
    background: #020617;
    border: 1px solid #1f2937;
    padding: 12px 16px 14px;
    margin-bottom: 18px;
}

.admin-box summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 8px;
}

.admin-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px 18px;
}

.cards-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.cards-admin .card {
    background: #020617;
    border-color: #1f2937;
    color: #e5e7eb;
    text-decoration: none;
    padding: 14px 16px;
}

.cards-admin .card h2 {
    margin: 0 0 6px;
    font-size: 17px;
}

.cards-admin .card p {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

.admin-list-cards .card-admin-item {
    background: #020617;
    border-color: #1f2937;
    color: #e5e7eb;
}

.card-actions {
    padding: 0 16px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* SIMPLE LIST */

.page-narrow {
    max-width: 720px;
}

.simple-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
    font-size: 14px;
}

.simple-list li {
    padding: 6px 0;
    border-bottom: 1px solid #1f2937;
}

/* ALERT */

.alert {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

/* UTIL */

.empty {
    font-size: 14px;
    color: var(--text-soft);
}

.back-link {
    font-size: 13px;
    margin-bottom: 8px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 28px 22px 34px;
    }
    .site-main {
        padding: 20px 12px 40px;
    }
    .page {
        padding: 20px 18px 22px;
    }
    .detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .page-contact .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .site-header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
