@import url('https://fonts.googleapis.com/css2?family=Electrolize&display=swap');

:root {
    --neon-cyan: #00d9ff;
    --neon-green: #00ff41;
    --neon-magenta: #ff00ff;
    --neon-yellow: #FFC700;
    
    --bg-card: #0f0f1e;
    --bg-darker: #1a1a2e;
    --bg-darkest: #0a0e27;
    
    --border-cyan: #00d9ff;
    
    --text-primary: #ffffff;
    --text-secondary: #a5b4fc;
}

#pricing-main-section {
    font-family: 'Electrolize', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d35 100%);
    min-height: 100vh;
    padding: 20px 0 40px 0;
}

.container2 {
    max-width: 100%;
    margin: 0 !important;
    padding: 0 20px 40px 20px !important;
    width: 100%;
}

/* Hero Section */
.pricing-hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 4px solid var(--neon-green);
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 60px rgba(0, 255, 65, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 2rem;
    border-radius: 0;
    margin-bottom: 40px;
}

.hero-gradient {
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 65, 0.03) 0px,
        transparent 2px,
        transparent 4px,
        rgba(0, 255, 65, 0.03) 6px
    );
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 65, 0.05) 50%, transparent 100%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 0, 255, 0.02) 0px,
            transparent 2px,
            transparent 4px,
            rgba(255, 0, 255, 0.02) 6px
        );
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-headline {
    font-family: 'Electrolize', 'Courier New', monospace;
    font-size: 2rem;
    color: var(--neon-green);
    text-shadow: 
        2px 2px 0px var(--neon-magenta),
        4px 4px 0px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(0, 255, 65, 0.5);
    margin: 0;
    letter-spacing: 2px;
}

.hero-subtext {
    font-family: 'Electrolize', 'Courier New', monospace;
    font-size: 1rem;
    color: var(--neon-cyan);
    text-shadow: 
        1px 1px 0px var(--neon-magenta),
        0 0 8px rgba(0, 217, 255, 0.6);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-subtext::before {
    content: '> ';
    color: var(--neon-magenta);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-content::before,
.hero-content::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--neon-magenta);
}

.hero-content::before {
    top: -1rem;
    left: -1rem;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.hero-content::after {
    bottom: -1rem;
    right: -1rem;
    border-left: none;
    border-top: none;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* Pricing Card */
.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--border-cyan);
    border-radius: 0;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
    margin-bottom: 2rem;
}

.pricing-card .card-header {
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--border-cyan);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing-card .card-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-label {
    color: var(--neon-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
    font-size: 1.25rem;
    font-family: 'Electrolize', sans-serif;
}

.title-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
}

.pricing-card .card-body {
    padding: 1.25rem;
}

/* Search Section */
.search-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-wrapper {
    flex: 1;
    min-width: 300px;
}

.search-input {
    width: 100%;
    background: rgba(26, 26, 46, 0.5);
    border: 2px solid var(--border-cyan);
    border-radius: 0;
    color: var(--text-primary);
    padding: 1rem;
    font-family: 'Electrolize', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4);
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Console Filter Section */
.console-filter-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 217, 255, 0.3);
}

.filter-header {
    margin-bottom: 15px;
}

.filter-label {
    font-family: 'Electrolize', sans-serif;
    color: var(--neon-cyan);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}

.console-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.console-filter-btn {
    font-family: 'Electrolize', sans-serif;
    background: rgba(26, 26, 46, 0.5);
    border: 2px solid var(--border-cyan);
    border-radius: 0;
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.console-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.console-filter-btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
    transform: translateY(-2px);
}

.console-filter-btn:hover::before {
    left: 100%;
}

.console-filter-btn.active {
    background: rgba(0, 255, 65, 0.15);
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.4),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}

.console-filter-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--neon-green);
    border-radius: 0;
    opacity: 0.5;
    pointer-events: none;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-green));
    color: var(--bg-darker);
    border: none;
    padding: 0.75rem 2rem;
    font-family: 'Electrolize', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    border-radius: 0;
}

.btn-primary-custom:hover {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
    transform: translateY(-2px);
}

