/* ECONOMY FULL PAGE STYLES */

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

/* Market Overview */
.market-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: linear-gradient(145deg, #1f1f23, #1a1a1d);
    border: 2px solid var(--accent-gold);
    border-radius: 5px;
    padding: 20px;
    text-align: center;
}

.overview-card h3 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
}

.status-indicator .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.countdown {
    font-size: 2rem;
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
}

.stat-value {
    font-size: 2.5rem;
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
}

.stat-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
}

.stat-row .up { color: #4caf50; }
.stat-row .down { color: #f44336; }
.stat-row .stable { color: #888; }

/* Filters Bar */
.filters-bar {
    background: #222;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.search-box {
    flex: 1;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group select {
    padding: 12px 15px;
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
}


/* Items Table */
.items-table-container {
    background: #222;
    border: 1px solid #444;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
}

.items-table th {
    background: #1a1a1d;
    color: var(--accent-gold);
    font-family: 'Cinzel', serif;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid var(--accent-gold);
    cursor: pointer;
    transition: 0.3s;
}

.items-table th:hover {
    background: #252529;
}

.items-table td {
    padding: 15px;
    border-bottom: 1px solid #333;
    color: var(--text-color);
}

.items-table tbody tr:hover {
    background: #2a2a2e;
}

.item-name-cell {
    font-weight: bold;
    color: #fff;
}

.item-category {
    font-size: 0.85rem;
    color: #888;
}

.price-cell {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.change-cell {
    font-weight: bold;
}

.change-cell.up { color: #4caf50; }
.change-cell.down { color: #f44336; }
.change-cell.stable { color: #888; }

.sparkline { display: block; }
.sparkline.up { color: #4caf50; }
.sparkline.down { color: #f44336; }
.sparkline.stable { color: #888; }

/* Market Analysis */
.market-analysis {
    background: #222;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 30px;
}

.market-analysis h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.analysis-card {
    background: #1a1a1d;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 20px;
}

.analysis-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent-gold);
}

.analysis-card ul {
    list-style: none;
}

.analysis-card li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.analysis-card li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .items-table {
        font-size: 0.85rem;
    }
    
    .items-table th,
    .items-table td {
        padding: 10px;
    }
    
    .market-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .market-overview {
        grid-template-columns: 1fr;
    }
    
    .items-table-container {
        overflow-x: auto;
    }
    
    .items-table {
        min-width: 800px;
    }
}
