/* Pixel Art Theme - Retro */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --bg-color: #202020;
    --card-bg: #000000;
    --text-color: #00ff00;
    /* Retro Green */
    --accent-color: #ff00ff;
    /* Magenta */
    --border-color: #ffffff;
}

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

body {
    font-family: 'Press Start 2P', cursive;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 12px;
    /* Pixel fonts need to be small or very big */
    image-rendering: pixelated;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    border: 4px solid var(--border-color);
    padding: 20px;
    margin-bottom: 30px;
    background: #000;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-image {
    height: 40px;
    image-rendering: pixelated;
}

/* Navigation */
.view-switcher-container {
    position: relative;
}

.view-menu-btn {
    background: #0000ff;
    color: #fff;
    border: 4px solid #fff;
    padding: 10px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    cursor: pointer;
    box-shadow: 4px 4px 0 #000;
}

.view-menu-btn:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.view-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #000;
    border: 4px solid #fff;
    padding: 10px;
    min-width: 250px;
    display: none;
    z-index: 100;
}

.view-menu.show {
    display: block;
}

.view-link {
    display: block;
    color: #00ff00;
    text-decoration: none;
    padding: 10px;
    margin-bottom: 5px;
}

.view-link:hover {
    background: #00ff00;
    color: #000;
}

.view-link.active {
    background: #ff00ff;
    color: #fff;
}

/* Status */
.status-section {
    font-size: 10px;
    color: #ffff00;
}

.status-row {
    margin-bottom: 5px;
}

/* Main Content */
.table-title {
    text-align: center;
    color: #ff00ff;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0 #000;
    font-size: 20px;
}

.scrolling-text-container {
    background: #000;
    border: 4px solid var(--border-color);
    padding: 10px;
    margin-bottom: 30px;
    color: #00ffff;
}

.scrolling-text span {
    margin-right: 20px;
}

/* Cards Grid */
.table-data-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.data-row {
    background: var(--card-bg);
    border: 4px solid var(--border-color);
    padding: 20px;
    position: relative;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.data-row:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--accent-color);
}

.data-cell {
    display: flex;
}

/* Product Name */
.data-cell:nth-child(1) {
    color: #ffff00;
    margin-bottom: 15px;
    font-size: 14px;
    border-bottom: 2px dashed #fff;
    padding-bottom: 10px;
}

/* Buy Price */
.data-cell:nth-child(2) {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

.data-cell:nth-child(2)::before {
    content: "BUY>";
    margin-right: 10px;
    color: #00ff00;
}

/* Sell Price */
.data-cell:nth-child(3) {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 20px;
}

.data-cell:nth-child(3)::before {
    content: "SELL>";
    margin-right: 10px;
    color: #ff0000;
}

/* High/Low */
.data-cell:nth-child(4) {
    background: #222;
    padding: 10px;
    border: 2px solid #555;
    margin-top: auto;
}

.high-low-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.high-price {
    color: #ff0000;
}

.low-price {
    color: #00ff00;
}

/* Time */
.data-cell:nth-child(5) {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 8px;
    color: #888;
}

/* Merchant Info */
.merchant-info {
    margin-top: 50px;
    border: 4px solid var(--border-color);
    background: #000;
    padding: 20px;
}

.merchant-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 4px solid #fff;
    padding-bottom: 10px;
}

.merchant-title {
    color: #00ffff;
}

.merchant-content {
    font-size: 10px;
    line-height: 2;
}

.merchant-item {
    margin-bottom: 10px;
}

.merchant-label {
    color: #ff00ff;
    margin-right: 10px;
}

.qr-section {
    margin-top: 20px;
    text-align: center;
    border-top: 2px dashed #fff;
    padding-top: 20px;
}

.qr-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.qr-image {
    width: 100px;
    height: 100px;
    border: 4px solid #fff;
    image-rendering: pixelated;
}

.copyright-section {
    text-align: center;
    margin-top: 20px;
    font-size: 8px;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .status-section {
        display: none;
    }
}