/* ==========================================================================
   PFS News — America's Finest News Source Stylesheet
   ========================================================================== */

/* Main News Wrapper & Container */
.pfs-news-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

/* Authentic Newspaper Masthead */
.pfs-news-masthead {
  text-align: center;
  border-bottom: 4px solid #000000;
  padding-bottom: 14px;
  margin-bottom: 28px;
  position: relative;
}

.pfs-news-logo {
  font-size: 2.8rem;
  font-weight: 900;
  font-family: 'Arial Black', Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  color: var(--pfs-text-primary, #ffffff);
}

[data-theme="light"] .pfs-news-logo {
  color: #111827;
}

.pfs-news-tagline {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--pfs-text-muted, #94a3b8);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.pfs-news-edition-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--pfs-border-subtle, rgba(255, 255, 255, 0.1));
  border-bottom: 1px solid var(--pfs-border-subtle, rgba(255, 255, 255, 0.1));
  padding: 4px 8px;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pfs-text-secondary, #94a3b8);
}

/* Newspaper Article Paper Container */
.pfs-news-paper {
  background: var(--pfs-bg-surface-elevated, #161b22);
  border: 1px solid var(--pfs-border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  padding: 36px 44px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .pfs-news-paper {
    padding: 22px 18px;
  }
  .pfs-news-logo {
    font-size: 2.1rem;
  }
}

[data-theme="light"] .pfs-news-paper {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Article Typography */
.pfs-news-headline {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  letter-spacing: -0.02em;
  font-family: 'Times New Roman', Georgia, serif;
  color: var(--pfs-text-primary, #ffffff);
  margin-bottom: 14px;
}

[data-theme="light"] .pfs-news-headline {
  color: #0f172a;
}

@media (max-width: 768px) {
  .pfs-news-headline {
    font-size: 1.85rem;
  }
}

.pfs-news-subheadline {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  color: var(--pfs-text-secondary, #cbd5e1);
  margin-bottom: 18px;
  font-family: 'Times New Roman', Georgia, serif;
}

[data-theme="light"] .pfs-news-subheadline {
  color: #475569;
}

/* Article Metadata Banner */
.pfs-news-meta {
  color: var(--pfs-text-muted, #94a3b8);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--pfs-border-subtle, rgba(255, 255, 255, 0.1));
  padding-bottom: 10px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pfs-news-meta-category {
  color: var(--pfs-text-primary, #ffffff);
  font-weight: 800;
}

[data-theme="light"] .pfs-news-meta-category {
  color: #000000;
}

/* Article Image */
.pfs-news-figure {
  margin: 0 auto 24px;
  text-align: center;
}

.pfs-news-img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--pfs-border-subtle, rgba(255, 255, 255, 0.15));
  display: block;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.pfs-news-caption {
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--pfs-text-muted, #94a3b8);
  margin-top: 8px;
}

/* Drop Cap & Article Body */
.pfs-news-dropcap {
  font-size: 3.2rem;
  float: left;
  margin-top: -10px;
  margin-right: 8px;
  font-weight: 800;
  line-height: 1;
  font-family: 'Times New Roman', Georgia, serif;
  color: var(--pfs-text-primary, #ffffff);
}

[data-theme="light"] .pfs-news-dropcap {
  color: #0f172a;
}

.pfs-news-body p {
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 18px;
  font-family: 'Times New Roman', Georgia, serif;
  color: var(--pfs-text-primary, #e2e8f0);
}

[data-theme="light"] .pfs-news-body p {
  color: #1e293b;
}

/* ==========================================================================
   News Listing / Index Page Cards
   ========================================================================== */
.pfs-news-featured-card {
  background: var(--pfs-bg-surface-elevated, #161b22);
  border: 1px solid var(--pfs-border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.pfs-news-featured-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.pfs-news-link {
  color: var(--pfs-text-primary, #ffffff);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.pfs-news-link:hover {
  color: var(--pfs-text-secondary, #cbd5e1);
  text-decoration: underline;
}

[data-theme="light"] .pfs-news-link {
  color: #000000 !important;
}

[data-theme="light"] .pfs-news-link:hover {
  color: #334155 !important;
}

.pfs-news-badge {
  display: inline-block;
  padding: 0.2em 0.55em;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--pfs-text-primary, #ffffff);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .pfs-news-badge {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.pfs-news-featured-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 1px solid var(--pfs-border-subtle, rgba(255, 255, 255, 0.1));
}

.pfs-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.pfs-news-card {
  background: var(--pfs-bg-surface-elevated, #161b22);
  border: 1px solid var(--pfs-border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  height: 100%;
}

.pfs-news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.pfs-news-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background-color: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--pfs-border-subtle, rgba(255, 255, 255, 0.08));
}

.pfs-news-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pfs-news-card-headline {
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pfs-text-primary, #ffffff);
  margin-bottom: 8px;
}

[data-theme="light"] .pfs-news-card-headline {
  color: #0f172a;
}

.pfs-news-card-snippet {
  font-size: 0.875rem;
  color: var(--pfs-text-secondary, #94a3b8);
  line-height: 1.5;
  margin-bottom: 14px;
  flex-grow: 1;
}

.pfs-news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--pfs-text-muted, #64748b);
  border-top: 1px solid var(--pfs-border-subtle, rgba(255, 255, 255, 0.06));
  padding-top: 10px;
}

/* ==========================================================================
   Admin News Management UI Styles
   ========================================================================== */
.pfs-news-admin-upload-box {
  border: 2px dashed var(--pfs-border-subtle, rgba(255, 255, 255, 0.2));
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pfs-news-admin-upload-box:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.04);
}

.pfs-news-preview-thumbnail {
  max-width: 180px;
  max-height: 120px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--pfs-border-subtle, rgba(255, 255, 255, 0.15));
}

.pfs-news-textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.6;
  min-height: 220px;
  resize: vertical;
}
