/* The Majorca Daily Bullshit - Custom Parody Broadsheet Styling */

:root {
  --off-red: #C93636;        /* Main masthead */
  --deep-red: #A92B32;       /* Accents, borders, badges */
  --pure-white: #FFFFFF;     /* Headlines & card backgrounds */
  --charcoal: #252525;       /* Main typography */
  --light-grey: #F4F4F4;     /* Page background */
  
  --border-rule: #E5E5E5;
  --text-muted: #666666;
  --serif-masthead: 'Cinzel', 'Playfair Display', Georgia, serif;
  --serif-headline: 'Playfair Display', Georgia, serif;
  --serif-body: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--light-grey);
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── TOP UTILITY STRIP ── */
.top-utility-bar {
  background-color: #1a1a1a;
  color: #a8a8a8;
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 1px solid #333333;
}

.top-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.date-weather-strip {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-weather {
  color: #ffcccc;
  font-weight: 500;
}

.utility-actions a {
  color: #cccccc;
  text-decoration: none;
  margin-left: 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.utility-actions a:hover {
  color: var(--pure-white);
}

.btn-satire-pill {
  background: var(--deep-red);
  color: #ffffff !important;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
}

/* ── SLEEK RED MASTHEAD (MATCHING BULLETIN EXACT PROPORTIONS) ── */
.site-masthead-hero {
  background-color: var(--off-red);
  padding: 10px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.masthead-inner-row {
  display: grid;
  grid-template-columns: 120px 1fr 180px;
  align-items: center;
}

.masthead-left {
  display: flex;
  align-items: center;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--pure-white);
  border-radius: 1px;
}

.masthead-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.masthead-stubborn-note {
  font-family: var(--serif-body);
  font-size: 10px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3px;
  letter-spacing: 0.2px;
}

.brand-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.newspaper-title-main {
  font-family: var(--serif-headline);
  font-size: 32px;
  font-weight: 900;
  color: var(--pure-white);
  letter-spacing: -0.5px;
  line-height: 1;
}

.newspaper-title-sub {
  font-family: var(--serif-headline);
  font-size: 14px;
  font-weight: 700;
  color: var(--pure-white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-top: 1px;
}

.masthead-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.btn-bulletin-sign {
  color: var(--pure-white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
}

.user-icon {
  font-style: normal;
  font-size: 11px;
}

.btn-bulletin-sub {
  background-color: var(--pure-white);
  color: var(--off-red);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 3px;
  transition: opacity 0.15s;
}

.btn-bulletin-sub:hover {
  opacity: 0.9;
}

/* ── WHITE NAVIGATION BAR (UNDERNEATH) ── */
.sub-nav-bar {
  background-color: var(--pure-white);
  border-bottom: 1px solid var(--border-rule);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.nav-links-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 13px 0;
  overflow-x: auto;
}

.nav-links-list a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease-in-out;
}

.nav-links-list a:hover,
.nav-links-list a.active {
  color: var(--off-red);
  border-bottom-color: var(--off-red);
}

/* ── PAGE LAYOUT & MAIN BODY ── */
.main-page-wrapper {
  padding: 24px 0 48px 0;
}

/* Top Ad / Banner Container */
.adsense-leaderboard {
  background: var(--pure-white);
  border: 1px solid var(--border-rule);
  padding: 12px;
  margin-bottom: 24px;
  text-align: center;
  border-radius: 4px;
}

.ad-label-tag {
  font-size: 10px;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.ad-mock-text {
  font-size: 13px;
  color: var(--charcoal);
}

/* ── BROADSHEET NEWSPAPER GRID ── */
.news-layout-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ── LEAD STORY (HERO RECTANGULAR PHOTO) ── */
.lead-story-panel {
  background: var(--pure-white);
  border: 1px solid var(--border-rule);
  border-radius: 4px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.category-pill {
  display: inline-block;
  background-color: var(--deep-red);
  color: var(--pure-white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.lead-headline {
  font-family: var(--serif-headline);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.lead-headline a {
  color: inherit;
  text-decoration: none;
}

.lead-headline a:hover {
  color: var(--off-red);
}

.lead-subheadline {
  font-family: var(--serif-body);
  font-size: 20px;
  line-height: 1.45;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
}

/* Large Rectangular Lead Photo */
.lead-photo-frame {
  margin-bottom: 18px;
  position: relative;
}

.lead-hero-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border-rule);
  display: block;
}

.lead-photo-caption {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  padding-top: 8px;
  display: block;
}

.lead-excerpt-box p {
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.65;
  color: #333333;
  margin-bottom: 14px;
}

.read-article-btn {
  display: inline-block;
  color: var(--off-red);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-article-btn:hover {
  text-decoration: underline;
}

.article-byline-strip {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border-rule);
  font-size: 12px;
  color: var(--text-muted);
}

/* ── SIDEBAR CARDS & ADS ── */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-box {
  background: var(--pure-white);
  border: 1px solid var(--border-rule);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.section-ribbon-title {
  font-family: var(--serif-headline);
  font-size: 19px;
  font-weight: 700;
  color: var(--charcoal);
  border-bottom: 2px solid var(--deep-red);
  padding-bottom: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.side-article-item {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-rule);
}

.side-article-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.side-article-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 10px;
  border: 1px solid var(--border-rule);
}

.side-article-title {
  font-family: var(--serif-headline);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.side-article-title a {
  color: var(--charcoal);
  text-decoration: none;
}

.side-article-title a:hover {
  color: var(--off-red);
}

.side-article-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.sidebar-ad-box {
  background: #fdf2f2;
  border: 1px dashed var(--deep-red);
  padding: 16px;
  text-align: center;
  border-radius: 4px;
}

/* ── MORE STORIES / FEED SECTION ── */
.more-stories-section {
  margin-top: 36px;
}

.stories-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story-card-white {
  background: var(--pure-white);
  border: 1px solid var(--border-rule);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
}

.card-img-wrap img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.card-content-wrap {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--serif-headline);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.card-title a {
  color: var(--charcoal);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--off-red);
}

.card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.card-meta-date {
  margin-top: auto;
  font-size: 12px;
  color: #999999;
}

/* ── SINGLE ARTICLE PAGE ── */
.article-reading-container {
  max-width: 820px;
  margin: 0 auto;
  background: var(--pure-white);
  border: 1px solid var(--border-rule);
  border-radius: 4px;
  padding: 36px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.single-page-headline {
  font-family: var(--serif-headline);
  font-size: 46px;
  font-weight: 900;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 12px 0 16px 0;
}

.single-page-sub {
  font-family: var(--serif-body);
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.article-hero-wrap img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border-rule);
}

.single-article-body {
  margin-top: 32px;
}

.single-article-body p {
  font-family: var(--serif-body);
  font-size: 19px;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.single-article-body p:first-of-type::first-letter {
  font-size: 58px;
  line-height: 0.8;
  float: left;
  margin-right: 10px;
  font-family: var(--serif-headline);
  color: var(--off-red);
  font-weight: 900;
}

/* ── SITE FOOTER & LEGAL DISCLAIMER ── */
.site-footer-bar {
  background-color: #1a1a1a;
  color: #a8a8a8;
  padding: 40px 0 30px 0;
  margin-top: 60px;
  font-size: 13px;
}

.legal-parody-container {
  background-color: #262626;
  border-left: 4px solid var(--off-red);
  padding: 20px 24px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.legal-parody-container h4 {
  color: var(--pure-white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.legal-parody-container p {
  font-size: 12px;
  line-height: 1.6;
  color: #b5b5b5;
  margin-bottom: 6px;
}

.copyright-subline {
  text-align: center;
  font-size: 12px;
  color: #777777;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .news-layout-grid {
    grid-template-columns: 1fr;
  }
  .stories-card-grid {
    grid-template-columns: 1fr;
  }
  .newspaper-title-main {
    font-size: 46px;
  }
  .newspaper-title-sub {
    font-size: 24px;
  }
  .lead-headline {
    font-size: 32px;
  }
  .lead-hero-img {
    height: 280px;
  }
  .article-reading-container {
    padding: 20px;
  }
  .single-page-headline {
    font-size: 30px;
  }
}

