:root {
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-purple: #bc13fe;
    --dark-bg: #0a0a0f;
    --darker-bg: #050507;
}

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

body {
    background-color: var(--dark-bg);
    background-image: url('images/background-market.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

.glitch-container {
    position: relative;
    min-height: 100vh;
    padding: 2rem;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--neon-blue);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    margin-bottom: 0;
    font-size: 3.5rem;
}

.cyber-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.neon-link {
    color: #fff;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.neon-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-pink);
    transition: width 0.3s ease;
}

.neon-link:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

.neon-link:hover::before {
    width: 100%;
}

.market-section {
    margin-top: 100px;
    padding: 2rem;
    background: var(--darker-bg);
    border: 1px solid var(--neon-purple);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--neon-purple);
    margin-bottom: 2rem;
    text-align: center;
}

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

.product-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid var(--neon-blue);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--neon-blue);
}

.cyber-button {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    padding: 0.5rem 1rem;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cyber-button:hover {
    background: var(--neon-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 10px var(--neon-blue);
}

/* Glitch effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-pink);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-blue);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(24px, 550px, 90px, 0);
    }
    20% {
        clip: rect(85px, 550px, 140px, 0);
    }
    40% {
        clip: rect(66px, 550px, 114px, 0);
    }
    60% {
        clip: rect(92px, 550px, 135px, 0);
    }
    80% {
        clip: rect(58px, 550px, 122px, 0);
    }
    100% {
        clip: rect(79px, 550px, 94px, 0);
    }
}

.credits-display {
    margin: 0;
}

.credits-icon {
    color: var(--neon-blue);
    font-size: 1.2rem;
    margin-right: 0.5rem;
    text-shadow: 0 0 5px var(--neon-blue);
}

.credits-amount {
    color: #fff;
    font-size: 1.2rem;
    font-family: 'Share Tech Mono', monospace;
}

.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.success {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.notification.error {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.purchase-history-btn {
    position: static;
}

.history-toggle {
    position: relative;
    padding: 0.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.history-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--neon-pink);
    color: var(--dark-bg);
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.purchase-history-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--darker-bg);
    margin: 2rem auto;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--neon-blue);
}

.close-modal {
    background: none;
    border: none;
    color: var(--neon-pink);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--neon-purple);
    border-radius: 4px;
}

.history-item-info {
    flex-grow: 1;
}

.history-item-price {
    color: var(--neon-blue);
}

.history-total {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neon-blue);
    text-align: right;
    font-size: 1.2rem;
}

.total-amount {
    color: var(--neon-blue);
    margin-left: 1rem;
}

/* Animation for modal */
.modal-show {
    display: block;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Adjust spacing for mobile */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-controls {
        width: 100%;
        justify-content: center;
    }

    .title-container {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .logo {
        font-size: 2.5rem;
    }
}

.product-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

/* Purchase Effects */
.purchase-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    animation: fadeOut 2s forwards;
}

.drink-effect {
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 243, 255, 0.2) 50%, transparent 100%);
    animation: drinkPulse 2s forwards;
}

.augment-effect {
    background: linear-gradient(45deg, transparent 0%, rgba(255, 0, 255, 0.2) 50%, transparent 100%);
    animation: augmentScan 2s forwards;
}

.braindance-effect {
    background: repeating-linear-gradient(
        45deg,
        transparent,
        rgba(188, 19, 254, 0.1) 2px,
        transparent 4px
    );
    animation: braindanceGlitch 2s forwards;
}

.sandevistan-effect {
    background: radial-gradient(circle at center, transparent 0%, rgba(255, 0, 0, 0.2) 50%, transparent 100%);
    animation: sandevistanTime 2s forwards;
}

@keyframes drinkPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes augmentScan {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { transform: translateY(0); opacity: 0.5; }
    100% { transform: translateY(100%); opacity: 0; }
}

@keyframes braindanceGlitch {
    0% { opacity: 0; transform: scale(1); }
    25% { opacity: 0.5; transform: scale(1.02); }
    50% { opacity: 0.3; transform: scale(0.98); }
    75% { opacity: 0.7; transform: scale(1.01); }
    100% { opacity: 0; transform: scale(1); }
}

@keyframes sandevistanTime {
    0% { 
        opacity: 0;
        filter: hue-rotate(0deg);
    }
    50% { 
        opacity: 0.5;
        filter: hue-rotate(180deg);
    }
    100% { 
        opacity: 0;
        filter: hue-rotate(360deg);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
}

.social-link {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

.social-link.coming-soon {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid currentColor;
    border-radius: 4px;
}

.social-link.twitter svg {
    width: 24px;
    height: 24px;
}

/* Update mobile styles */
@media (max-width: 768px) {
    .header-controls {
        flex-wrap: wrap;
    }
    
    .social-links {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
} 