/* Results Section */
.results-container {
    margin-bottom: 2rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 90px) / 4)), 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    font-family: 'Electrolize', sans-serif;
    background: var(--bg-card);
    border: 2px solid var(--border-cyan);
    border-radius: 0;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
    transition: none !important;
    overflow: hidden;
    position: relative;
    animation: none !important;
    transform: none !important;
}

.game-card:hover {
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3) !important;
    border: 2px solid var(--border-cyan) !important;
    border-color: var(--border-cyan) !important;
    transform: none !important;
    animation: none !important;
    background: var(--bg-card) !important;
}

.box-art-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(255, 99, 71, 0.2));
}

.box-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.game-card:hover .box-art {
    opacity: 1;
}

/* Remove pixel glitch animation */
.game-card::after {
    display: none !important;
}

.game-info {
    padding: 15px;
    background: var(--bg-card);
    position: relative;
}

.game-title {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 8px;
    margin-top: 0;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.console-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.prices-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 0;
    transition: all 0.2s ease;
    border: 2px solid;
}

.price-row.loose {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--neon-green);
}

.price-row.cib {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--neon-cyan);
}

.price-row.new {
    background: rgba(255, 199, 0, 0.1);
    border-color: var(--neon-yellow);
}

.price-label {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-row.loose .price-label { color: var(--neon-green); }
.price-row.cib .price-label { color: var(--neon-cyan); }
.price-row.new .price-label { color: var(--neon-yellow); }

.price-value {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.price-row.loose .price-value { 
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.6);
}
.price-row.cib .price-value { 
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
}
.price-row.new .price-value { 
    color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(255, 199, 0, 0.6);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-cyan);
    border-radius: 0;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
}

.no-results h2 {
    font-family: 'Electrolize', sans-serif;
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.no-results p {
    font-family: 'Electrolize', sans-serif;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Footer Info */
.footer-info {
    text-align: center;
    padding: 40px 20px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 2px solid var(--border-cyan);
    margin-top: 40px;
}

.footer-info p {
    margin-bottom: 8px;
}

.result-count {
    font-family: 'Electrolize', sans-serif;
    color: var(--neon-cyan);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .pricing-hero-section {
        min-height: 140px;
        padding: 1.5rem;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .hero-headline {
        font-size: 1.5rem;
    }
    
    .hero-subtext {
        font-size: 0.875rem;
    }

    .search-row {
        flex-direction: column;
    }

    .search-wrapper {
        min-width: 100%;
    }

    .btn-primary-custom {
        width: 100%;
    }

    .console-buttons {
        gap: 8px;
    }

    .console-filter-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
#pricing-main-section::-webkit-scrollbar {
    width: 10px;
}

#pricing-main-section::-webkit-scrollbar-track {
    background: var(--bg-darker);
    border-radius: 0;
}

#pricing-main-section::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 0;
}

#pricing-main-section::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

/* FINAL OVERRIDE: Completely redefine search-wrapper to remove purple */
.search-wrapper {
    flex: 1 !important;
    min-width: 300px !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border: none !important;
    border-color: transparent !important;
    transition: none !important;
    transform: none !important;
}

.search-wrapper:hover,
.search-wrapper:focus-within {
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
}

/* Add back the cyan/green borders to the actual INPUT element */
.search-wrapper .search-input,
.search-wrapper input,
#pricing-main-section .search-input,
#pricing-main-section input#gameSearch {
    width: 100% !important;
    background: rgba(26, 26, 46, 0.5) !important;
    border: 2px solid var(--border-cyan) !important;
    border-radius: 0 !important;
    color: var(--text-primary) !important;
    padding: 1rem !important;
    font-family: 'Electrolize', sans-serif !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    outline: none !important;
}

.search-wrapper .search-input:hover,
.search-wrapper input:hover,
#pricing-main-section .search-input:hover,
#pricing-main-section input#gameSearch:hover {
    border-color: var(--border-cyan) !important;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3) !important;
}

.search-wrapper .search-input:focus,
.search-wrapper input:focus,
#pricing-main-section .search-input:focus,
#pricing-main-section input#gameSearch:focus {
    border-color: var(--neon-green) !important;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.4) !important;
    outline: none !important;
}