/* ─── RADAR: Live Intelligence Feed + .GOV Domain Tracker ─── */

.radar-container {
    max-width: clamp(1200px, 90vw, 2400px);
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

/* ─── View Toggle ──────────────────────────────── */
.radar-view-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    width: fit-content;
}

.radar-view-btn {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0.7rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radar-view-btn:last-child {
    border-right: none;
}

.radar-view-btn:hover {
    background: rgba(255, 170, 0, 0.04);
    color: rgba(255, 170, 0, 0.5);
}

.radar-view-btn.active {
    background: rgba(255, 170, 0, 0.08);
    color: rgba(255, 170, 0, 0.95);
    box-shadow: inset 0 -2px 0 rgba(255, 170, 0, 0.6);
}

.view-icon {
    font-size: 0.9rem;
}

/* ─── View Containers ──────────────────────────── */
.radar-view {
    transition: opacity 0.2s ease;
}

.radar-view.hidden {
    display: none;
}

/* ─── Controls Bar ─────────────────────────────── */
.radar-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.radar-filters {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.radar-filter,
.gov-range {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
}

.radar-filter:hover,
.gov-range:hover {
    background: rgba(255, 170, 0, 0.06);
    border-color: rgba(255, 170, 0, 0.2);
    color: rgba(255, 170, 0, 0.7);
}

.radar-filter.active,
.gov-range.active {
    background: rgba(255, 170, 0, 0.08);
    border-color: rgba(255, 170, 0, 0.4);
    color: rgba(255, 170, 0, 0.9);
}

.radar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.radar-search {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    width: 200px;
    outline: none;
    transition: border-color 0.2s;
}

.radar-search:focus {
    border-color: rgba(255, 170, 0, 0.4);
}

.radar-search::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.radar-refresh {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 170, 0, 0.06);
    border: 1px solid rgba(255, 170, 0, 0.2);
    color: rgba(255, 170, 0, 0.7);
    cursor: pointer;
    transition: all 0.2s;
}

.radar-refresh:hover {
    background: rgba(255, 170, 0, 0.12);
    border-color: rgba(255, 170, 0, 0.5);
    color: rgba(255, 170, 0, 1);
}

.radar-refresh.spinning {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ─── Type Filter Dropdown ─────────────────────── */
.gov-type-filter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    outline: none;
    cursor: pointer;
    min-width: 160px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,170,0,0.5)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    padding-right: 1.8rem;
}

.gov-type-filter:focus {
    border-color: rgba(255, 170, 0, 0.4);
}

.gov-type-filter option {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.7);
}

/* ─── Stats Bar ────────────────────────────────── */
.radar-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.radar-stat {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
}

.stat-label {
    color: rgba(255, 255, 255, 0.2);
}

.stat-auto {
    color: rgba(0, 204, 68, 0.7);
}

.stat-new {
    color: rgba(0, 204, 68, 0.9);
    font-weight: 700;
}

.radar-live {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(0, 204, 68, 0.8);
    margin-left: auto;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #00cc44;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease infinite;
}

.gov-dot {
    background: #00cc44;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px #00cc44; }
    50% { opacity: 0.4; box-shadow: 0 0 1px #00cc44; }
}

/* ─── Gov Results Bar ──────────────────────────── */
.gov-results-bar {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ─── Feed Items (News) ────────────────────────── */
.radar-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.radar-loading {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(255, 170, 0, 0.5);
    text-align: center;
    padding: 3rem;
    letter-spacing: 2px;
    animation: pulse-text 1.5s ease infinite;
}

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

.radar-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.15s;
}

.radar-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.radar-item-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.18);
    min-width: 55px;
    letter-spacing: 0.5px;
    padding-top: 0.15rem;
    flex-shrink: 0;
}

.radar-item-source {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    padding: 0.15rem 0.5rem;
    min-width: 90px;
    text-align: center;
    flex-shrink: 0;
    border: 1px solid;
}

.source-hackernews {
    color: #ff6600;
    border-color: rgba(255, 102, 0, 0.3);
    background: rgba(255, 102, 0, 0.05);
}

.source-reddit_technology,
.source-reddit_programming,
.source-reddit_netsec {
    color: #ff4500;
    border-color: rgba(255, 69, 0, 0.3);
    background: rgba(255, 69, 0, 0.05);
}

.source-lobsters {
    color: #ac130d;
    border-color: rgba(172, 19, 13, 0.3);
    background: rgba(172, 19, 13, 0.05);
}

.radar-item-content {
    flex: 1;
    min-width: 0;
}

.radar-item-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    display: block;
    line-height: 1.4;
    transition: color 0.15s;
}

.radar-item-title:hover {
    color: rgba(255, 170, 0, 0.9);
}

.radar-item-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.3rem;
}

.radar-item-domain {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
}

.radar-item-comments {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 170, 0, 0.35);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.radar-item-comments:hover {
    color: rgba(255, 170, 0, 0.7);
}

