/* Internet Infrastructure News Dashboard Styles */

.ind-loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.ind-dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 20px;
}

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

/* Header */
.ind-header {
    margin-bottom: 30px;
}

.ind-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.ind-header-subtitle {
    color: #666;
    font-size: 1rem;
}

.ind-last-updated {
    font-size: 0.875rem;
    color: #999;
    margin-top: 8px;
}

/* Controls */
.ind-controls {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.ind-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ind-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.ind-btn-filter {
    background: #f0f0f0;
    color: #333;
}

.ind-btn-filter:hover {
    background: #e0e0e0;
}

.ind-btn-filter.active {
    background: #2563eb;
    color: white;
}

.ind-btn-filter.active.outage {
    background: #dc2626;
}

.ind-btn-filter.active.security {
    background: #ea580c;
}

.ind-btn-filter.active.infrastructure {
    background: #2563eb;
}

.ind-btn-refresh {
    background: #16a34a;
    color: white;
}

.ind-btn-refresh:hover {
    background: #15803d;
}

.ind-btn-refresh:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* News Grid */
.ind-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .ind-news-grid {
        grid-template-columns: 1fr;
    }
}

/* News Card */
.ind-news-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.ind-news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ind-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.ind-relevance-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.ind-relevance-indicator.high {
    background: #dc2626;
}

.ind-relevance-indicator.medium {
    background: #eab308;
}

.ind-relevance-indicator.low {
    background: #16a34a;
}

.ind-category-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ind-category-badge.outage {
    background: #fee2e2;
    color: #991b1b;
}

.ind-category-badge.security {
    background: #ffedd5;
    color: #9a3412;
}

.ind-category-badge.infrastructure {
    background: #dbeafe;
    color: #1e40af;
}

.ind-card-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ind-card-summary {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ind-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.ind-card-source {
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
}

.ind-card-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ind-card-link:hover {
    color: #1e40af;
}

/* Empty State */
.ind-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ind-empty-state p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 20px;
}

/* Loading Spinner */
.ind-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.ind-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.ind-footer p {
    font-size: 0.875rem;
    color: #999;
    margin: 5px 0;
}

/* Status Pages Section */
.ind-status-section {
    margin-bottom: 40px;
}

.ind-status-section h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.ind-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .ind-status-grid {
        grid-template-columns: 1fr;
    }
}

.ind-status-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border-left: 4px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.ind-status-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ind-status-card.operational {
    border-left-color: #16a34a;
}

.ind-status-card.degraded {
    border-left-color: #eab308;
}

.ind-status-card.partial_outage {
    border-left-color: #ea580c;
}

.ind-status-card.major_outage {
    border-left-color: #dc2626;
}

.ind-status-card.check_required {
    border-left-color: #6b7280;
}

.ind-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ind-status-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
}

.ind-status-type {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ind-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

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

.ind-status-dot.operational {
    background: #16a34a;
}

.ind-status-dot.degraded {
    background: #eab308;
}

.ind-status-dot.partial_outage {
    background: #ea580c;
}

.ind-status-dot.major_outage {
    background: #dc2626;
}

.ind-status-dot.check_required {
    background: #6b7280;
}

.ind-status-text {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.ind-status-description {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.ind-status-link {
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ind-status-link:hover {
    color: #1e40af;
}

.ind-status-incidents {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.ind-incident {
    font-size: 0.75rem;
    color: #dc2626;
    margin: 4px 0;
    padding: 4px 8px;
    background: #fee2e2;
    border-radius: 4px;
}

.ind-section-divider {
    height: 2px;
    background: linear-gradient(to right, #e5e7eb, transparent);
    margin: 30px 0;
}
