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

.hero-section {
    font-family: 'Electrolize', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1d35 100%);
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow-x: hidden;
    padding: 20px 0 0 0;
}

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

/* Hero Banner Section - Retro Gaming Style */
.search-hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 4px solid #00ff41;
    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;
    margin-left: 0;
    margin-right: 0;
}

.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: #00ff41;
    text-shadow: 
        2px 2px 0px #ff00ff,
        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: #00d9ff;
    text-shadow: 
        1px 1px 0px #ff00ff,
        0 0 8px rgba(0, 217, 255, 0.6);
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-subtext::before {
    content: '> ';
    color: #ff00ff;
    animation: blink 1s step-end infinite;
}

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

/* Pixel corner decorations */
.hero-content::before,
.hero-content::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #ff00ff;
}

.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);
}

/* Search Results Console */
.search-results-console {
    font-family: 'Electrolize', sans-serif;
    width: 100%;
    background: #0f0f1e;
    border: 2px solid #00d9ff;
    border-radius: 0;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1a1a2e;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-btn {
    font-family: 'Electrolize', sans-serif;
    background: #1a1a2e;
    border: 2px solid #00d9ff;
    color: #00d9ff;
    width: 35px;
    height: 35px;
    border-radius: 0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    background: #00d9ff;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.6);
}

.page-btn:active {
    transform: scale(0.95);
}

.page-number {
    font-family: 'Electrolize', sans-serif;
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.console-title {
    font-family: 'Electrolize', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #00d9ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.console-title::before {
    content: '▶ ';
    color: #00d9ff;
}

.console-meta {
    font-family: 'Electrolize', sans-serif;
    color: #00d9ff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    font-family: 'Electrolize', sans-serif;
    background: #0f0f1e;
    border: 2px solid #1a1a2e;
    border-radius: 0;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.result-item:hover {
    background: #1a1a2e;
    border-color: #00d9ff;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
}

.listing-title {
    font-family: 'Electrolize', sans-serif;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.listing-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #1a1a2e;
}

.listing-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.item-id {
    font-family: 'Electrolize', sans-serif;
    color: #CCCCCC;
    font-size: 0.9rem;
    font-family: monospace;
}

.listing-type {
    font-family: 'Electrolize', sans-serif;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.listing-type.auction {
    background: rgba(255, 99, 71, 0.2);
    color: #FF6347;
    border: 2px solid #FF6347;
}

.listing-type.buy-now {
    background: rgba(0, 217, 255, 0.2);
    color: #00d9ff;
    border: 2px solid #00d9ff;
}

.listing-type.best-offer {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 2px solid #FFD700;
}

.listing-price {
    font-family: 'Electrolize', sans-serif;
    color: #00ff41;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background: #1a1a2e;
    border: 2px solid #00d9ff;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    object-fit: cover;
}

.thumbnail:hover {
    border-color: #00ff41;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
}

.price-chart-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #1a1a2e;
}

.price-chart-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-prices {
    display: flex;
    gap: 15px;
}

.chart-price {
    font-family: 'Electrolize', sans-serif;
    background: #1a1a2e;
    border: 2px solid #00d9ff;
    border-radius: 0;
    padding: 6px 12px;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-price:hover {
    border-color: #00ff41;
    background: #00d9ff;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

.chart-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-condition {
    font-family: 'Electrolize', sans-serif;
    background: rgba(0, 217, 255, 0.2);
    color: #00d9ff;
    padding: 6px 12px;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid #00d9ff;
    letter-spacing: 1px;
}

.savings {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.savings.positive {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    border: 2px solid #00ff41;
}

.savings.negative {
    background: rgba(255, 99, 71, 0.2);
    color: #FF6347;
    border: 2px solid #FF6347;
}

/* Search Section */
.search-section {
    width: 100%;
    margin-bottom: 40px;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
    justify-content: center;
}

.search-wrapper {
    flex: 1;
    max-width: 500px;
    background: #1a1a2e;
    border-radius: 0;
    padding: 8px 20px;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
    border: 2px solid #00d9ff;
    transition: all 0.3s ease;
}

.search-wrapper:hover,
.search-wrapper:focus-within {
    border-color: #00ff41;
    box-shadow: 0 15px 40px rgba(0, 255, 65, 0.4);
    transform: translateY(-2px);
}

.search-input {
    font-family: 'Electrolize', sans-serif;
    width: 100%;
    border: none;
    outline: none;
    padding: 15px 0;
    font-size: 1.1rem;
    background: transparent;
    color: #FFFFFF;
}

.search-input::placeholder {
    font-family: 'Electrolize', sans-serif;
    color: #00d9ff;
    opacity: 0.7;
}

.search-button {
    font-family: 'Electrolize', sans-serif;
    background: #00d9ff;
    border: 2px solid #00d9ff;
    border-radius: 0;
    padding: 17px 25px;
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-button:hover {
    background: #1a1a2e;
    color: #00d9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.6);
}

.search-button:active {
    transform: translateY(0);
}

.console-selection {
    text-align: center;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-tags {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    min-width: max-content;
    padding: 0 20px;
}

.console-selection::-webkit-scrollbar {
    height: 6px;
}

.console-selection::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 0;
}

.console-selection::-webkit-scrollbar-thumb {
    background: #00d9ff;
    border-radius: 0;
}

.console-selection::-webkit-scrollbar-thumb:hover {
    background: #00ff41;
}

.filter-tag {
    font-family: 'Electrolize', sans-serif;
    background: #1a1a2e;
    border: 2px solid #00d9ff;
    border-radius: 0;
    padding: 10px 20px;
    color: #00d9ff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.filter-tag:hover {
    background: #00d9ff;
    border-color: #00d9ff;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.5);
}

.filter-tag.active {
    background: #00d9ff;
    border-color: #00d9ff;
    color: #1a1a2e;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
}

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

    .search-row {
        flex-direction: column;
        gap: 15px;
    }

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

    .search-button {
        width: 100%;
    }

    .console-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .pagination {
        width: 100%;
        justify-content: center;
    }

    .console-meta {
        width: 100%;
        text-align: center;
    }

    .listing-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .price-chart-data {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .chart-prices {
        flex-wrap: wrap;
    }
}