/* ═══════════════════════════════════════════════════════════════
   eAvtobozor Premium Portal & Marketplace Styles
   ═══════════════════════════════════════════════════════════════ */

/* Global container & Portal resets */
.portal-landing-body {
    background-color: var(--bg-color, #0f172a);
    color: var(--text-color, #f8fafc);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.portal-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.portal-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .portal-header {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.portal-nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.portal-logo:hover {
    transform: translateY(-1px);
}

.portal-logo .logo-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
}

.portal-logo:hover .logo-icon-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.portal-logo .logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
}

.portal-logo .logo-accent {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

[data-theme="light"] .portal-logo .logo-text {
    color: #0f172a;
}

[data-theme="light"] .portal-logo .logo-accent {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.portal-nav-links .nav-item {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.85rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-nav-links .nav-item i {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.48);
    transition: color 0.2s ease, transform 0.2s ease;
}

.portal-nav-links .nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.portal-nav-links .nav-item:hover i {
    color: #38bdf8;
    transform: scale(1.1);
}

[data-theme="light"] .portal-nav-links .nav-item {
    color: rgba(15, 23, 42, 0.72);
}

[data-theme="light"] .portal-nav-links .nav-item i {
    color: rgba(15, 23, 42, 0.45);
}

[data-theme="light"] .portal-nav-links .nav-item:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .portal-nav-links .nav-item:hover i {
    color: #2563eb;
}

.portal-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-portal-ghost {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    border-radius: 10px;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="light"] .btn-portal-ghost {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
}

.btn-portal-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
    color: #ffffff;
}

[data-theme="light"] .btn-portal-ghost:hover {
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.2);
    color: #0f172a;
}

.btn-portal-primary {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-portal-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    color: #fff;
}

/* Hero Section */
.portal-hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    overflow: hidden;
}
.hero-glow-bg {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 450px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(37, 99, 235, 0.08) 50%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}
.hero-tagline {
    margin-bottom: 1.2rem;
}
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 9999px;
    color: #38bdf8;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-main-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .hero-main-title {
    background: linear-gradient(135deg, #0f172a 30%, #334155 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-lead {
    font-size: 1.15rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 auto 2.5rem;
    max-width: 720px;
}
[data-theme="light"] .hero-lead {
    color: #64748b;
}

/* Quick Search Bento */
.hero-search-bento {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: left;
}
[data-theme="light"] .hero-search-bento {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}
.search-bento-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: flex-end;
}

.search-input-universal {
    min-width: 0;
}
.search-input-col label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
[data-theme="light"] .search-input-col label {
    color: #475569;
}
.search-input-col select,
.search-input-col input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f8fafc;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s ease;
}
[data-theme="light"] .search-input-col select,
[data-theme="light"] .search-input-col input {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}
.search-input-col select:focus,
.search-input-col input:focus {
    border-color: #38bdf8;
}
.btn-search-hero {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #fff;
    border: none;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 48px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: all 0.2s;
}
.btn-search-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

/* Stats Bar */
.portal-stats-bar {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(15, 23, 42, 0.4);
}
[data-theme="light"] .portal-stats-bar {
    background: rgba(241, 245, 249, 0.7);
    border-color: rgba(0, 0, 0, 0.05);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.2rem;
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #f8fafc;
}
[data-theme="light"] .stat-num {
    color: #0f172a;
}
.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Section Shared */
.portal-section {
    padding: 4.5rem 0;
}
.bg-contrast {
    background: rgba(15, 23, 42, 0.6);
}
[data-theme="light"] .bg-contrast {
    background: #f8fafc;
}
.sub-heading {
    display: inline-block;
    color: #38bdf8;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}
.section-title {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #f8fafc;
    margin: 0;
}
[data-theme="light"] .section-title {
    color: #0f172a;
}
.section-desc {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0.8rem auto 0;
}
.section-header-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}
.link-see-all {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease;
}
.link-see-all:hover {
    gap: 0.7rem;
}
.section-center-head {
    text-align: center;
    margin-bottom: 3.5rem;
}

/* Pillars Trio Grid */
.pillars-trio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.pillar-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.2rem 2rem;
    transition: all 0.3s ease;
}
[data-theme="light"] .pillar-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
.pillar-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.pillar-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(37, 99, 235, 0.2));
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}
.pillar-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 0.8rem;
}
[data-theme="light"] .pillar-card h3 {
    color: #0f172a;
}
.pillar-card p {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}
.pillar-link {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Footer */
.portal-footer {
    background: #090d16;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 0 0;
    color: #94a3b8;
}
[data-theme="light"] .portal-footer {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #64748b;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
}
.footer-about {
    margin-top: 1rem;
    max-width: 380px;
    line-height: 1.6;
    font-size: 0.95rem;
}
.footer-col h4 {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1.2rem;
}
[data-theme="light"] .footer-col h4 {
    color: #0f172a;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 0.7rem;
}
.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.footer-col ul li a:hover {
    color: #38bdf8;
}
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    font-size: 0.85rem;
}
[data-theme="light"] .footer-bottom-bar {
    border-color: #e2e8f0;
}

/* Responsive */
@media (max-width: 992px) {
    .search-bento-form {
        grid-template-columns: 1fr 1fr;
    }
    .search-btn-col {
        grid-column: auto;
    }
    .btn-search-hero {
        width: 100%;
        justify-content: center;
    }
    .hero-main-title {
        font-size: 2.2rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
@media (max-width: 640px) {
    .search-bento-form {
        grid-template-columns: 1fr;
    }
    .search-btn-col {
        grid-column: span 1;
    }
    .portal-nav-links {
        display: none;
    }
}

/* Empty Showcase Banner Styles */
.empty-showcase-premium {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.empty-showcase-premium h3 {
    color: #f8fafc;
}
.empty-showcase-premium p {
    color: #94a3b8;
}
[data-theme="light"] .empty-showcase-premium {
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="light"] .empty-showcase-premium h3 {
    color: #0f172a !important;
}
[data-theme="light"] .empty-showcase-premium p {
    color: #475569 !important;
}
