/* Location-Based Forecast Bar */
.forecast-bar {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    overflow: hidden;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    margin: 0;
    box-sizing: border-box;
    min-height: 40px;
}

.forecast-bar.show {
    transform: translateY(0);
}

.forecast-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
    animation: drift 30s linear infinite;
}

@keyframes drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(40px); }
}

.forecast-content {
    position: relative;
    z-index: 2;
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.5rem, 2vw, 1rem);
    min-height: 38px;
    height: 100%;
    flex-wrap: nowrap;
    overflow: hidden;
}

.forecast-location {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    min-width: clamp(120px, 20vw, 160px);
    gap: clamp(4px, 1vw, 8px);
    flex-shrink: 0;
}

.forecast-location i {
    margin-right: 6px;
    font-size: 1em;
}

.admin-indicator {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: clamp(1px, 0.5vw, 2px) clamp(4px, 1vw, 8px);
    border-radius: clamp(8px, 2vw, 12px);
    font-size: clamp(0.6rem, 1.5vw, 0.75rem);
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    animation: admin-glow 2s ease-in-out infinite alternate;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-indicator:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.admin-indicator.redacted-active {
    background: rgba(220, 38, 38, 0.4);
    border-color: rgba(220, 38, 38, 0.6);
    animation: redacted-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes admin-glow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
    100% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); }
}

@keyframes redacted-pulse {
    0% { box-shadow: 0 0 5px rgba(220, 38, 38, 0.5); }
    100% { box-shadow: 0 0 15px rgba(220, 38, 38, 0.8); }
}

.forecast-main {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    flex: 1;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}

.forecast-temp {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-right: clamp(4px, 1vw, 8px);
    white-space: nowrap;
}

.forecast-condition {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    margin-right: 12px;
}

.forecast-condition i {
    font-size: 1.3em;
}

.forecast-details {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 12px);
    opacity: 0.95;
    flex-wrap: nowrap;
    overflow: hidden;
}

.forecast-detail {
    display: flex;
    align-items: center;
    gap: clamp(2px, 0.5vw, 3px);
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.forecast-detail i {
    font-size: 0.9em;
    opacity: 0.8;
}

.forecast-extended {
    display: flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 10px);
    font-size: clamp(0.65rem, 1.6vw, 0.8rem);
    opacity: 0.9;
    flex-wrap: nowrap;
    overflow: hidden;
    flex-shrink: 1;
}

.forecast-extended .detail {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.forecast-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8em;
    opacity: 0.8;
    flex-shrink: 0;
}

.forecast-close:hover {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transform: scale(1.05);
}

.location-permission-request {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 6px 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin: 0;
    box-sizing: border-box;
}

.location-permission-request.show {
    transform: translateY(0);
}

.permission-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.permission-text {
    margin-bottom: 8px;
    font-weight: 500;
}

.permission-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.btn-permission {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.btn-permission.allow {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-permission.allow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-permission.deny {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-permission.deny:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Alerts Button */
.alerts-btn {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border: none;
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    position: relative;
    overflow: hidden;
}

.alerts-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.alerts-btn:active {
    transform: translateY(0);
}

.alerts-btn i {
    font-size: 0.9em;
}

/* Info Button */
.info-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: white !important;
    padding: 8px 12px;
    border-radius: 50%;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    width: 36px;
    height: 36px;
    margin-left: 8px;
}

.info-btn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.info-btn:active {
    transform: translateY(0) scale(1);
}

/* Alerts Overlay */
.alerts-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.alerts-overlay.active {
    opacity: 1;
    visibility: visible;
}

.alerts-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.alerts-overlay.active .alerts-overlay-content {
    transform: translateY(0);
}

/* Info Overlay */
.info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.info-overlay.active {
    opacity: 1;
    visibility: visible;
}

.info-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.info-overlay.active .info-overlay-content {
    transform: translateX(0);
}

.info-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.info-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-header-left h2 {
    margin: 0;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
}

.info-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.info-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    color: white;
}

.alerts-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.alerts-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alerts-header-left h2 {
    margin: 0;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
}

.alerts-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.alerts-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.alerts-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    color: white;
}

.alerts-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: auto;
}

.alerts-section-header {
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #dc2626;
}

.alerts-section-header h3 {
    margin: 0;
    color: #dc2626;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-item-overlay {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border-left: 4px solid #ffffff;
    transition: all 0.2s ease;
}

