/* Fox Dashboard - Base Styles */

:root {
    --bg-primary: #0f0f0f;
    --bg-card: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #888;
    --accent: #ff6b35;
    --border: #333;
    --success: #4caf50;
    --info: #3498db;
    --warning: #f1c40f;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.card h2 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.status-ok {
    border-left: 4px solid var(--success);
}

.timestamp {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    font-size: 0.85rem;
    border-radius: 4px;
    font-family: monospace;
}

.search-status {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.search-time {
    font-size: 0.85rem;
    color: var(--info);
    font-family: monospace;
    background: rgba(52, 152, 219, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

ul {
    list-style: none;
}

li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

li:last-child {
    border-bottom: none;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.mock-item {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    text-align: center;
    border-radius: 4px;
    border: 1px dashed var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.mock-item:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
    color: var(--text-primary);
}

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

button:hover {
    background: #e55a2b;
}

#test-output {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    font-size: 0.9rem;
    min-height: 40px;
}

footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* News Section Styles */
.news-card {
    border-left: 4px solid var(--info);
}

.news-card.full-width {
    grid-column: 1 / -1;
}

.news-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.stat-badge {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.last-update {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.loading {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Current News (6h) */
.news-current {
    background: rgba(52, 152, 219, 0.05);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.news-item-current {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.news-item-current:last-child {
    border-bottom: none;
}

.news-time {
    font-size: 0.8rem;
    color: var(--accent);
    font-family: monospace;
    min-width: 60px;
}

.news-content {
    flex: 1;
    margin-left: 1rem;
}

.news-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.news-source {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.news-type {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.news-type.news {
    background: rgba(52, 152, 219, 0.2);
    color: var(--info);
}

.news-type.social {
    background: rgba(241, 196, 15, 0.2);
    color: var(--warning);
}

/* News Summary */
.news-summary {
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    padding: 1rem;
    border-left: 3px solid var(--accent);
}

.news-summary h4 {
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.news-summary p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* News List (7 days) */
.news-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.news-list::-webkit-scrollbar {
    width: 8px;
}

.news-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.news-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.news-item {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
}

.news-item:hover {
    background: rgba(255,255,255,0.05);
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.news-item-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.news-item-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.news-item-source {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Focus Areas */
.news-focus {
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    padding: 1rem;
}

.news-focus h4 {
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.news-focus ul {
    list-style: disc;
    padding-left: 1.2rem;
}

.news-focus li {
    border-bottom: none;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .news-card.full-width {
        grid-column: 1;
    }
    
    .news-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .news-item-current {
        flex-direction: column;
    }
    
    .news-content {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}