/* Newspaper Theme - Classic Financial */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg-color: #f4f1ea;
    /* Newsprint paper color */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent-color: #8b0000;
    /* Dark red for headers */
    --border-color: #2c2c2c;
}

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

body {
    font-family: 'Lora', serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

/* Header - Newspaper Masthead */
.header {
    text-align: center;
    border-bottom: 3px double var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-section {
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.logo-image {
    height: 50px;
    filter: grayscale(100%) contrast(120%);
}

/* Navigation - Simple Text Links */
.view-switcher-container {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.view-menu-btn {
    background: none;
    border: none;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-menu {
    position: absolute;
    background: #fff;
    border: 1px solid #000;
    padding: 10px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: none;
    text-align: left;
}

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

.view-link {
    display: block;
    color: #000;
    text-decoration: none;
    padding: 5px 10px;
    font-family: 'Lora', serif;
}

.view-link:hover {
    text-decoration: underline;
}

.view-icon {
    display: none;
}

/* Status Bar - Date Line */
.status-section {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.9em;
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.status-row {
    display: flex;
    gap: 5px;
}

.status-label {
    font-weight: bold;
}

/* Main Content - Multi-column Layout */
.main-content {
    column-count: 2;
    column-gap: 40px;
    column-rule: 1px solid #ddd;
}

.table-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1;
    column-span: all;
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.scrolling-text-container {
    background: #f4f4f4;
    padding: 10px;
    margin-bottom: 20px;
    font-style: italic;
    border: 1px solid #ddd;
    column-span: all;
}

.scrolling-text {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}

/* Data Items as Articles */
.table-data-content {
    display: block;
}

.data-row {
    break-inside: avoid;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.data-cell {
    display: block;
}

/* Product Name as Headline */
.data-cell:nth-child(1) {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Prices */
.data-cell:nth-child(2) {
    font-size: 1.8em;
    font-weight: 700;
    float: left;
    margin-right: 15px;
}

.data-cell:nth-child(2)::before {
    content: "BUY: ";
    font-size: 0.4em;
    vertical-align: middle;
    font-family: sans-serif;
}

.data-cell:nth-child(3) {
    font-size: 1.2em;
    color: #666;
    padding-top: 8px;
}

.data-cell:nth-child(3)::before {
    content: "SELL: ";
    font-size: 0.6em;
}

/* Clearfix */
.data-row::after {
    content: "";
    display: table;
    clear: both;
}

/* High/Low & Time */
.data-cell:nth-child(4),
.data-cell:nth-child(5) {
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
    font-family: sans-serif;
}

.high-low-content {
    display: flex;
    gap: 10px;
}

.high-price {
    color: #000;
}

.low-price {
    color: #000;
}

/* Merchant Info - Classifieds Style */
.merchant-info {
    column-span: all;
    margin-top: 30px;
    border-top: 4px double #000;
    padding-top: 20px;
}

.merchant-header {
    text-align: center;
    margin-bottom: 20px;
}

.merchant-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.merchant-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    font-size: 0.9em;
}

.merchant-item {
    display: block;
}

.merchant-label {
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
    font-size: 0.8em;
}

.qr-section {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #f9f9f9;
    margin-top: 20px;
}

.qr-container {
    display: flex;
    gap: 30px;
}

.qr-image {
    width: 80px;
    height: 80px;
    filter: grayscale(100%);
}

.qr-text {
    font-family: sans-serif;
    font-size: 0.7em;
    text-align: center;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .main-content {
        column-count: 1;
    }

    .merchant-content {
        grid-template-columns: 1fr;
    }
}