.alert-item-overlay:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.alert-item-overlay.alert-severe {
    border-left-color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.alert-item-overlay.alert-moderate {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.alert-item-overlay.alert-minor {
    border-left-color: #60a5fa;
    background: rgba(96, 165, 250, 0.08);
}

.alert-title-overlay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.alert-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important;
}

.alert-title-left strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.alert-severity {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white !important;
}

.alert-local {
    background: #10b981;
    color: white !important;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 8px;
}

.alert-areas-overlay {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 12px;
    color: #cbd5e1;
    font-weight: 500;
}

.alert-description-overlay {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
    color: white !important;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #dc2626;
}

.alert-meta-overlay {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    color: white !important;
    font-size: 0.8rem;
}

.meta-item i {
    opacity: 0.7;
}

.no-alerts-overlay {
    text-align: center;
    padding: 60px 20px;
    color: white !important;
}

.no-alerts-overlay i {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 20px;
}

.no-alerts-overlay h3 {
    font-size: 1.5rem;
    margin: 0 0 12px 0;
    color: white !important;
}

.no-alerts-overlay p {
    font-size: 1rem;
    opacity: 0.8;
    color: white !important;
}

.alert-loading {
    text-align: center;
    padding: 40px;
    color: white !important;
    font-size: 1.1rem;
}

/* Info Sections */
.info-sections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #2563eb;
}

.info-section-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2563eb;
}

.info-section-header h3 {
    margin: 0;
    color: #60a5fa;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.office-details p {
    margin: 0;
    color: white;
    line-height: 1.6;
    opacity: 0.9;
}

.stations-list, .headlines-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.station-item, .headline-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

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

.station-header strong, .headline-header strong {
    color: white;
    font-size: 1rem;
}

