/* static/styles.css */

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

/* Typography & layout */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
}

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

/* Header */
header {
    background: #ff1900;
    color: #ffffff;
    box-shadow: none;
    padding: 40px 0;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.8em;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header p {
    font-size: 1.15em;
    opacity: 0.95;
    font-weight: 400;
}

/* Panels & cards */
.search-panel {
    background: #111111;
    border: 1px solid #333333;
    box-shadow: none;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.search-panel h2 {
    color: #ff1900;
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 1.5em;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: #111111;
    border: 1px solid #333333;
    padding: 28px;
    border-radius: 12px;
    text-align: center;
}

.stat-card h3 {
    color: #ff1900;
    font-size: 3em;
    margin-bottom: 8px;
    font-weight: 700;
}

.stat-card p {
    color: #cccccc;
    font-size: 0.95em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Forms */
.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #cccccc;
    font-size: 0.875em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select {
    padding: 12px 16px;
    border: 1px solid #333333;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.2s;
    background: #000000;
    color: #ffffff;
    width: 100%;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23cccccc' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select option {
    background: #000000;
    color: #ffffff;
}

input:focus, select:focus {
    border-color: #ff1900;
    box-shadow: 0 0 0 3px rgba(255, 25, 0, 0.4);
    outline: none;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.button-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    background: #ff1900;
    color: #ffffff;
}

.btn-primary:hover {
    background: #e60000;
    box-shadow: 0 4px 12px rgba(255, 25, 0, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
}

.btn-secondary:hover {
    background: #f2f2f2;
}

/* Tables */
.equipment-table thead {
    background: #ff1900;
    color: #ffffff;
}

.equipment-table tbody tr:nth-child(odd) {
    background: #000000;
}

.equipment-table tbody tr:nth-child(even) {
    background: #0d0d0d;
}

.equipment-table td, .equipment-table th {
    border-bottom: 1px solid #333333;
    padding: 12px;
}

/* Equipment list cards (if used) */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.equipment-card {
    background: #111111;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #333333;
    transition: all 0.3s;
    cursor: pointer;
}

.equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(10, 37, 64, 0.3);
    border-color: #ff1900;
}

.equipment-header {
    border-bottom: 2px solid #1e1e1e;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.equipment-brand {
    color: #ff1900;
    font-size: 0.875em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.equipment-model {
    font-size: 1.6em;
    font-weight: 700;
    margin: 10px 0;
    color: #ffffff;
    line-height: 1.2;
}

.equipment-year {
    color: #9ca3af;
    font-size: 0.9em;
    font-weight: 500;
}

/* Detail page */
.detail-page {
    background: #111111;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #333333;
}

.detail-header {
    border-bottom: 3px solid #ff1900;
    padding-bottom: 24px;
    margin-bottom: 36px;
}

.detail-section {
    margin-bottom: 36px;
}

.detail-section h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    background: #0d0d0d;
    padding: 20px;
    border-radius: 8px;
}

/* Sources and notes */
.source-list {
    list-style: none;
    padding: 0;
}

.source-list li {
    background: #0d0d0d;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    border-left: 4px solid #ff1900;
}

.source-list li strong {
    color: #ffffff;
    display: block;
    margin-bottom: 4px;
}

.source-list a {
    color: #ff5a3c;
    text-decoration: none;
    word-break: break-all;
    font-size: 0.9em;
}

.source-list a:hover {
    text-decoration: underline;
}

.notes-list {
    list-style: none;
    padding: 0;
}

.notes-list li {
    background: #0d0d0d;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    color: #e5e7eb;
    line-height: 1.6;
    border-left: 3px solid #333333;
}

/* JSON view */
.json-view {
    background: #0a2540;
    color: #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.85em;
    line-height: 1.6;
}

/* Misc */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #cccccc;
}

.empty-state h2 {
    font-size: 2.2em;
    margin-bottom: 12px;
    color: #ffffff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #ff1900;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.back-link:hover {
    gap: 12px;
    color: #e60000;
}

/* Responsive */
@media (max-width: 768px) {
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    header h1 {
        font-size: 2em;
    }
    .detail-page {
        padding: 24px;
    }
}