@import url('https://fonts.googleapis.com/css2?family=Boldonse&family=Sora:wght@100..800&display=swap');

:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --ink: #111111;
  --text-muted: #777777;
  --accent-color: #f90606;
  --accent-color-dark: #b50000;
  --border-color: #eeeeee;
  --header-bg: #ffffff;
  --card-bg: #ffffff;

  --font-display: "Boldonse", system-ui;
  --font-serif: "Sora", sans-serif;
  --font-body: "Sora", sans-serif;
}

[data-theme="dark"] {
  --bg-color: #111111;
  --text-color: #ffffff;
  --ink: #ffffff;
  --text-muted: #aaaaaa;
  --accent-color: #f90606;
  --accent-color-dark: #b50000;

  --border-color: #333333;
  --header-bg: #111111;
  --card-bg: #1a1a1a;
}

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


body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
  overflow-x: hidden;
	padding-top: var(--navbar-admin-h, 0);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* from wordpres */
.logged-in {
	--navbar-admin-h: 32px;
}
/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.serif-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: normal;
  text-transform: uppercase;
}

p {
  margin-bottom: 1rem;
}

/* Base Layout */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

main {
  flex: 1;
  padding-top: 80px; /* offset for header */
  animation: fadeIn 0.6s ease-out forwards;
}

/* Layout Utilities */
.grid {
  display: grid;
  gap: 24px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-center {
  justify-content: center;
}

/* Header & Nav */
header {
  position: fixed;
  top: var(--navbar-admin-h, 0);
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--header-bg);
  border-bottom: 2px solid var(--ink);
  padding: 10px 40px;
  transition:
    padding 0.3s ease,
    background-color 0.4s ease;
}

header .container {
  max-width: 1300px;
  padding: 0 40px;
}

header :where(.logo, .custom-logo-link) {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--bg-color); /* To match the stroke effect nicely */
  -webkit-text-stroke: 1.5px var(--accent-color);
  letter-spacing: -2px;
  line-height: 1;
  margin: 0;
}

[data-theme="dark"] .logo {
  color: var(--ink);
}

header :where(.logo, .custom-logo-link) span {
  display: none;
}

header :where(.logo, .custom-logo-link) > img {
  width: auto;
  height: 100%;
  max-height: 60px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 0;
}

/* Hide scrollbar for nav */
nav ul::-webkit-scrollbar {
  display: none;
}
nav ul {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s;
}

nav a::after {
  content: none;
}

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

.theme-toggle {
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--accent-color);
}

/* Home Layouts */
.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.section-link {
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-link:hover {
  color: var(--accent-color);
}

/* Featured Carousel */
.hero-carousel-wrapper {
  margin-bottom: 60px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 40px;
}
.hero-carousel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 500px;
  border: 2px solid var(--ink);
  background: var(--bg-color);
}
@media (max-width: 900px) {
  .hero-carousel {
    grid-template-columns: 1fr;
    height: auto;
    display: flex;
    flex-direction: column;
  }
}
.hc-images {
  position: relative;
  overflow: hidden;
  border-right: 2px solid var(--ink);
  height: 100%;
}
@media (max-width: 900px) {
  .hc-images {
    border-right: none;
    border-bottom: 2px solid var(--ink);
    height: 300px;
  }
}
.hc-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  /* filter: grayscale(80%); */
}
.hc-img.active {
  opacity: 1;
  /* filter: grayscale(0%); */
}
.hc-texts {
  position: relative;
  overflow: hidden;
  height: 100%;
  background: var(--bg-color);
}
.hc-text-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(40px); /* Slide effect */
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.hc-text-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hc-category {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 4px 12px;
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  align-self: flex-start;
}
.hc-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hc-title a:hover {
  color: var(--accent-color);
}
.hc-bajada {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.4;
}
.hc-meta,
.single-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  gap: 16px;
}
.hc-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.hc-dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  background: var(--bg-color);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s;
}
.hc-dot.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* Posts Grid (Archive & Sections) */
.posts-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.modern-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  border-radius: 0 0 2rem 0;
  background: var(--card-bg);
  transition: all 0.3s ease;
  position: relative;
  height: 100%;
}
.modern-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0px var(--accent-color);
}
.mc-image-box {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 2rem 0;
  border-bottom: 2px solid var(--ink);
}
.mc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 10/9;
  transition: transform 0.5s ease;
}
.modern-card:hover .mc-img {
  /* filter: grayscale(0%); */
  transform: scale(1.05);
}
.mc-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent-color);
  color: white;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}
