@charset "UTF-8";
/*
Theme Name: BootsPress-iespai
Theme URI: https://bootspress.com
Author: krusze & Antigravity
Author URI: https://krusze.com
Description: Modern Digital Newspaper design. Minimalist, editorial, and highly readable.
Version: 1.1.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bootspress
Tags: newspaper, editorial, minimalist, clean, two-columns
*/

/* --- Typography & Global --- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap");

:root {
  --bs-body-font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --heading-font: "Libre Baskerville", serif;

  /* Color Palette: "Modern Editorial" */
  --primary-color: #1a1a1a; /* Rich Black */
  --accent-color: #0047ab; /* Oxford Blue - Professional & Trustworthy */
  --accent-light: #e6effa;
  --paper-bg: #fcfcfc; /* Slight off-white like paper */
  --border-color: #ddd;
  --secondary-text: #555;
  --meta-text: #888;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--primary-color);
  background-color: var(--paper-bg);
  line-height: 1.6;
}

/* Global Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-color);
}

/* --- Layout Structure --- */
.site {
  border-top: 4px solid var(--primary-color); /* Newspaper header rule */
}

.site-main {
  min-width: 0; /* Prevents flex-item overflow */
}

.site-header {
  padding: 3rem 0 2rem;
  border-bottom: 3px double var(--border-color);
  margin-bottom: 3rem;
  text-align: center;
  background: var(--paper-bg); /* Use theme bg instead of transparent */
  position: relative;
  z-index: 1030;
}

.site-title {
  font-family: var(--heading-font);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: capitalize;
}

.site-title a {
  color: var(--primary-color);
  display: inline-block;
}

.site-title a::first-letter {
  color: #cc0000 !important; /* Editorial Red */
}

.site-description {
  font-family: var(--heading-font);
  font-style: italic;
  font-size: 1rem;
  color: var(--secondary-text);
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  display: inline-block;
  padding: 0.25rem 2rem;
}

/* --- Navigation --- */
.navbar {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding: 0.5rem 0;
}

.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-color) !important;
  padding: 0.75rem 1.25rem !important;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color) !important;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--paper-bg);
    padding: 1rem;
    border: 1px solid var(--border-color);
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
}

/* --- Multilevel Dropdown CSS --- */
@media (min-width: 992px) {
  /* Show dropdown on hover */
  .navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  /* Support for nested dropdowns (Level 3+) */
  .dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px; /* Align top with parent item */
  }

  /* Arrow for items with submenus */
  .dropdown-menu .dropdown-toggle::after {
    vertical-align: middle;
    border-top: 0.3em solid transparent;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
    border-right: 0;
    margin-left: 0.5em;
  }
}

/* Mobile adjustments for nested menus */
@media (max-width: 991.98px) {
  .dropdown-menu .dropdown-menu {
    border: none;
    padding-left: 1.5rem;
    background: transparent;
  }
  .dropdown-item {
    white-space: normal; /* Allow text wrapping on mobile */
  }
}

/* --- Header After / Search Block --- */
#header-after {
  margin-bottom: 4rem;
}

.wp-block-search {
  margin-bottom: 1.5rem;
}

.wp-block-search__label {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: block;
}

/* --- Content & Sidebar --- */
.entry-title {
  font-family: var(--heading-font);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.entry-meta {
  font-size: 0.75rem;
  color: var(--meta-text);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-meta a {
  color: var(--accent-color);
  font-weight: 600;
}

.post-thumbnail img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* --- Breadcrumbs (Migas de pan) --- */
.breadcrumb,
.breadcrumbs,
#breadcrumbs,
.breadcrumb-trail {
  font-size: 0.7rem;
  color: #cc0000; /* Editorial Red */
  margin-top: 0;
  margin-bottom: 0 !important; /* No space below */
  padding: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  list-style: none;
}

/* Reduce top margin of HR when following breadcrumbs */
.breadcrumb + hr,
.breadcrumbs + hr,
#breadcrumbs + hr,
.breadcrumb-trail + hr,
nav[aria-label="breadcrumb"] + hr {
  margin-top: 0.25rem !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #cc0000; /* Matching separator color */
}

.breadcrumb a,
.breadcrumbs a,
#breadcrumbs a,
.breadcrumb-trail a {
  color: #cc0000;
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumbs a:hover,
#breadcrumbs a:hover,
.breadcrumb-trail a:hover {
  text-decoration: underline;
}

.entry-content {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #333;
}

/* Singular view optimizations */
.singular .entry-content {
  max-width: 720px;
}

.entry-content p {
  margin-bottom: 2rem;
}

/* Headings within content */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.entry-content h2 {
  font-size: 2rem;
}
.entry-content h3 {
  font-size: 1.5rem;
}
.entry-content h4 {
  font-size: 1.25rem;
}

/* Drop-cap only for full articles (singular) */
.singular .entry-content > p:first-of-type::first-letter {
  font-family: var(--heading-font);
  float: left;
  font-size: 5rem;
  line-height: 0.85;
  margin: 0.1em 0.15em 0 0;
  font-weight: 700;
  color: var(--primary-color);
}

/* Archive Grid Adjustments */
.archive-grid .entry-title {
  font-size: 1.4rem;
  line-height: 1.3;
  margin-top: 0.5rem;
}

.archive-grid .editorial-article {
  border-bottom: none !important;
  padding-bottom: 1rem !important;
  margin-bottom: 2rem !important;
}

.archive-grid .entry-content {
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.75rem;
}

/* --- Widgets --- */
.widget-title {
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  display: block;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.widget {
  background: #fff;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

/* --- Recent Entries Widget --- */
.widget_recent_entries ul li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.widget_recent_entries li a {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}

/* --- Related Posts & Cards --- */
.related-post-card,
.card {
  border: none !important;
  background: transparent !important;
  transition: all 0.3s ease;
}

.related-post-title a,
.card-title a {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  color: #cc0000 !important; /* Editorial Red */
  font-weight: 700;
  line-height: 1.3;
}

.related-post-title a:hover,
.card-title a:hover {
  color: var(--primary-color) !important;
}

.card-text {
  font-size: 0.9rem;
  color: var(--secondary-text);
  line-height: 1.5;
  margin-top: 0.5rem;
}

.category-label {
  background-color: var(--accent-color);
  color: #fff;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* --- Footer --- */
.site-footer {
  background: #000;
  color: #fff;
  min-height: 100px;
  padding: 20px 0;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
}

.site-footer .widget {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 0;
  color: #fff;
}

.site-footer .widget-title {
  font-size: 0.9rem;
  border-bottom: 1px solid #fff;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  color: #fff;
}

.site-footer a {
  color: #fff !important;
}

.site-footer a:hover {
  color: var(--accent-light) !important;
}

.site-footer .site-info-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.site-footer .footer-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.site-footer .footer-navigation li {
  display: inline-block;
}

.site-footer .site-info,
.site-footer .widget_nav_menu ul {
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Desktop multi-column feel for archives */
@media (min-width: 992px) {
  .archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .archive-grid article {
    border-right: 1px solid var(--border-color);
    padding-right: 2rem;
  }

  .archive-grid article:last-child {
    border-right: none;
  }
}
