/* Parallax — Intel page styles */

.intel-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}
.intel-container h1 {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 8px;
}
.intel-container .subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Search bar */
.intel-search {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.intel-search input {
    flex: 1;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid var(--bg-panel-border);
    border-radius: 4px;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}
.intel-search input:focus {
    border-color: var(--gold);
}
.intel-search input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Filter row */
.intel-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.intel-filters select,
.intel-filters input {
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid var(--bg-panel-border);
    border-radius: 4px;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
}
.intel-filters select { cursor: pointer; }
.intel-filters input { flex: 1; min-width: 140px; }
.intel-filters input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}
.intel-filters select:focus,
.intel-filters input:focus {
    border-color: var(--gold);
}

/* Results table */
.intel-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.intel-table th {
    font-family: var(--font-display);
    font-size: 10px;
    color: var(--gold-dim);
    letter-spacing: 1px;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--bg-panel-border);
    white-space: nowrap;
}
.intel-table td {
    font-size: 13px;
    padding: 10px;
    border-bottom: 1px solid rgba(180, 155, 80, 0.1);
    color: var(--text-primary);
}
.intel-table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}
.intel-table tbody tr:hover {
    background: rgba(200, 168, 80, 0.06);
}
.intel-table tbody tr.expanded {
    background: rgba(200, 168, 80, 0.08);
}

/* Type badge */
.type-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 9px;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 2px;
    border: 1px solid;
}
.type-badge.ship {
    color: var(--accent-blue);
    border-color: rgba(74, 127, 165, 0.4);
}
.type-badge.station {
    color: var(--gold);
    border-color: rgba(200, 168, 80, 0.3);
}

/* Source label */
.source-label {
    font-size: 11px;
    color: var(--text-secondary);
}
.source-label.na {
    opacity: 0.5;
}

/* Detail panel */
.sighting-detail {
    display: none;
}
.sighting-detail td {
    padding: 0 10px 14px;
    cursor: default;
}
.sighting-detail.visible {
    display: table-row;
}
.detail-panel {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.detail-image {
    flex-shrink: 0;
}
.detail-image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border: 1px solid rgba(180, 155, 80, 0.2);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}
.detail-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px 20px;
    padding: 12px 16px;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(180, 155, 80, 0.15);
    border-radius: 4px;
}
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.detail-label {
    font-family: var(--font-display);
    font-size: 9px;
    color: var(--gold-dim);
    letter-spacing: 1px;
}
.detail-value {
    font-size: 13px;
    color: var(--text-bright);
}
.detail-value.na {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Bar indicators for hull/shield */
.stat-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    max-width: 80px;
}
.stat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}
.stat-bar-fill.hull { background: #c87050; }
.stat-bar-fill.shield { background: #5090d0; }
.stat-bar-fill.ionic { background: #d0c050; }

/* Pagination */
.intel-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 0;
}
.intel-pagination button {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--bg-panel-border);
    border-radius: 3px;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s;
}
.intel-pagination button:hover:not(:disabled) {
    border-color: var(--gold);
    background: rgba(200, 168, 80, 0.08);
}
.intel-pagination button:disabled {
    opacity: 0.3;
    cursor: default;
}
.intel-pagination .page-info {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Status messages */
.intel-status {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-secondary);
    font-size: 14px;
}
.intel-loading {
    color: var(--gold-dim);
}
.result-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* History button */
.detail-actions {
    margin-top: 10px;
    padding: 0 16px;
}
.history-btn {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--bg-panel-border);
    border-radius: 3px;
    padding: 5px 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.history-btn:hover {
    border-color: var(--gold);
    background: rgba(200, 168, 80, 0.08);
}

/* Timeline */
.timeline {
    display: none;
    margin-top: 12px;
    padding-left: 20px;
    border-left: 2px solid rgba(180, 155, 80, 0.25);
}
.timeline.visible {
    display: block;
}
.timeline-loading {
    color: var(--text-secondary);
    font-size: 12px;
    padding: 8px 0;
}
.timeline-entry {
    position: relative;
    padding: 8px 0 12px 16px;
    border-bottom: 1px solid rgba(180, 155, 80, 0.08);
}
.timeline-entry:last-child {
    border-bottom: none;
}
.timeline-entry::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-dim);
    border: 1px solid rgba(180, 155, 80, 0.4);
}
.timeline-time {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.timeline-body {
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.6;
}
.timeline-loc {
    color: var(--text-bright);
}
.timeline-heading {
    color: var(--text-secondary);
}
.timeline-owner {
    color: var(--text-secondary);
}
.timeline-hull {
    color: #c87050;
}
.timeline-source {
    color: var(--text-secondary);
    font-size: 11px;
    opacity: 0.7;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .intel-container { padding: 24px 16px 40px; }
    .intel-container h1 { font-size: 18px; }
    .intel-search { flex-direction: column; }
    .intel-filters { flex-direction: column; }
    .intel-table th:nth-child(4),
    .intel-table td:nth-child(4) { display: none; }
    .detail-grid { grid-template-columns: 1fr 1fr; }
}
