/* Midnight Theme - Luxury Blue */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-color: #0b1026;
    /* Deep Midnight Blue */
    --card-bg: #151b3b;
    --text-primary: #e6e6fa;
    /* Lavender Mist */
    --text-secondary: #a0a0c0;
    --accent-color: #c0c0c0;
    /* Silver */
    --gold-accent: #d4af37;
    --border-color: #2a3b55;
}

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

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: radial-gradient(circle at 50% 0%, #1a2550 0%, #0b1026 100%);
    min-height: 100vh;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.header::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 20px auto 0;
}

.logo-image {
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* Navigation */
.view-switcher-container {
    position: absolute;
    top: 0;
    right: 0;
}

.view-menu-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 20px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-menu-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.3);
}

.view-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    min-width: 200px;
    display: none;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.view-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.view-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding-left: 25px;
}

.view-link.active {
    color: var(--accent-color);
    border-left: 2px solid var(--accent-color);
}

/* Status */
.status-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    font-size: 0.9em;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Content */
.table-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
}

.scrolling-text-container {
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    margin-bottom: 50px;
}

.scrolling-text span {
    margin-right: 50px;
    color: var(--text-secondary);
    font-weight: 300;
}

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

.data-row {
    background: var(--card-bg);
    padding: 30px;
    position: relative;
    transition: transform 0.4s ease;
    border: 1px solid transparent;
}

.data-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.data-row::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

.data-row:hover {
    transform: translateY(-5px);
    border-color: rgba(192, 192, 192, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.data-cell {
    display: flex;
}

/* Product Name */
.data-cell:nth-child(1) {
    font-family: 'Cinzel', serif;
    font-size: 1.4em;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
    justify-content: center;
}

/* Buy Price */
.data-cell:nth-child(2) {
    font-size: 2.5em;
    font-weight: 300;
    color: #fff;
    margin-bottom: 5px;
    text-align: center;
    justify-content: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Sell Price */
.data-cell:nth-child(3) {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 25px;
    text-align: center;
    justify-content: center;
    font-weight: 300;
}

/* High/Low */
.data-cell:nth-child(4) {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    margin-top: auto;
}

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

.high-price {
    color: #ff8a80;
}

.low-price {
    color: #b9f6ca;
}

/* Time */
.data-cell:nth-child(5) {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.8em;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Merchant Info */
.merchant-info {
    margin-top: 80px;
    text-align: center;
    position: relative;
    padding-top: 50px;
}

.merchant-info::before {
    content: '✦';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 20px;
}

.merchant-header {
    margin-bottom: 40px;
}

.merchant-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8em;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.merchant-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.merchant-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.merchant-label {
    color: var(--accent-color);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.merchant-text {
    color: var(--text-secondary);
    font-weight: 300;
}

.qr-section {
    grid-column: 1 / -1;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.qr-image {
    width: 100px;
    height: 100px;
    border: 1px solid var(--accent-color);
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.qr-image:hover {
    opacity: 1;
}

.copyright-section {
    grid-column: 1 / -1;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 0.8em;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .merchant-content {
        grid-template-columns: 1fr;
    }

    .view-switcher-container {
        position: relative;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }

    .header {
        margin-bottom: 30px;
    }
}