.mc-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mc-date {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-color);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.mc-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.mc-bajada {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mc-readmore {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  display: inline-block;
  align-self: flex-start;
  transition: color 0.3s;
}
.modern-card:hover .mc-readmore {
  color: var(--accent-color);
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
  margin-bottom: 60px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  display: flex;
  align-items: flex-end;
  background: #222;
}

.bento-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-card:nth-child(2) {
  grid-column: span 2;
}
.bento-card:nth-child(3) {
  grid-column: span 1;
}
.bento-card:nth-child(4) {
  grid-column: span 1;
}

.bento-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* filter: grayscale(80%); */
  transition: filter 0.6s ease;
  z-index: 1;
}

.bento-card:hover .bento-img {
  /* filter: grayscale(0%); */
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.1) 60%,
    transparent 100%
  );
  z-index: 2;
}

.bento-content {
  position: relative;
  z-index: 3;
  padding: 24px;
  color: white;
}

.bento-content .category-tag {
  margin-bottom: 12px;
}

.bento-title {
  font-size: clamp(20px, 3vw, 32px);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: white;
  margin: 0;
}

/* Post View */
.single-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 5% 80px;
}

.breadcrumb {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 24px;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb a {
  color: var(--accent-color);
}
.breadcrumb span {
  color: var(--ink);
}

.post-header {
  margin-bottom: 40px;
}

.post-header .category-tag {
  margin-bottom: 20px;
}

.single-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.single-bajada {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--text-muted);
  margin-bottom: 32px;
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
}

.single-meta {
  justify-content: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 40px;
}

.single-hero-img {
  width: 100%;
  border: 1px solid var(--ink);
  margin-bottom: 40px;
  /* filter: grayscale(20%); */
}

.post-body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-color);
}

.post-body p {
  margin-bottom: 24px;
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin: 48px 0 24px;
  color: var(--ink);
}

.post-body blockquote {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 24px;
  margin: 40px 0;
  line-height: 1.2;
}

.post-tags {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 10px;
  background: var(--border-color);
  padding: 4px 12px;
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 0;
  border: none;
}

/* Footer */
footer {
  background: var(--bg-color);
  /* background-color: var(--accent-color); */
  color: var(--ink);
  border-top: 4px solid var(--ink);
  padding: 60px 0 40px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--bg-color);
  -webkit-text-stroke: 1.5px var(--ink);
  line-height: 1;
  margin-bottom: 16px;
}

[data-theme="dark"] .footer-logo {
  color: var(--ink);
  -webkit-text-stroke: 1px var(--text-color);
}

.footer-logo img {
	width: auto;
  max-height: 100px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-post {
    grid-template-columns: 1fr;
  }
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .bento-card:nth-child(2),
  .bento-card:nth-child(3),
  .bento-card:nth-child(4) {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  header {
    padding: 16px 20px;
  }

  .header-actions {
    display: none;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .bento-card:nth-child(1),
  .bento-card:nth-child(2),
  .bento-card:nth-child(3),
  .bento-card:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .single-title {
    font-size: 32px;
  }

  .single-bajada {
    font-size: 18px;
  }

  .post-body {
    font-size: 16px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-enter {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Scroll reveals */
/* .reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
} */

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.page-btn {
  padding: 8px 16px;
  border: 2px solid var(--ink);
  background: var(--bg-color);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--bg-color);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--text-muted);
}

.page-btn.active {
  background: var(--ink);
  color: var(--bg-color);
}
