/* ============================================================ */
/* Marketplace Premium - High-End SaaS Design System           */
/* ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Sophisticated Dark */
    --bg-base: #080808;
    --bg-surface: #111111;
    --bg-elevated: #1A1A1A;
    
    /* Accents - Neon Blue / Indigo */
    --primary: #00A3FF; 
    --primary-glow: rgba(0, 163, 255, 0.4);
    --secondary: #7000FF;
    
    /* UI States */
    --text-main: #FFFFFF;
    --text-dim: #A1A1AA;
    --text-muted: #52525B;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    /* Effects */
    --glass: rgba(17, 17, 17, 0.7);
    --blur: blur(12px);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.8);
    --transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
    --radius: 20px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* Floating Navigation */
header nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    z-index: 2000;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 40px;
    background: var(--glass);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover { color: #fff; }

/* Bento Layout System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 20px;
    padding: 20px 0;
}

.bento-item {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-lg);
}

.bento-item.large { grid-column: span 2; grid-row: span 2; }
.bento-item.medium { grid-column: span 2; }

/* Buttons - Premium Style */
.btn {
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section - SaaS Style */
.hero {
    min-height: 100vh;
    padding: 160px 5% 80px;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(0, 163, 255, 0.08), transparent 40%),
                radial-gradient(circle at bottom left, rgba(112, 0, 255, 0.05), transparent 40%);
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #FFFFFF, #71717A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 40px;
}

/* Cards & Content */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 20px;
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 16px;
    transition: var(--transition);
}

.product-card:hover { border-color: var(--primary); }

.product-img {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    object-fit: cover;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 4px 10px;
    border-radius: 6px;
}

/* Marketplace Tables */
.table-container {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
}

.marketplace-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.marketplace-table th {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.marketplace-table td {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    vertical-align: middle;
}

.marketplace-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.user-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-row img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.user-row .name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.user-row .meta {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Badges */
.badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-primary {
    background: rgba(0, 163, 255, 0.1);
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .table-container { overflow-x: auto; }
}
