/* styles.css - New World Auction House Tracker Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #191712;
    color: #e8e8e8;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: rgba(40, 35, 25, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(140, 110, 70, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

h1 {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

.server-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.server-name {
    background: linear-gradient(135deg, #5a4a3a, #4a3a2a);
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    border: 1px solid rgba(140, 110, 70, 0.4);
}

.freshness-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 25, 18, 0.8);
    padding: 10px 15px;
    border-radius: 5px;
    min-width: 300px;
}

.freshness-label {
    color: #b8b8b8;
    font-size: 14px;
}

.freshness-time {
    color: #ffd700;
    font-weight: bold;
    min-width: 80px;
}

.freshness-bar {
    flex: 1;
    height: 8px;
    background: rgba(60, 50, 40, 0.8);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.freshness-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff0000);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.controls {
    background: rgba(40, 35, 25, 0.95);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(140, 110, 70, 0.3);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.search-section, .filter-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box, .category-dropdown {
    padding: 10px;
    background: rgba(50, 45, 35, 0.9);
    border: 1px solid rgba(140, 110, 70, 0.4);
    border-radius: 5px;
    color: #e8e8e8;
    font-size: 14px;
}

.search-box {
    min-width: 250px;
}

.category-dropdown {
    min-width: 180px;
}

.search-box:focus, .category-dropdown:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* Quick Filters */
.quick-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.quick-btn {
    padding: 8px 15px;
    background: rgba(50, 45, 35, 0.9);
    border: 1px solid rgba(140, 110, 70, 0.4);
    border-radius: 5px;
    color: #e8e8e8;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: rgba(60, 55, 45, 0.9);
    transform: translateY(-2px);
}

.quick-btn.active {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    font-weight: bold;
}

/* Search Wrapper */
.search-wrapper {
    position: relative;
    margin-bottom: 10px;
}

.search-input {
    width: 100%;
    padding: 12px;
    background: rgba(50, 45, 35, 0.9);
    border: 1px solid rgba(140, 110, 70, 0.4);
    border-radius: 5px;
    color: #e8e8e8;
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.search-hint {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 12px;
}

/* Tab Container */
.tab-container {
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.tab-btn {
    padding: 12px 24px;
    background: rgba(50, 45, 35, 0.9);
    border: 1px solid rgba(140, 110, 70, 0.4);
    border-radius: 5px 5px 0 0;
    color: #e8e8e8;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(60, 55, 45, 0.9);
}

.tab-btn.active {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    font-weight: bold;
}

/* Status Bar */
.status-bar {
    background: rgba(30, 25, 18, 0.8);
    padding: 8px 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

#status-text {
    color: #ffd700;
    font-size: 14px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Data Table Updates */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: rgba(50, 45, 35, 0.8);
}

.data-table th {
    padding: 12px;
    text-align: left;
    color: #ffd700;
    font-weight: 600;
    border-bottom: 2px solid rgba(140, 110, 70, 0.4);
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(140, 110, 70, 0.2);
    color: #e8e8e8;
}

.data-table tbody tr:hover {
    background: rgba(60, 50, 40, 0.4);
}

.no-data {
    text-align: center;
    padding: 40px !important;
    color: #888;
    font-style: italic;
}

.data-container {
    background: rgba(40, 35, 25, 0.95);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(140, 110, 70, 0.3);
    min-height: 500px;
}

.view-panel {
    display: none;
}

.view-panel.active {
    display: block;
}

h2 {
    color: #ffd700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.table-wrapper {
    overflow-x: auto;
    background: rgba(30, 25, 18, 0.5);
    border-radius: 8px;
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: rgba(50, 45, 35, 0.8);
}

th {
    padding: 12px;
    text-align: left;
    color: #ffd700;
    font-weight: 600;
    border-bottom: 2px solid rgba(140, 110, 70, 0.4);
    white-space: nowrap;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(140, 110, 70, 0.2);
    color: #e8e8e8;
}

tbody tr:hover {
    background: rgba(60, 50, 40, 0.4);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #b8b8b8;
    font-style: italic;
}

.price {
    color: #ffd700;
    font-weight: bold;
}

.gear-score {
    color: #00ff00;
    font-weight: bold;
}

.perk {
    display: inline-block;
    background: rgba(140, 110, 70, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 4px;
    font-size: 12px;
}

/* Footer Styles - Simplified */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(40, 35, 25, 0.95);
    border-radius: 10px;
    border: 1px solid rgba(140, 110, 70, 0.3);
}

footer p {
    color: #e8e8e8;
    margin: 5px 0;
    font-size: 14px;
}

footer strong {
    color: #ffd700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-section, .filter-section {
        flex-direction: column;
        width: 100%;
    }
    
    .search-box, .category-dropdown {
        width: 100%;
    }
    
    .view-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .server-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .freshness-meter {
        width: 100%;
    }
}