/* 🧱 TABLOID-STYLE FRONTEND - Real British Alternative News */

/* 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;
}

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

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

/* NESTED DROPDOWNS - For subcategories */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu-menu {
  position: absolute;
  left: 100%;
  top: 0;
  background: #000;
  border: 2px solid #ff0000;
  min-width: 200px;
  z-index: 1001;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.dropdown-submenu:hover .dropdown-submenu-menu {
  display: block;
}

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

.dropdown-submenu-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;
}

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

/* DROPDOWN TRIGGER - Non-clickable trigger for nested dropdowns */
.dropdown-trigger {
  cursor: pointer;
  pointer-events: none;
}

/* Dropdown menu styling */
.dropdown-header {
  font-weight: bold;
  color: #333;
  padding: 8px 16px;
  background: #f8f8f8;
}

.nested-item {
  padding-left: 24px;
  margin-left: 8px;
}

.nested-item a {
  color: #666;
  font-size: 0.9em;
  border-left: 4px solid #d32f2f;
  padding-left: 12px;
  margin: 4px 0;
  display: block;
}

.nested-item a:hover {
  color: #d32f2f;
}

/* Mobile menu styling */
.mobile-header {
  font-weight: bold;
  color: #000;
  padding: 8px 16px;
  background: #f0f0f0;
}

.mobile-submenu .nested-item {
  padding-left: 24px;
  margin-left: 8px;
}

.mobile-submenu .nested-item a {
  color: #666;
  font-size: 0.9em;
  border-left: 4px solid #d32f2f;
  padding-left: 12px;
  margin: 4px 0;
  display: block;
}

/* 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;
}

.mobile-submenu {
  background: #333;
  display: none;
}

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

.mobile-submenu li {
  border-bottom: 1px solid #444;
}

.mobile-submenu a {
  font-size: 0.9rem;
  padding: 0.75rem 1rem 0.75rem 2rem;
}

/* MOBILE NESTED DROPDOWNS */
.mobile-dropdown-submenu {
  position: relative;
}

.mobile-sub-submenu {
  background: #444;
  display: none;
}

.mobile-sub-submenu.active {
  display: block;
}

.mobile-sub-submenu li {
  border-bottom: 1px solid #555;
}

.mobile-sub-submenu a {
  font-size: 0.8rem;
  padding: 0.75rem 1rem 0.75rem 3rem;
}

/* 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.5rem;
  font-weight: 700;
  text-transform: none;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-align: left;
  color: #000;
  border-bottom: none;
  padding-bottom: 0;
}

.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;
}

@media (max-width: 768px) {
  .featured-story {
    grid-column: span 1;
  }
}

.article-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 100%;
  overflow-x: hidden;
}

.homepage-article .article-content {
  margin-bottom: 0;
  padding: 0;
  max-width: none;
}

.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;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #000;
}

.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;
}

/* ARTICLE HEADER CONTAINER */
.article-header {
  margin-bottom: 1rem;
}

/* 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;
  }
}

/* ENHANCED BUTTON STYLES */
.button-red {
  background: #ff0000;
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  transition: background 0.2s ease;
}

.button-red:hover {
  background: #cc0000;
}

/* PAGINATION */
.pagination {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f8f8;
  border: 2px solid #000;
  text-align: center;
}

.pagination-info {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #333;
}

.pagination-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pagination-links .btn {
  min-width: 120px;
}

/* CATEGORY PAGE */
.category-header {
  background: #f0f0f0;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid #ff0000;
}

.category-header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #000;
}