.station-id {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.headline-important {
    background: #dc2626;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.station-details, .headline-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.station-details span, .headline-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.headline-summary {
    color: white;
    line-height: 1.5;
    margin-bottom: 12px;
    opacity: 0.9;
}

.headline-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.headline-link:hover {
    color: #93c5fd;
}

.no-stations, .no-headlines {
    color: #94a3b8;
    font-style: italic;
    margin: 0;
}

.info-loading, .info-error {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.info-error i {
    font-size: 3rem;
    color: #dc2626;
    margin-bottom: 16px;
}

.info-error h3 {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    color: white;
}

.info-error p {
    color: #cbd5e1;
    margin: 0;
}

.info-location-prompt {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.info-location-prompt i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 16px;
}

.info-location-prompt h3 {
    font-size: 1.3rem;
    margin: 0 0 12px 0;
    color: white;
}

.info-location-prompt p {
    color: #cbd5e1;
    margin: 0 0 20px 0;
}

.location-prompt-btn {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.location-prompt-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-1px);
}

.location-manual {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    margin-top: 16px;
}

.location-manual p {
    margin: 0 0 12px 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.manual-location-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 200px;
    margin-right: 8px;
}

.manual-location-input:focus {
    outline: none;
    border-color: #2563eb;
    background: rgba(255, 255, 255, 0.15);
}

.manual-location-input::placeholder {
    color: #94a3b8;
}

.manual-location-btn {
    background: rgba(37, 99, 235, 0.8);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.manual-location-btn:hover {
    background: rgba(37, 99, 235, 1);
}

.info-loading {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.info-loading i {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 16px;
}

.info-loading p {
    margin: 0;
    color: #cbd5e1;
}

/* Prevent body scroll when overlays are open */
body.alerts-view-open,
body.info-view-open {
    overflow: hidden !important;
}

/* Force white text on all overlay elements */
.alerts-overlay *,
.info-overlay * {
    color: white !important;
}

/* Add body offset when forecast bar is visible */
body.forecast-visible {
    padding-top: clamp(40px, 8vw, 50px);
}

body.permission-visible {
    padding-top: clamp(36px, 7vw, 44px);
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .forecast-extended {
        display: none;
    }
}

@media (max-width: 1024px) {
    .forecast-details .forecast-detail:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 768px) {
    .forecast-bar {
        padding: 4px 0;
        min-height: 36px;
    }
    
    .forecast-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 6px;
        min-height: 34px;
    }
    
    .forecast-location {
        min-width: auto;
        order: 1;
        flex: 1 1 100%;
        justify-content: center;
        margin-bottom: 2px;
    }
    
    .forecast-main {
        order: 2;
        flex: 1 1 auto;
        justify-content: center;
        gap: 6px;
    }
    
    .forecast-details {
        order: 3;
        flex: 1 1 100%;
        justify-content: center;
        gap: 6px;
    }
    
    .forecast-extended {
        display: none;
    }
    
    .alerts-btn {
        padding: 6px 12px;
        font-size: clamp(0.65rem, 1.6vw, 0.75rem);
    }
    
    .info-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
        font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    }
    
    .alerts-overlay-header,
    .info-overlay-header {
        padding: 16px 20px;
    }
    
    .alerts-overlay-body,
    .info-overlay-body {
        padding: 16px;
    }
    
    body.forecast-visible {
        padding-top: clamp(45px, 10vw, 60px);
    }
    
    body.permission-visible {
        padding-top: clamp(40px, 9vw, 50px);
    }
}

@media (max-width: 480px) {
    .forecast-details .forecast-detail:nth-child(n+2) {
        display: none;
    }
    
    .forecast-temp {
        font-size: clamp(1rem, 6vw, 1.2rem);
    }
    
    .forecast-main .forecast-condition {
        display: none;
    }
    
    .alerts-btn {
        padding: 5px 10px;
        font-size: clamp(0.6rem, 1.4vw, 0.7rem);
        gap: 4px;
    }
    
    .info-btn {
        width: 28px;
        height: 28px;
        padding: 4px;
        font-size: clamp(0.65rem, 1.6vw, 0.75rem);
    }
    
    .alert-meta-overlay {
        gap: 8px;
    }
    
    .meta-item {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .info-sections {
        gap: 16px;
    }
    
    .info-section {
        padding: 16px;
    }
    
    body.forecast-visible {
        padding-top: clamp(40px, 12vw, 55px);
    }
}

/* Hourly forecast styling */
.hourly-forecast-container {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 8px;
    background: rgba(8, 145, 178, 0.05);
    border: 1px solid var(--accent-blue);
}

.hourly-item {
    display: grid;
    grid-template-columns: 1fr 80px 2fr 1fr;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(8, 145, 178, 0.1);
    align-items: center;
    transition: background-color 0.2s ease;
}

.hourly-item:hover {
    background: rgba(8, 145, 178, 0.1);
}

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

.hourly-time {
    display: flex;
    flex-direction: column;
}

.hourly-time strong {
    color: var(--primary-blue);
    font-size: 1.1em;
    margin-bottom: 2px;
}

.hourly-date {
    font-size: 0.85em;
    color: #cbd5e1 !important;
}

.hourly-temp {
    text-align: center;
}

.temp-value {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--primary-blue);
}

.hourly-conditions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.condition-text {
    font-weight: 500;
    color: white !important;
}

.precip-chance {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: #0891b2;
}

.hourly-wind {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: white !important;
    justify-content: flex-end;
}

.forecast-footer {
    padding: 15px 20px;
    background: rgba(8, 145, 178, 0.05);
    border-top: 1px solid rgba(8, 145, 178, 0.1);
    border-radius: 0 0 8px 8px;
    font-size: 0.9em;
    color: white !important;
}

.forecast-footer i {
    color: var(--primary-blue);
    margin-right: 5px;
}

.no-forecast {
    text-align: center;
    padding: 40px 20px;
    color: white !important;
    font-style: italic;
}

/* Current observations styling */
.current-observations {
    padding: 20px;
    background: rgba(8, 145, 178, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
}

.obs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.obs-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: rgba(8, 145, 178, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(8, 145, 178, 0.2);
}

.obs-item i {
    color: var(--primary-blue) !important;
    width: 20px;
    text-align: center;
}

.obs-label {
    flex: 1;
    font-weight: 500;
    color: white !important;
}

.obs-value {
    font-weight: bold;
    color: var(--primary-blue) !important;
    font-size: 1.1em;
}

.obs-timestamp {
    font-size: 0.9em;
    color: #cbd5e1 !important;
    font-weight: normal;
}

.obs-description {
    padding: 15px;
    background: rgba(8, 145, 178, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--primary-blue);
}

.obs-description p {
    margin: 0;
    color: white !important;
}

.obs-description strong {
    color: var(--primary-blue) !important;
}

/* Headlines styling */
.headlines-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    background: rgba(8, 145, 178, 0.05);
    border: 1px solid rgba(8, 145, 178, 0.1);
}

.headlines-container * {
    color: white !important;
}

.headline-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(8, 145, 178, 0.1);
    transition: background-color 0.2s ease;
}

