/* 🧱 TABLOID-STYLE FRONTEND - News Theme */

/* CSS Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.4;
  color: #000;
  background: #fff;
  min-height: 100vh;
}

/* TYPOGRAPHY - Condensed headlines, simple body text */
h1, h2, h3, h4, h5, h6 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

/* LAYOUT - CSS Grid structure */
.container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* HEADER - Full-width dramatic header */
.header {
  background: #000;
  color: #fff;
  position: relative;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* SITE TITLE */
.site-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 1rem 0;
  text-align: center;
  border-bottom: 2px solid #333;
  color: #fff;
  text-decoration: none;
}

/* MAIN NAVIGATION - Horizontal always visible */
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  gap: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  display: block;
  background: #333;
  border: 2px solid #333;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.nav-link.active {
  background: #ff0000;
  border-color: #ff0000;
}

/* DROPDOWN MENUS - Sharp, blocky design */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  border: 2px solid #ff0000;
  min-width: 300px;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  border-bottom: 1px solid #333;
  position: relative;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  font-size: 0.9rem;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
}

/* Child items under headings */
.dropdown-menu .dropdown-child {
  font-weight: 600; /* lighter than headers */
  padding-left: 1.5rem; /* visual indent */
  opacity: 0.95;
  font-size: 0.85rem;
  text-transform: uppercase; /* match real-british */
  color: #ccc; /* lighter than headers */
}

.dropdown-menu .dropdown-child:hover {
  background: #222; /* subtle hover, no red */
}

/* Header labels remain bold */
.dropdown-menu .dropdown-header {
  font-weight: 900;
}

.dropdown-menu a:hover {
  background: #ff0000;
}

.dropdown-menu hr {
  border: none;
  border-top: 2px solid #ff0000;
  margin: 0.5rem 0;
}

/* MOBILE MENU TOGGLE */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* MOBILE SLIDE-OUT MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #000;
  border-left: 4px solid #ff0000;
  z-index: 2000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  padding: 1rem;
  border-bottom: 2px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
}

.mobile-menu li {
  border-bottom: 1px solid #333;
}

.mobile-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.mobile-menu a:hover {
  color: #ff0000;
  background: #333;
}

/* OVERLAY FOR MOBILE MENU */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  display: none;
}

.mobile-overlay.active {
  display: block;
}

/* MAIN CONTENT - Grid layout */
.main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem 0;
}

/* ARTICLES - Dramatic layout */
.article {
  border-bottom: 3px solid #000;
  padding: 0.5rem 0 1rem 0;
  margin-bottom: 1rem;
}

/* HERO IMAGE - Full-width dramatic image */
.article-hero {
  margin: 0 0 1rem 0;
  border: 3px solid #000;
}

.hero-image-container {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.hero-placeholder {
  width: 100%;
  height: 400px;
  background: #f0f0f0;
  border: 3px dashed #666;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.placeholder-text {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.1em;
}

/* IMAGE CAPTION - Tabloid-style caption */
.image-caption {
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 2px solid #ff0000;
}

.article-title {
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  line-height: 0.85;
  letter-spacing: -0.05em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
  padding-left: 1.5rem;
  margin-right: 1rem;
  position: relative;
}

.article-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: #ff0000;
  transition: background-color 0.3s ease;
}

.article-title:hover::before {
  background: #cc0000;
}

.article-meta {
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.article-content {
  margin-bottom: 3rem;
  line-height: 1.3;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
  font-size: 1.1rem;
  color: #333;
  letter-spacing: -0.02em;
}

.article-content p {
  margin-bottom: 0.8rem;
  text-align: left;
  orphans: 3;
  widows: 3;
  font-weight: 400;
}

.article-content ul,
.article-content ol {
  margin-left: 2rem;
  margin-bottom: 0.8rem;
}

.article-content li {
  margin-bottom: 0.3rem;
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-align: left;
  text-indent: 0;
  border-bottom: 2px solid #000;
  padding-bottom: 0.5rem;
}

.article-tags {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e0e0e0;
  background: #f7f7f7;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.tags-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag-button {
  background: #ff0000;
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid #ff0000;
  transition: all 0.2s ease;
  display: inline-block;
}

.tag-button:hover {
  background: #000;
  color: white;
  border-color: #000;
}

/* LATEST STORIES SECTION */
.latest-stories {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  max-width: 100%;
  overflow-x: hidden;
  padding: 2rem;
}

/* STORY CARDS */
.story-card {
  background: white;
  padding: 1rem;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
  position: relative;
}

.story-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5%;
  width: 8px;
  height: 90%;
  background: red;
}

.featured-story {
  grid-column: span 2;
  padding: 2rem;
  background: #f8f8f8;
}

.story-image,
.story-image-placeholder {
  width: 100%;
  height: 300px;
  border: 1px dashed #333;
  margin-bottom: 1rem;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  font-weight: 700;
  overflow: hidden;
  position: relative;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-title {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  word-break: break-word;
  hyphens: auto;
  text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.story-title a {
  color: #000;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.story-title a:visited {
  color: #666;
  text-decoration: none !important;
}

.story-title a:hover {
  color: #ff0000;
  text-decoration: none !important;
}

.article-excerpt {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

/* BREADCRUMBS - Sharp, blocky */
.breadcrumbs {
  background: #f0f0f0;
  padding: 1.5rem 2rem;
  margin-bottom: 0;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.breadcrumbs a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.breadcrumbs a:hover {
  color: #ff0000;
}

/* BUTTONS - Strong accent colour */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #ff0000;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  border: 2px solid #ff0000;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #000;
  border-color: #000;
}

/* FOOTER - Full-width */
.footer {
  background: #000;
  color: #fff;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: 4px solid #ff0000;
}

.footer-rule {
  border: none;
  height: 2px;
  background: #333;
  margin: 2rem 0 1rem 0;
}

.footer-tagline {
  font-size: 0.8rem;
  color: #ccc;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

/* CONTAINER UTILITY */
.container-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .main-nav {
    display: none; /* Hide desktop nav on mobile */
  }

  .mobile-menu-toggle {
    display: block;
  }

  .site-title {
    padding-right: 4rem; /* Make room for hamburger */
  }

  .header {
    padding: 1.5rem 0;
  }
}

/* PAGE LAYOUT - Clean, content-focused styling for pages (not news articles) */
.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: #000;
  letter-spacing: -0.02em;
}

.page-date {
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #666;
  margin: 0;
  letter-spacing: 0.05em;
}

.page-content {
  line-height: 1.6;
  color: #333;
  font-size: 1.1rem;
}

.page-content p {
  margin-bottom: 1.2rem;
  text-align: left;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #000;
}

.page-content h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #ff0000;
  padding-bottom: 0.5rem;
}

.page-content h3 {
  font-size: 1.4rem;
}

.page-content ul,
.page-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content a {
  color: #ff0000;
  text-decoration: underline;
}

.page-content a:hover {
  color: #000;
}

/* Theme overrides per tenant */
:root {
  --color-accent: #ff0000; /* news tabloid theme accent - classic red */
  --color-primary: #000;
  --color-secondary: #333;
  --color-background: #fff;
  --color-surface: #f8f8f8;
  --color-border: #000;
}
