/* 
  EthBay - Decentralized Marketplace
  Archetype: Web3 / Glassmorphism
*/

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

:root {
    --bg-dark: #0B0B15;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --primary: #6366F1;
    /* Indigo */
    --accent: #EC4899;
    /* Pink */
    --text: #F8FAFC;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary-main: var(--primary);
    --gradient-crypto: linear-gradient(135deg, var(--primary), var(--accent));
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-body);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 40%);
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

/* Glass Header */
.site-header {
    background: rgba(11, 11, 21, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    height: 70px;
    gap: 2rem;
}

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

.logo {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.logo img {
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
}

/* Nav */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text);
}

/* Buttons */
.btn {
    padding: 0.7rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

#connect-wallet {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    padding: 0.6rem 1.5rem;
}

#connect-wallet:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    transform: translateY(0);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.nft-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.nft-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

/* Glitch Effect on Hover title */
.nft-card:hover h3 {
    color: var(--accent);
}

/* Ticker */
.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 0;
}

.ticker {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    color: var(--text-muted);
    font-family: monospace;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Footer */
.footer {
    background: rgba(11, 11, 21, 0.8);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 6rem;
    text-align: center;
}

.footer a {
    color: var(--text-muted);
}

.footer a:hover {
    color: var(--primary);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: var(--primary);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(11, 11, 21, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-content {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 2rem;
    position: relative;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: var(--primary);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 4rem;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--text);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    #connect-wallet {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 640px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem !important;
    }

    .site-header .container {
        height: 60px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo img {
        width: 24px;
    }
}