.radar-empty {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 3rem;
    letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════════ */
/* .GOV DOMAIN TRACKER STYLES                         */
/* ═══════════════════════════════════════════════════ */

/* ─── Domain Item ──────────────────────────────── */
.gov-domain-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.15s, border-color 0.3s;
    border-left: 2px solid transparent;
}

.gov-domain-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ─── New Domain Highlight ─────────────────────── */
.gov-domain-item.gov-new {
    border-left: 2px solid rgba(0, 204, 68, 0.6);
    background: rgba(0, 204, 68, 0.02);
    animation: gov-new-pulse 3s ease infinite;
}

@keyframes gov-new-pulse {
    0%, 100% { background: rgba(0, 204, 68, 0.02); }
    50% { background: rgba(0, 204, 68, 0.05); }
}

.gov-domain-item.gov-new:hover {
    background: rgba(0, 204, 68, 0.06);
}

/* ─── Domain Name ──────────────────────────────── */
.gov-domain-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.gov-domain-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gov-domain-name:hover {
    color: rgba(255, 170, 0, 0.95);
}

/* ─── NEW Badge ────────────────────────────────── */
.gov-new-badge {
    font-family: 'Orbitron', monospace;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 0.1rem 0.4rem;
    background: rgba(0, 204, 68, 0.15);
    border: 1px solid rgba(0, 204, 68, 0.4);
    color: #00cc44;
    animation: badge-glow 2s ease infinite;
    flex-shrink: 0;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 4px rgba(0, 204, 68, 0.2); }
    50% { box-shadow: 0 0 10px rgba(0, 204, 68, 0.4); }
}

/* ─── Type Badge ───────────────────────────────── */
.gov-domain-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    padding: 0.15rem 0.6rem;
    border: 1px solid;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
    text-transform: uppercase;
}

/* ─── Domain Details ───────────────────────────── */
.gov-domain-details {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    min-width: 0;
}

.gov-detail {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.gov-detail-label {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.6rem;
    letter-spacing: 1px;
}

/* ─── First Seen Date ──────────────────────────── */
.gov-domain-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
}

/* ─── Truncation Notice ────────────────────────── */
.gov-truncated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 170, 0, 0.4);
    text-align: center;
    padding: 1.5rem;
    letter-spacing: 1.5px;
    border-top: 1px solid rgba(255, 170, 0, 0.1);
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
    .gov-domain-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.4rem 1rem;
    }
    .gov-domain-details {
        grid-column: 1 / -1;
    }
    .gov-domain-date {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .radar-controls {
        flex-direction: column;
    }
    .radar-actions {
        width: 100%;
    }
    .radar-search {
        flex: 1;
    }
    .radar-item {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .radar-item-time {
        min-width: auto;
    }
    .radar-item-source {
        min-width: auto;
    }
    .radar-stats {
        gap: 0.8rem;
    }
    .radar-view-toggle {
        width: 100%;
    }
    .radar-view-btn {
        flex: 1;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.65rem;
    }
    .gov-domain-item {
        grid-template-columns: 1fr;
        gap: 0.3rem;
        padding: 0.6rem 0.8rem;
    }
    .gov-domain-type {
        justify-self: start;
    }
    .gov-domain-date {
        text-align: left;
    }
    .gov-type-filter {
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .radar-container {
        padding: 0 1rem 2rem;
    }
    .radar-filters,
    .gov-range-filters {
        gap: 0.3rem;
    }
    .radar-filter,
    .gov-range {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }
    .gov-detail {
        max-width: 180px;
    .gov-detail {
        max-width: 180px;
    }
}

/* ═══════════════════════════════════════════════════ */
/* NEW IN LAST 24H BOX                               */
/* ═══════════════════════════════════════════════════ */

.gov-new-24h-box {
    margin: 0 0 1rem 0;
    border: 1px solid rgba(0, 204, 68, 0.2);
    background: rgba(0, 204, 68, 0.03);
    overflow: hidden;
}

.gov-new-24h-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 204, 68, 0.08);
    border-bottom: 1px solid rgba(0, 204, 68, 0.15);
}

.gov-new-24h-icon {
    color: #00cc44;
    font-size: 0.8rem;
    animation: pulse-dot 1.5s ease infinite;
}

.gov-new-24h-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(0, 204, 68, 0.9);
    flex: 1;
}

.gov-new-24h-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #00cc44;
    background: rgba(0, 204, 68, 0.12);
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(0, 204, 68, 0.3);
}

.gov-new-24h-list {
    max-height: 300px;
    overflow-y: auto;
}

.gov-new-24h-list .gov-domain-item {
    border-left: 2px solid rgba(0, 204, 68, 0.6);
    background: rgba(0, 204, 68, 0.02);
    animation: gov-new-pulse 3s ease infinite;
}

.gov-new-24h-list .gov-domain-item:hover {
    background: rgba(0, 204, 68, 0.06);
}

.gov-new-24h-empty {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 1.5rem;
    letter-spacing: 1.5px;
}

@media (max-width: 768px) {
    .gov-new-24h-header {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .gov-new-24h-title {
        font-size: 0.6rem;
    }
}
