/* --- CSS STYLING --- */
body {
    background-color: #504e4e;
    color: #ffffff;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    user-select: none;
    box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}
.feed-container {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 30px;
  max-width: 1400px; /* Prevent it from getting too wide on huge monitors */
  margin: 0 auto; /* Center the container */
}

/* --- MEDIA QUERY FOR TABLETS AND DESKTOPS --- */
        /* When screen is wider than 768px (Tablet portrait and up) */
  @media (min-width: 768px) {
    .feed-container {
        /* Automatically create columns that are at least 350px wide */
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 40px;
    }
  }

.breaking {
  background-color: #ef4444;
  color: white;
  text-align: center;
  margin: 0 auto;
  width: 80%;
  white-space: nowrap;
  padding: 2px;
  font-size: 21px;
  border-radius: 30px;
  animation: breakingPulse 1s ease-in-out infinite;
}

@keyframes breakingPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Container for a single news item */
.news-item {
    border-top: 4px solid #ffa500;
    background-color: #1a2234;
    border-radius: 10px;
    margin-top: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column; 
}

.news-date {
    color: #00e5ff;
    font-size: 16px;
    margin-bottom: 5px;

    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    color: #ffa500;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

/* Larger title for larger screens */
@media (min-width: 1024px) {
  .news-title { font-size: 26px; }
}

.news-source {
    color: #0099cc; /* Blue color */
    font-size: 18px;
    margin-bottom: 15px;
    display: block;
    font-style: italic;
}

.news-body {
    color: #e0e0e0;
    font-size: 21px;
    margin-bottom: 25px;
}

/* Image styling (to prove we ignore it later) */
.news-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

/* Share Button Styling */
.share-btn {
    background-color: #0099cc;;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    text-transform: uppercase;
    transition: background-color 0.2s;
    align-self: flex-start; /* Align button to the left */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.share-btn:hover {
  background-color: #1a8bb8;
}

.share-btn:active {
    transform: scale(0.98);
}

/* SVG Icon inside button */
.share-icon {
    width: 20px;
    height: 20px;
    fill: white;
    margin-right: 10px;
}