.headline-item * {
    color: white !important;
}

.headline-item:hover {
    background: rgba(8, 145, 178, 0.1);
}

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

.headline-item.headline-important {
    border-left: 3px solid #dc2626;
    background: rgba(220, 38, 38, 0.05);
}

.headline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 8px;
}

.headline-header * {
    color: white !important;
}

.headline-title {
    flex: 1;
}

.headline-title * {
    color: white !important;
}

.headline-title strong {
    color: white !important;
    font-size: 1.05em;
    line-height: 1.3;
}

.important-badge {
    display: inline-block;
    background: #dc2626;
    color: white !important;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    margin-left: 8px;
}

.headline-time {
    color: white !important;
    font-size: 0.85em;
    white-space: nowrap;
}

.headline-summary {
    color: white !important;
    font-size: 0.95em;
    line-height: 1.4;
    margin-bottom: 10px;
}

.headline-link {
    margin-top: 10px;
}

.headline-link * {
    color: white !important;
}

.headline-link a {
    color: white !important;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.headline-link a:hover {
    color: var(--light-blue) !important;
}

.headline-link a * {
    color: white !important;
}

.headline-link a i {
    color: white !important;
}

.office-badge {
    background: rgba(8, 145, 178, 0.2);
    color: var(--primary-blue) !important;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid rgba(8, 145, 178, 0.3);
}

/* Additional comprehensive white text enforcement for all sections */
.info-section h3 {
    color: white !important;
}

.info-section-header * {
    color: white !important;
}

.info-section-header span {
    color: var(--primary-blue) !important;
}

.headlines-container p,
.headlines-container span:not(.important-badge):not(.office-badge),
.headlines-container div:not(.important-badge):not(.office-badge) {
    color: white !important;
}

/* Force white text for ALL weather overlay content */
.weather-overlay * {
    color: white !important;
}

.weather-overlay h1,
.weather-overlay h2,
.weather-overlay h3,
.weather-overlay h4,
.weather-overlay h5,
.weather-overlay h6,
.weather-overlay p,
.weather-overlay span,
.weather-overlay div,
.weather-overlay li,
.weather-overlay td,
.weather-overlay th {
    color: white !important;
}

/* Exception for badges and special elements */
.weather-overlay .office-badge,
.weather-overlay .glossary-badge {
    color: var(--primary-blue) !important;
}

.weather-overlay .important-badge {
    color: white !important;
}

.weather-overlay .obs-value {
    color: var(--primary-blue) !important;
}

.weather-overlay .glossary-term strong {
    color: var(--primary-blue) !important;
}

@media (max-width: 768px) {
    .obs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .obs-item {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    
    .headline-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .headline-item {
        padding: 12px 15px;
    }
    
    .headlines-container {
        max-height: 300px;
    }
}

/* Glossary styling */
.glossary-container {
    max-height: 350px;
    overflow-y: auto;
    border-radius: 8px;
    background: rgba(8, 145, 178, 0.05);
    border: 1px solid rgba(8, 145, 178, 0.1);
}

.glossary-container * {
    color: white !important;
}

.glossary-item {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(8, 145, 178, 0.1);
    transition: background-color 0.2s ease;
}

.glossary-item:hover {
    background: rgba(8, 145, 178, 0.08);
}

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

.glossary-term {
    margin-bottom: 6px;
}

.glossary-term strong {
    color: var(--primary-blue) !important;
    font-size: 1.05em;
    font-weight: 600;
}

.glossary-definition {
    color: white !important;
    font-size: 0.9em;
    line-height: 1.4;
}

.glossary-badge {
    background: rgba(8, 145, 178, 0.2);
    color: var(--primary-blue) !important;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    border: 1px solid rgba(8, 145, 178, 0.3);
}

.glossary-footer {
    padding: 12px 18px;
    background: rgba(8, 145, 178, 0.05);
    border-top: 1px solid rgba(8, 145, 178, 0.1);
}

.glossary-footer p {
    margin: 0;
    color: #cbd5e1 !important;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.glossary-footer i {
    color: var(--primary-blue) !important;
}

@media (max-width: 768px) {
    .glossary-container {
        max-height: 250px;
    }
    
    .glossary-item {
        padding: 10px 15px;
    }
    
    .glossary-term strong {
        font-size: 1em;
    }
    
    .glossary-definition {
        font-size: 0.85em;
    }
}