/* ---------------------------------
   RockfordScanner.com Severe Weather Theme – Pulsing Glowing Headlines
-----------------------------------*/

/* --- Body & Typography --- */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px; /* article font */
    line-height: 1.6;
    color: #111111; /* dark professional text */
    background: #f9f9f9; /* light background */
    margin: 0;
    padding: 0;
}

/* --- Container --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Header & Footer --- */
header, footer {
    background: linear-gradient(90deg, #ff4d4d, #3366ff);
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-weight: bold;
    text-shadow: 0 0 5px #fff;
}

/* --- Top Story / Alert Glow Animation --- */
@keyframes pulseGlow {
    0% { text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000; color: #ff0000; }
    25% { text-shadow: 0 0 8px #ff0000, 0 0 15px #0000ff; color: #cc0000; }
    50% { text-shadow: 0 0 5px #0000ff, 0 0 12px #ff0000; color: #0000ff; }
    75% { text-shadow: 0 0 10px #ff0000, 0 0 15px #0000ff; color: #ff3300; }
    100% { text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000; color: #ff0000; }
}

/* --- Headlines with slow pulsing glow --- */
h1, h2, h3, h4 {
    font-family: "Georgia", serif;
    margin-bottom: 0.5em;
    animation: pulseGlow 6s infinite;
    text-align: left;
}

/* --- Article Cards --- */
.article-card {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    border-left: 6px solid #ff4d4d;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Top story highlight */
.article-card.top-story {
    border-left: 6px solid #3366ff;
    animation: pulseGlow 6s infinite;
}

/* Card hover effect */
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Headlines inside cards */
.article-card h2 {
    font-size: 1.8em;
    animation: pulseGlow 6s infinite;
}

/* Date & author info */
.article-card .date, .article-card .author {
    font-size: 0.9em;
    color: #555;
}

/* --- Alert Boxes --- */
.alert-box {
    background: #ffebcc;
    border-left: 6px solid #ff4d4d;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    animation: pulseGlow 6s infinite;
}

/* --- Links --- */
a {
    color: orange;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* Links opening in new windows (HTML target="_blank") */
a[target="_blank"] {
    /* Ensure HTML has target="_blank" */
}

/* --- Images --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    border-radius: 4px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .article-card {
        padding: 15px;
    }

    body {
        font-size: 18px;
    }
}