/* ==========================================================================
   SeASer Oto Portal - Modern Design System & Component Library
   ========================================================================== */

:root {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-text: #1e40af;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.page-container {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Card */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-padded {
    padding: 1.75rem;
}

.card-header-banner {
    padding: 2.25rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-current {
    color: var(--text-main);
    font-weight: 700;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.9rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.logo-badge {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-btn {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.35rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.nav-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32);
}

.nav-btn-subtle {
    background: var(--bg-subtle);
    color: var(--text-muted);
    box-shadow: none;
    border: 1px solid var(--border);
}

.nav-btn-subtle:hover {
    background: #e2e8f0;
    color: var(--text-main);
    transform: none;
    box-shadow: none;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.badge-blue { background: #eff6ff; color: #1d4ed8; }
.badge-green { background: #f0fdf4; color: #15803d; }
.badge-purple { background: #faf5ff; color: #7e22ce; }
.badge-orange { background: #fff7ed; color: #c2410c; }
.badge-red { background: #fef2f2; color: #b91c1c; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* Grid Layouts */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

/* Car Card Component */
.car-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.car-card-thumb {
    height: 205px;
    background: #e2e8f0;
    overflow: hidden;
    position: relative;
}

.car-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.car-card:hover .car-card-thumb img {
    transform: scale(1.05);
}

.car-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3rem;
}

.car-card-tags-top {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.car-card-badge-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.car-card-body {
    padding: 1.35rem 1.35rem 0.75rem;
    flex: 1;
}

.car-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.car-card-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.car-card-chips {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

.car-card-specs {
    background: var(--bg-subtle);
    padding: 0.85rem 1.35rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-card-specs-grid {
    background: var(--bg-subtle);
    padding: 0.9rem 1.35rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    font-size: 0.88rem;
}

.car-card-specs-grid > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.car-card-actions {
    padding: 1rem 1.35rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

/* Forms & Inputs */
.input-clean {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    background: white;
    color: var(--text-main);
    transition: all 0.2s ease;
    outline: none;
}

.input-clean:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3.5rem 1rem 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-search-form {
    max-width: 680px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.hero-search-input {
    padding: 1.15rem 1.5rem;
    border-radius: 14px;
    padding-right: 7.5rem;
    font-size: 1.05rem;
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.hero-search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    border-radius: 10px;
    padding: 0 1.5rem;
    font-size: 0.95rem;
}

/* Segment Pills Bar */
.segment-bar {
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    background: #ffffff;
    border-radius: var(--radius-md);
}

.segment-bar-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.segment-pills-wrap {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.segment-pill {
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #f1f5f9;
    color: #475569;
}

.segment-pill.active, .segment-pill:hover {
    background: var(--primary);
    color: white;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: auto;
    padding: 4rem 0 2rem;
    border-top: 1px solid #1e293b;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer h4 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 2.1rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .card-header-banner { flex-direction: column; align-items: flex-start; }
    .car-grid { grid-template-columns: 1fr; }
}
