/* RideHub Public UI — Landing, Auth & Guest Pages */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body.pub-body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ─── Navbar ─── */
.pub-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.pub-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: #0f172a !important;
    letter-spacing: -0.02em;
}

.pub-navbar .navbar-brand span { color: #4f46e5; }

.pub-brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
}

.pub-navbar .nav-link {
    color: #64748b !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.pub-navbar .nav-link:hover,
.pub-navbar .nav-link.active {
    color: #4f46e5 !important;
    background: #eef2ff;
}

.pub-btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff !important;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
    transition: all 0.2s;
}

.pub-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
    color: #fff !important;
}

.pub-btn-outline {
    border: 1px solid #e2e8f0;
    color: #1e293b !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s;
}

.pub-btn-outline:hover {
    border-color: #4f46e5;
    color: #4f46e5 !important;
}

/* ─── Hero ─── */
.pub-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 100%);
    color: #fff;
    padding: 5.5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.pub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.pub-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pub-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.pub-hero h1 .highlight {
    background: linear-gradient(135deg, #a5b4fc, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pub-hero-lead {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 520px;
    line-height: 1.7;
}

.pub-hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pub-hero-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #06b6d4;
}

.pub-hero-stat-label {
    font-size: 0.75rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pub-hero-img {
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

/* ─── Page Hero (inner pages) ─── */
.pub-page-hero {
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    padding: 3rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0;
}

.pub-page-hero-sm { padding: 2rem 0; }

.pub-page-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.pub-page-hero p {
    color: #64748b;
    margin: 0.5rem 0 0;
}

.pub-filter-bar {
    margin-top: 1.5rem;
}

/* ─── Features ─── */
.pub-section {
    padding: 5rem 0;
}

.pub-section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.pub-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.25s;
}

.pub-feature-card:hover {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
    border-color: transparent;
}

.pub-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

/* ─── CTA ─── */
.pub-cta {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    color: #fff;
}

/* ─── Footer ─── */
.pub-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 1.5rem;
}

.pub-footer h5 {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.pub-footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.pub-footer a:hover { color: #06b6d4; }

.pub-footer-links li { margin-bottom: 0.6rem; }

/* ─── Auth Split Layout ─── */
.pub-auth-page {
    min-height: 100vh;
    display: flex;
}

.pub-auth-visual {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.pub-auth-visual::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79,70,229,0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.pub-auth-visual h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.pub-auth-visual p {
    opacity: 0.85;
    font-size: 1.05rem;
    max-width: 400px;
    position: relative;
}

.pub-auth-visual-features {
    margin-top: 2.5rem;
    position: relative;
}

.pub-auth-visual-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.pub-auth-visual-features i {
    color: #06b6d4;
}

.pub-auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f8fafc;
    max-width: 560px;
}

.pub-auth-card {
    width: 100%;
    max-width: 420px;
}

.pub-auth-card h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.pub-auth-card .subtitle {
    color: #64748b;
    margin-bottom: 2rem;
}

.pub-auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

.pub-auth-divider::before,
.pub-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* ─── Alerts (public) ─── */
.pub-alerts {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 1050;
    max-width: 380px;
}

@media (max-width: 991px) {
    .pub-auth-visual { display: none; }
    .pub-auth-form-side { max-width: 100%; }
}

@media (max-width: 576px) {
    .pub-hero { padding: 3.5rem 0 4rem; }
    .pub-section { padding: 3rem 0; }
}
