:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #141B2D;
    --surface: #1F2940;
    --text-primary: #E4E5E7;
    --text-muted: #8B8F9B;
    --positive: #10B981;
    --negative: #EF4444;
    --accent: #3B82F6;
    --border: #2D3748;
}

body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.market-header {
    text-align: center;
    padding: 3rem 1rem;
    border-bottom: 2px solid var(--border);
}

.market-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.market-pub-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.market-headline {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.market-subheader {
    font-size: 1rem;
    color: var(--text-muted);
}

.market-status {
    display: inline-block;
    padding: 0.5rem 2rem;
    border-radius: 2rem;
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.market-open {
    background: rgba(16, 185, 129, 0.2);
    color: var(--positive);
    border: 2px solid var(--positive);
    animation: pulse 2s infinite;
    max-height:3rem;
}

.market-closed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--negative);
    border: 2px solid var(--negative);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.market-board {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.market-table-container {
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.market-table {
    width: 100%;
    border-collapse: collapse;
}

.market-table thead {
    background: var(--bg-primary);
}

.market-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.market-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.market-table tbody tr {
    transition: background 0.3s;
}

.market-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.price-up {
    color: var(--positive);
}

.price-down {
    color: var(--negative);
}

.price-neutral {
    color: var(--text-muted);
}

.trend-icon {
    font-size: 1.2rem;
}

.price-change-animation {
    animation: highlight 0.5s ease;
}

@keyframes highlight {
    0%, 100% {
        background: transparent;
    }
    50% {
        background: rgba(59, 130, 246, 0.2);
    }
}

.market-ticker {
    background: var(--bg-primary);
    padding: 1rem;
    overflow: hidden;
    white-space: nowrap;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.ticker-item {
    display: inline-block;
    margin-right: 3rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border-radius: 0.5rem;
}

@media (max-width: 768px) {
    .market-pub-name {
        font-size: 1.8rem;
    }

    .market-headline {
        font-size: 1.3rem;
    }

    .market-table-container {
        overflow-x: auto;
    }

    .market-table {
        font-size: 0.875rem;
    }

    .market-table th,
    .market-table td {
        padding: 0.75rem 0.5rem;
    }

    .market-table th {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .market-header {
        padding: 2rem 1rem;
    }

    .market-table {
        display: block;
        overflow-x: auto;
    }
}
