/* NobleMart Main Stylesheet */

/* CSS Variables */
:root {
    --primary: #01c2ca;
    --secondary: #5C1BE8;
    --federal-blue: #313133;
    --robin-egg: #01C2CA;
    --background-light: #f5f8f8;
    --background-dark: #0f2223;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--slate-900);
    background-color: white;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: var(--slate-50);
}

/* Forms */
.premium-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

.premium-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.premium-textarea {
    min-height: 120px;
    resize: vertical;
}

.field-group {
    margin-bottom: 1.25rem;
}

.field-label {
    display: block;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Logo */
.logo-img {
    height: 4rem;
    width: auto;
    object-fit: contain;
}

/* Premium Container (Split Screen) */
.premium-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .premium-container {
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: none;
    }

    .full-width-mobile {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: none !important;
    }

    .carousel-mobile {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 0.5rem !important;
        padding: 0.5rem 1rem !important;
        scrollbar-width: none !important;
    }

    .carousel-mobile::-webkit-scrollbar {
        display: none !important;
    }

    .carousel-mobile>* {
        flex: 0 0 160px !important;
        scroll-snap-align: start !important;
    }
}

/* Hero Side */
.hero-side {
    position: relative;
    background: var(--federal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 500px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Form Side */
.form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--slate-50);
}

.form-container {
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.logo-wrapper {
    text-align: center;
    margin-bottom: 2rem;
}

.header-meta {
    text-align: center;
    margin-bottom: 2rem;
}

.header-meta h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.header-meta p {
    color: var(--slate-500);
    font-size: 0.95rem;
}

/* Progress Steps */
.progress-wrapper {
    margin-bottom: 2rem;
}

.progress-steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-bar-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s;
    z-index: 0;
}

.step-dot {
    position: relative;
    z-index: 1;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--slate-400);
    transition: all 0.3s;
}

.step-dot.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(30, 64, 175, 0.1);
}

.step-label {
    position: absolute;
    bottom: -1.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Step Container */
.step-container {
    display: none;
}

.step-container.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Actions */
.step-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* File Upload */
.file-upload-wrapper {
    border: 2px dashed var(--slate-300);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: rgba(30, 64, 175, 0.02);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 3rem;
    color: var(--slate-400);
    display: block;
    margin-bottom: 0.5rem;
}

.upload-text {
    color: var(--slate-600);
    font-weight: 500;
}

.preview-container {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    align-items: center;
    gap: 1rem;
}

.preview-container.active {
    display: flex;
}

.preview-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.preview-info {
    flex: 1;
}

.preview-name {
    font-weight: 600;
    color: var(--slate-700);
}

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
}

/* Join Badge */
.join-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.avatar-stack {
    display: flex;
}

.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -0.5rem;
}

.avatar:first-child {
    margin-left: 0;
}

/* Category Nav Bar */
.category-nav-bar {
    background: white;
    border-bottom: 1px solid var(--slate-200);
    padding: 0.75rem 0;
    overflow-x: auto;
    white-space: nowrap;
}

.category-nav-bar .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.cat-link {
    text-decoration: none;
    color: var(--slate-600);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.cat-link:hover {
    color: var(--primary);
}

.cat-link .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Search Bar */
.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-bar {
    background: white;
    border-radius: 3rem;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    font-size: 1rem;
    outline: none;
    color: var(--slate-800);
}

.search-icon {
    color: var(--slate-400);
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #1e3a8a;
}

/* Mobile Visibility Utilities */
.hide-on-marketplace {
    display: none !important;
}

/* FOUC Shield */
html {
    opacity: 0;
}

html.fouc-ready {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out both;
}

/* Loading Shimmer Placeholder */
.loading-shimmer {
    color: var(--slate-300);
    font-style: italic;
}