/* Minimal Landing Page Design */

/* Layout */
.landing-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 4rem;
    background: radial-gradient(circle at top, #ffffff 0%, #f4f6fb 55%, #e8edf5 100%);
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.dark .landing-container {
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    color: #f1f5f9;
}

/* Header Section */
.landing-header {
    margin-bottom: 2rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.landing-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: #111827;
    letter-spacing: -0.03em;
}

.dark .landing-title {
    color: #f8fafc;
}

.landing-subtitle {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
}

.dark .landing-subtitle {
    color: #cbd5e1;
}

/* ... existing badge styles ... */
.parts-counter-badge {
    display: inline-block;
    background-color: #e0e7ff;
    color: #4338ca;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.dark .parts-counter-badge {
    background-color: #312e81;
    color: #c7d2fe;
}

/* Search Box - The Centerpiece */

/* Hero search grid */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    align-items: stretch;
}

.partner-column {
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
}

.dark .partner-column {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.2);
}

.partner-eyebrow {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #94a3b8;
}

.partner-tile {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    color: #1f2937;
}

.dark .partner-tile {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.search-stack {
    background: white;
    padding: 2rem;
    border-radius: 32px;
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.12);
    text-align: left;
}

.dark .search-stack {
    background: #0f172a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.search-eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: #a5b4fc;
    margin-bottom: 0.5rem;
}

.search-headline {
    font-size: 1.85rem;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 0.4rem 0;
}

.dark .search-headline {
    color: #f8fafc;
}

.search-copy {
    color: #475569;
    margin-bottom: 1.5rem;
}

.dark .search-copy {
    color: #cbd5e1;
}

.origin-toggle {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.origin-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.origin-option input {
    accent-color: #4338ca;
}

.dark .origin-option {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
}

.dark .origin-option input {
    accent-color: #a5b4fc;
}

.origin-option--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.origin-hint {
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.dark .origin-hint {
    color: #cbd5e1;
}

.origin-hint--auth {
    color: #475569;
    margin-top: 0.25rem;
}

.dark .origin-hint--auth {
    color: #e2e8f0;
}

.search-card {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 1.5rem;
}

.dark .search-card {
    background: #101a32;
    border-color: rgba(148, 163, 184, 0.2);
}

.search-pill-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pill-field {
    background: white;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #475569;
}

.pill-field select,
.pill-field input {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    padding: 0;
}

.pill-field select:focus,
.pill-field input:focus {
    outline: none;
}

.search-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.form-field input {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    background: white;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-search-primary,
.btn-clear-secondary {
    flex: 1;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-search-primary {
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    color: white;
    box-shadow: 0 12px 20px rgba(99, 102, 241, 0.35);
}

.btn-search-primary:hover {
    transform: translateY(-2px);
}

.btn-clear-secondary {
    background: transparent;
    border: 1px solid rgba(71, 85, 105, 0.3);
    color: #475569;
}

.btn-clear-secondary:hover {
    border-color: #0f172a;
    color: #0f172a;
}

/* Action Area (Dashboard/Login) */
.action-area {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-action-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: #0f172a;
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.1s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark .btn-action-primary {
    background-color: #3b82f6;
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-action-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: white;
    color: #0f172a;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}

.dark .btn-action-secondary {
    background-color: transparent;
    border-color: #475569;
    color: #e2e8f0;
}

.btn-action-secondary:hover {
    background-color: #f8fafc;
}

.dark .btn-action-secondary:hover {
    background-color: #1e293b;
}

/* Results Section Placeholder */
.results-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-top: 3rem;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.results-header p {
    color: #64748b;
}

.landing-results-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
    align-items: center;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dark .result-card {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.result-card--near {
    border: 1px solid #c7d2fe;
    box-shadow: 0 18px 45px rgba(99, 102, 241, 0.25);
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.9), rgba(255, 255, 255, 0.95));
}

.result-card--region {
    border: 1px solid #bae6fd;
    box-shadow: 0 18px 45px rgba(14, 165, 233, 0.2);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(255, 255, 255, 0.95));
}

.dark .result-card--near,
.dark .result-card--region {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(99, 102, 241, 0.5);
}

.result-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.result-top-stack {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.region-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.15);
    color: #0369a1;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.region-badge--primary {
    background: rgba(99, 102, 241, 0.15);
    color: #4c1d95;
}

.dark .region-badge {
    background: rgba(56, 189, 248, 0.2);
    color: #bae6fd;
}

.dark .region-badge--primary {
    background: rgba(129, 140, 248, 0.25);
    color: #e0e7ff;
}

.result-media {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-body h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #111827;
}

.result-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #475569;
}

.result-meta span {
    display: block;
}

.result-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.result-info-stack {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 180px;
}

.quantity-pill {
    background: #e0e7ff;
    color: #312e81;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.price-pill {
    background: #ecfccb;
    color: #365314;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.price-pill--muted {
    background: rgba(15, 23, 42, 0.08);
    color: #475569;
}

.btn-message {
    background: #0f172a;
    color: white;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-outline {
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
}

.owner-pill {
    font-size: 0.8rem;
    color: #94a3b8;
}

.owner-pill--seller {
    color: #475569;
}

.owner-pill--location {
    color: #0369a1;
}

@media (max-width: 768px) {
    .search-stack {
        padding: 1.5rem;
    }

    .result-card {
        grid-template-columns: 1fr;
    }

    .result-media {
        height: 220px;
    }
}

