/* Aurena.at Live Tracker — tracker.css */
:root {
    --bg-primary: #0c0a04;
    --bg-secondary: #1a1812;
    --bg-card: #1f1d17;
    --bg-card-hover: #25231c;
    --text-primary: #f0f0e8;
    --text-secondary: #a09e96;
    --text-muted: #6b6a63;
    --accent: #6c9fff;
    --accent-glow: rgba(108, 159, 255, 0.15);
    --accent-purple: #a78bfa;
    --border: #2a2822;
    --green: #34d399;
    --orange: #fbbf24;
    --red: #f87171;
    --radius: 12px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background Particles */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.header-left {
    flex: 1;
    min-width: 280px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: var(--accent);
    font-weight: 300;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-left: 44px;
}

.header-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    text-align: center;
    min-width: 100px;
    transition: border-color 0.3s;
}

.stat-badge:hover {
    border-color: var(--accent);
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 10px 14px 10px 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.search-box input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

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

.filter-group select {
    padding: 10px 36px 10px 14px;
    background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6a63' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.3s;
}

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

.btn-sort, .btn-refresh {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-sort:hover, .btn-refresh:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Update Info */
.update-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 8px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
}

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

/* Auction Grid */
.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

/* Auction Card */
.auction-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.auction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s;
}

.auction-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(108, 159, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auction-card:hover::before {
    opacity: 1;
}

.auction-card.hidden {
    display: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.badge-new {
    display: inline-block;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    animation: badgePulse 2s infinite;
    flex-shrink: 0;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-secondary);
}

.meta-item svg {
    flex-shrink: 0;
}

.card-stats {
    margin-bottom: 12px;
}

.card-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: rgba(108, 159, 255, 0.08);
    padding: 6px 14px;
    border-radius: 6px;
}

.card-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.card-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.tag {
    display: inline-block;
    background: rgba(108, 159, 255, 0.08);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid rgba(108, 159, 255, 0.12);
}

/* Card Link */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.3s;
}

.card-link:hover {
    gap: 10px;
    text-decoration: underline;
}

/* Card Actions */
.card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Map Link Button */
.btn-map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-purple);
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    line-height: 1.4;
}

.btn-map-link:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: var(--accent-purple);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 11px;
    opacity: 0.6;
}

/* Empty State */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    
    .header-right {
        width: 100%;
    }
    
    .stat-badge {
        flex: 1;
        min-width: 80px;
    }
    
    .auction-grid {
        grid-template-columns: 1fr;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .filter-group {
        justify-content: stretch;
    }
    
    .filter-group select,
    .btn-sort,
    .btn-refresh {
        flex: 1;
    }
}

/* Map Section */
.map-section {
    margin-bottom: 20px;
}

.btn-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent), #4a7fe0);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(108, 159, 255, 0.25);
}

.btn-map-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(108, 159, 255, 0.4);
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    z-index: 1;
}

.map-container .leaflet-container {
    background: var(--bg-secondary);
    font-family: 'Inter', sans-serif;
}

.map-container .leaflet-popup-content-wrapper {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.map-container .leaflet-popup-tip {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.map-container .leaflet-popup-content {
    font-size: 13px;
    line-height: 1.6;
    margin: 10px 14px;
}

.map-container .leaflet-popup-content a {
    color: var(--accent) !important;
    text-decoration: none;
    font-weight: 500;
}

.map-container .leaflet-popup-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
}
