/* AnonAir Price Watch - Terminal Style */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --terminal-green: #00ff00;
    --terminal-cyan: #00ffff;
    --terminal-yellow: #ffff00;
    --terminal-red: #ff5555;
    --terminal-purple: #bd93f9;
    --text-primary: #f8f8f2;
    --text-secondary: #6272a4;
    --text-muted: #44475a;
    --border-color: #333333;
    --success-color: #50fa7b;
    --warning-color: #f1fa8c;
    --error-color: #ff5555;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.terminal-window {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.1);
    overflow: hidden;
}

/* Terminal Header */
.terminal-header {
    background: var(--bg-secondary);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-btn.close { background: var(--error-color); }
.terminal-btn.minimize { background: var(--warning-color); }
.terminal-btn.maximize { background: var(--success-color); }

.terminal-title {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.terminal-time {
    color: var(--text-muted);
    font-size: 12px;
}

/* Terminal Content */
.terminal-content {
    padding: 20px;
}

/* Banner */
.banner {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.ascii-art pre {
    color: var(--terminal-green);
    font-size: 8px;
    line-height: 1;
    margin-bottom: 10px;
}

.banner-subtitle {
    color: var(--terminal-cyan);
    font-size: 14px;
    font-weight: 500;
}

/* Command Section */
.command-section {
    margin-bottom: 30px;
}

.prompt-line {
    color: var(--terminal-green);
    margin-bottom: 15px;
    font-size: 14px;
}

.user { color: var(--terminal-purple); }
.path { color: var(--terminal-cyan); }
.command { color: var(--terminal-yellow); }

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.input-prompt {
    color: var(--terminal-green);
    font-weight: bold;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    padding: 8px 0;
    outline: none;
}

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

.terminal-btn-primary {
    background: var(--terminal-cyan);
    color: var(--bg-primary);
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-btn-primary:hover {
    background: var(--terminal-green);
    transform: translateY(-1px);
}

/* Scanning Animation */
.scanning-animation {
    background: var(--bg-secondary);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--terminal-green), transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.scan-text {
    color: var(--terminal-green);
    font-size: 14px;
    margin-bottom: 10px;
}

.blink {
    animation: blink 1s infinite;
}

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

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--terminal-cyan), var(--terminal-green));
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Results Section */
.result-header {
    background: var(--bg-secondary);
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.result-status {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.result-status.success {
    background: var(--success-color);
    color: var(--bg-primary);
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.result-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.visual-card {
    grid-column: 1;
}

.details-card {
    grid-column: 2;
}

.price-card {
    grid-column: 3;
}

.card-header {
    background: var(--bg-tertiary);
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.specs-list {
    padding: 15px;
}

.spec-item {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.spec-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    min-width: 120px;
    flex-shrink: 0;
}

.spec-value {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
}

.shop-tag {
    background: var(--terminal-purple);
    color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.price-display {
    padding: 20px;
}

.current-price, .old-price, .scan-meta {
    margin-bottom: 15px;
}

.price-label, .meta-label {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--terminal-green);
}

.price-value.old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 18px;
}

.meta-value {
    color: var(--terminal-cyan);
    font-size: 14px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.terminal-btn-success {
    background: var(--success-color);
    color: var(--bg-primary);
}

.terminal-btn-secondary {
    background: var(--text-secondary);
    color: var(--text-primary);
}

.terminal-btn-success,
.terminal-btn-secondary {
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-btn-success:hover {
    background: var(--terminal-green);
    transform: translateY(-1px);
}

.terminal-btn-secondary:hover {
    background: var(--terminal-purple);
    transform: translateY(-1px);
}

/* History Section */
.section-header {
    background: var(--bg-secondary);
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.item-count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
}

.history-list {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-subtext {
    font-size: 12px;
    color: var(--text-muted);
}

/* Status Bar */
.status-bar {
    background: var(--bg-secondary);
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--success-color);
    animation: pulse 2s infinite;
}

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

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Scrollbar Styling */
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: var(--terminal-cyan);
}

/* Responsive Design */
@media (max-width: 768px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .visual-card,
    .details-card,
    .price-card {
        grid-column: 1;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .ascii-art pre {
        font-size: 6px;
    }
}