/*
Theme Name: Dunamis Rock
Theme URI: https://dunamisrock.com
Description: Tema hijo de Hello Elementor para Dunamis Rock
Author: Dunamis Rock
Template: hello-elementor
Version: 1.0.0
Text Domain: dunamis-rock
*/

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Barlow+Condensed:wght@400;700&family=Barlow:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --red: #C0151A;
  --red-dark: #8B0F12;
  --yellow: #F5D000;
  --black: #0A0A0A;
  --black-mid: #151515;
  --black-light: #1E1E1E;
  --white: #F0EDE8;
  --gray: #888;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black) !important;
  color: var(--white) !important;
  font-family: 'Barlow', sans-serif !important;
}

/* ─── NAV ─── */
.site-header,
.elementor-location-header {
  position: fixed !important;
  top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.92) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(192,21,26,0.3) !important;
  height: 64px;
}

/* ─── BLOG ARCHIVE ─── */
.blog-header {
  padding: 120px 6vw 4rem;
  position: relative; overflow: hidden;
}
.blog-header::before {
  content: 'BLOG';
  position: absolute;
  font-family: 'Anton', sans-serif;
  font-size: clamp(8rem, 20vw, 18rem);
  color: rgba(192,21,26,0.05);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap; pointer-events: none;
}
.blog-header h1 {
  font-family: 'Anton', sans-serif !important;
  font-size: clamp(3rem, 7vw, 6rem) !important;
  line-height: 0.95 !important;
  text-transform: uppercase !important;
  color: var(--white) !important;
}
.blog-header h1 span { color: var(--red); }
.blog-header p {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; color: #666;
  letter-spacing: 0.08em; margin-top: 0.8rem;
}

/* ─── FILTER BAR ─── */
.filter-bar {
  padding: 0 6vw 2rem;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.filter-bar .filter-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: #555;
}
.filter-bar a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  background: transparent; color: #666;
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none; transition: all 0.2s;
}
.filter-bar a:hover, .filter-bar a.current {
  background: var(--red); color: var(--white); border-color: var(--red);
}

/* ─── BLOG LAYOUT ─── */
.blog-layout {
  padding: 0 6vw 6rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem; align-items: start;
}

/* ─── POSTS ─── */
.post-list { display: flex; flex-direction: column; gap: 2px; }

.post-card-featured {
  display: grid; grid-template-columns: 1.2fr 1fr;
  background: var(--black-mid); min-height: 300px;
  overflow: hidden; transition: background 0.2s;
  position: relative; text-decoration: none;
}
.post-card-featured::before {
  content: ''; position: absolute;
  top: 0; left: 0; width: 4px; height: 0;
  background: var(--red); transition: height 0.4s;
}
.post-card-featured:hover { background: var(--black-light); }
.post-card-featured:hover::before { height: 100%; }

.post-card-featured .post-thumb {
  position: relative; overflow: hidden; min-height: 280px;
}
.post-card-featured .post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.post-card-featured:hover .post-thumb img { transform: scale(1.04); }
.post-thumb-placeholder {
  width: 100%; height: 100%; min-height: 280px;
  background: linear-gradient(135deg, #1a0505, #0d0d0d);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: rgba(192,21,26,0.15);
}

.post-card-featured .post-body {
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column; justify-content: center;
}

.post-card {
  display: grid; grid-template-columns: 200px 1fr;
  background: var(--black-mid); overflow: hidden;
  transition: background 0.2s; position: relative;
  text-decoration: none;
}
.post-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--red); transition: width 0.35s;
}
.post-card:hover { background: var(--black-light); }
.post-card:hover::after { width: 100%; }

.post-card .post-thumb { min-height: 160px; }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-thumb-placeholder { min-height: 160px; font-size: 3rem; }

.post-card .post-body {
  padding: 1.5rem 1.8rem;
  display: flex; flex-direction: column; justify-content: center;
}

.post-cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 0.5rem;
}
.post-title {
  font-family: 'Anton', sans-serif !important;
  font-size: clamp(1.1rem, 2vw, 1.8rem) !important;
  line-height: 1.05 !important; text-transform: uppercase !important;
  color: var(--white) !important; margin-bottom: 0.7rem !important;
  transition: color 0.2s;
}
.post-card:hover .post-title,
.post-card-featured:hover .post-title { color: var(--red) !important; }

.post-excerpt {
  font-size: 0.86rem; color: #777; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.post-card .post-excerpt { -webkit-line-clamp: 2; }

.post-meta {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.08em; color: #555;
  margin-top: 1rem;
}
.post-meta .sep { color: var(--red); }

.read-more {
  display: inline-block; margin-top: 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); text-decoration: none; transition: color 0.2s;
}
.read-more::after { content: ' →'; }
.read-more:hover { color: var(--white); }

