:root {
    --background: 255 255 255;
    --foreground: 15 23 42;
    --card: 248 250 252;
    --card-foreground: 15 23 42;
    --primary: 120 119 198;
    --primary-foreground: 255 255 255;
    --secondary: 241 245 249;
    --secondary-foreground: 15 23 42;
    --muted: 248 250 252;
    --muted-foreground: 100 116 139;
    --accent: 255 193 7;
    --accent-foreground: 15 23 42;
    --border: 226 232 240;
    --input: 248 250 252;
    --ring: 120 119 198;
    --radius: 0.5rem;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: rgb(var(--background));
    color: rgb(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.marketplace-header {
    border-bottom: 1px solid rgb(var(--border));
    background-color: rgb(var(--card) / 0.5);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgb(var(--foreground));
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--accent)));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    animation: pulse 2s infinite;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--accent)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: rgb(var(--muted-foreground));
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
}

    .nav-link:hover,
    .nav-link.active {
        color: rgb(var(--primary));
        transform: scale(1.05);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background-color: rgb(var(--primary));
        transition: width 0.3s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.header-actions .btn {
    flex: 0 0 auto;
    min-width: max-content;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.language-dropdown {
    position: relative;
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 12rem;
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgb(0 0 0 / 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    padding: 0.5rem;
}

.language-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: background-color 0.15s ease;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgb(var(--foreground));
}

.language-option:hover {
    background: rgb(var(--muted));
}

.language-option.active {
    background: rgb(var(--primary) / 0.1);
    color: rgb(var(--primary));
}

.flag-icon {
    font-size: 1.125rem;
    line-height: 1;
}

.language-name {
    font-weight: 500;
}

.language-code {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
}

/* Currency Switcher */
.currency-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.currency-dropdown {
    position: relative;
}

.currency-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 11rem;
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgb(0 0 0 / 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    padding: 0.5rem;
    margin-top: 0.25rem;
}

.currency-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: background-color 0.15s ease;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgb(var(--foreground));
}

.currency-option:hover {
    background: rgb(var(--muted));
}

.currency-option.active {
    background: rgb(var(--primary) / 0.1);
    color: rgb(var(--primary));
}

.currency-code {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
}

.currency-symbol {
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

/* Ensure currency dropdown is properly positioned */
.language-switcher + .currency-switcher {
    margin-left: 0.5rem;
}

/* Feature Highlights */
.feature-highlights {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.25rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgb(255 255 255 / 0.78);
}

.feature-icon {
    width: 0.9rem;
    height: 0.9rem;
    color: rgb(255 255 255 / 0.7);
    flex-shrink: 0;
}

.feature-label {
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .feature-highlights {
        gap: 1rem;
        justify-content: center;
    }
    
    .feature-label {
        font-size: 0.75rem;
    }
    
    .feature-icon {
        width: 0.875rem;
        height: 0.875rem;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
    white-space: nowrap;
}

    .btn:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgb(var(--ring) / 0.2);
    }

.btn-primary {
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--accent)));
    color: rgb(var(--primary-foreground));
    border: none;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 25px rgb(var(--primary) / 0.3);
    }

.btn-ghost {
    background-color: transparent;
    color: rgb(var(--foreground));
    border: none;
}

    .btn-ghost:hover {
        background-color: rgb(var(--muted));
    }

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    height: 2rem;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: rgb(var(--foreground));
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Social Navigation Enhancements */
.social-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: rgb(var(--accent));
    color: rgb(var(--accent-foreground));
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgb(var(--background));
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: relative;
}

.notifications-dropdown-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.notifications-dropdown.active .notifications-dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgb(var(--border));
}

.notifications-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: rgb(var(--foreground));
    margin: 0;
}

.mark-all-read {
    background: none;
    border: none;
    color: rgb(var(--primary));
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.mark-all-read:hover {
    background: rgb(var(--muted));
}

.notifications-list {
    padding: 0.5rem;
}

.empty-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    color: rgb(var(--muted-foreground));
    text-align: center;
}

.empty-notifications i {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
}

/* User Menu Enhancements */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgb(var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgb(var(--card));
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 100;
    display: none;
    padding: 0.5rem 0;
}

.user-menu.active .user-menu-dropdown {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgb(var(--foreground));
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgb(var(--muted));
}

.dropdown-item i {
    width: 1rem;
    height: 1rem;
    color: rgb(var(--muted-foreground));
}

.dropdown-divider {
    height: 1px;
    background: rgb(var(--border));
    margin: 0.5rem 0;
    border: none;
}

.logout-item {
    color: rgb(220 38 38);
}

.logout-item:hover {
    background: rgb(220 38 38 / 0.1);
}

/* Notification Items */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    background: rgb(var(--muted) / 0.5);
}

.notification-item.unread {
    background: rgb(var(--primary) / 0.05);
}

.notification-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: 0.875rem;
    color: rgb(var(--foreground));
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: rgb(var(--muted-foreground));
}

.unread-indicator {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 0.5rem;
    background: rgb(var(--primary));
    border-radius: 50%;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgb(var(--card));
    color: rgb(var(--foreground));
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    border-left: 4px solid rgb(34 197 94);
}

.toast-notification.error {
    border-left: 4px solid rgb(239 68 68);
}

.toast-notification.warning {
    border-left: 4px solid rgb(245 158 11);
}

.toast-notification.info {
    border-left: 4px solid rgb(var(--primary));
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.toast-notification.success .toast-icon {
    color: rgb(34 197 94);
}

.toast-notification.error .toast-icon {
    color: rgb(239 68 68);
}

.toast-notification.warning .toast-icon {
    color: rgb(245 158 11);
}

.toast-notification.info .toast-icon {
    color: rgb(var(--primary));
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .social-actions {
        gap: 0.25rem;
    }
    
    .notifications-dropdown-content,
    .user-menu-dropdown {
        width: 280px;
        right: -50px;
    }
    
    .user-name {
        display: none;
    }
    
    .toast-notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(var(--background));
    z-index: 100;
    padding: 2rem 1rem;
}

    .mobile-menu.active {
        display: block;
    }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgb(var(--foreground));
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mobile-nav-link {
    color: rgb(var(--foreground));
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgb(var(--border));
}

/* Footer Styles */
.marketplace-footer {
    background-color: rgb(var(--card));
    border-top: 1px solid rgb(var(--border));
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgb(var(--foreground));
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .footer-links a {
        color: rgb(var(--muted-foreground));
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .footer-links a:hover {
            color: rgb(var(--foreground));
        }

.footer-bottom {
    border-top: 1px solid rgb(var(--border));
    padding-top: 1rem;
    text-align: center;
    color: rgb(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Component utilities to match shadcn/ui */
.card {
    border-radius: 0.75rem;
    border: 1px solid rgb(var(--border));
    background-color: rgb(var(--card));
    color: rgb(var(--card-foreground));
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid transparent;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    transition: all 0.3s ease;
}

.badge-primary {
    background-color: rgb(var(--primary));
    color: rgb(var(--primary-foreground));
}

.badge-secondary {
    background-color: rgb(var(--secondary));
    color: rgb(var(--secondary-foreground));
}

.badge-outline {
    color: rgb(var(--foreground));
    border: 1px solid rgb(var(--border));
}

.badge-outline-accent {
    color: rgb(var(--accent));
    border: 1px solid rgb(var(--accent));
}

.btn-gradient {
    background: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--accent)));
    color: white;
    border: none;
}

    .btn-gradient:hover {
        background: linear-gradient(135deg, rgb(var(--primary) / 0.9), rgb(var(--accent) / 0.9));
        color: white;
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
