/*
 * Economic News Portal - Custom CSS
 * Built with Tailwind CSS 3.x + Custom styles
 */

/* Screen reader only (ARIA compliance) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: #1e40af;
    color: white;
    z-index: 9999;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1e40af;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Custom focus styles (accessibility) */
*:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Comparison indicators */
.comparison-positive {
    color: #059669;
}

.comparison-negative {
    color: #dc2626;
}

.comparison-neutral {
    color: #6b7280;
}

/* Event cards */
.event-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Importance badges */
.badge-high {
    background-color: #dc2626;
    color: white;
}

.badge-medium {
    background-color: #f59e0b;
    color: black;
}

.badge-low {
    background-color: #10b981;
    color: white;
}

/* Table responsive */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}