/* ─── PAGINATION ─── */
.dunamis-pagination {
  margin-top: 3rem;
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.dunamis-pagination a,
.dunamis-pagination span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 0.1em;
  min-width: 40px; height: 40px; padding: 0 0.8rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--black-mid); color: #666;
  text-decoration: none; transition: all 0.2s;
}
.dunamis-pagination a:hover,
.dunamis-pagination .current {
  background: var(--red); color: var(--white);
}

/* ─── SIDEBAR ─── */
.sidebar { display: flex; flex-direction: column; gap: 2px; }
.sidebar-block { background: var(--black-mid); padding: 1.8rem; }
.sidebar-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem; letter-spacing: 0.1em; color: var(--white);
  padding-bottom: 0.8rem; margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--red);
}
.search-wrap { display: flex; }
.search-wrap input {
  flex: 1; background: var(--black-light);
  border: 1px solid rgba(255,255,255,0.08); border-right: none;
  color: var(--white); padding: 0.7rem 1rem;
  font-family: 'Barlow', sans-serif; font-size: 0.85rem; outline: none;
}
.search-wrap input::placeholder { color: #444; }
.search-wrap button {
  background: var(--red); border: none; color: var(--white);
  padding: 0 1rem; cursor: pointer; font-size: 1rem; transition: background 0.2s;
}
.search-wrap button:hover { background: #e01a20; }

.sidebar .cat-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar .cat-list li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem 0.9rem; background: var(--black-light);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #888; text-decoration: none; transition: all 0.2s;
}
.sidebar .cat-list li a:hover { background: var(--red); color: var(--white); }
.sidebar .cat-list li a .count {
  font-size: 0.7rem; color: #555;
  background: var(--black-mid); padding: 0.15rem 0.5rem;
}
.sidebar .cat-list li a:hover .count { background: rgba(0,0,0,0.2); color: var(--white); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-cloud a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  background: var(--black-light); color: #666;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s;
}
.tag-cloud a:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* ─── SINGLE POST ─── */
.single-post-hero {
  padding: 100px 6vw 0;
  position: relative;
}
.single-post-hero .post-cat { margin-bottom: 1rem; }
.single-post-hero h1 {
  font-family: 'Anton', sans-serif !important;
  font-size: clamp(2.5rem, 6vw, 5rem) !important;
  line-height: 0.95 !important; text-transform: uppercase !important;
  color: var(--white) !important; max-width: 900px;
}
.single-post-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.5rem; padding-bottom: 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem; letter-spacing: 0.1em; color: #555;
  border-bottom: 1px solid rgba(192,21,26,0.2);
}
.single-post-meta .sep { color: var(--red); }
.single-post-featured-img {
  width: 100%; max-height: 500px;
  object-fit: cover; display: block;
  margin-top: 2.5rem;
}
.single-post-content {
  padding: 3rem 6vw 6rem;
  display: grid; grid-template-columns: 1fr 300px;
  gap: 4rem; align-items: start;
}
.post-content-body {
  font-size: 1.05rem; line-height: 1.8; color: #bbb;
}
.post-content-body h2 {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 2rem !important; letter-spacing: 0.08em !important;
  color: var(--white) !important; margin: 2.5rem 0 1rem !important;
}
.post-content-body h3 {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 1.3rem !important; font-weight: 700 !important;
  letter-spacing: 0.1em !important; text-transform: uppercase !important;
  color: var(--red) !important; margin: 2rem 0 0.8rem !important;
}
.post-content-body p { margin-bottom: 1.4rem; }
.post-content-body a { color: var(--red); text-decoration: none; }
.post-content-body a:hover { text-decoration: underline; }
.post-content-body blockquote {
  border-left: 4px solid var(--red);
  padding: 1rem 1.5rem; margin: 2rem 0;
  background: var(--black-mid);
  font-style: italic; font-size: 1.1rem; color: var(--white);
}
.post-content-body img { max-width: 100%; height: auto; margin: 1.5rem 0; }

/* ─── FOOTER ─── */
.site-footer {
  border-top: 1px solid rgba(192,21,26,0.2) !important;
  background: var(--black) !important;
  padding: 3rem 6vw 2rem !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .blog-layout, .single-post-content { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .post-card-featured, .post-card { grid-template-columns: 1fr; }
  .post-card-featured .post-thumb,
  .post-card .post-thumb { min-height: 200px; }
}
