/*
Theme Name: UFC Dark Theme
Author: You
Description: Tema oscura estilo UFC
Version: 1.0
*/

:root {
  --bg-main: #0b0b0f;
  --bg-secondary: #12121a;
  --accent: #e10600;
  --text-main: #ffffff;
  --text-muted: #888;
}

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

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
}

h1,h2,h3,h4 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

a {
  color: var(--text-main);
  text-decoration: none;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  z-index: 1000;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.logo a {
  font-size: 28px;
  color: var(--accent);
}

.nav-main ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.header__actions button {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* SEARCH */
.search-panel {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  background: var(--bg-secondary);
}

.search-panel.active {
  max-height: 100px;
  padding: 20px;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  transform: translateY(-100%);
  transition: 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu li {
  margin: 20px 0;
  font-size: 28px;
}

/* CONTENT */
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.post {
  margin-bottom: 40px;
}

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

.post-meta {
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* PAGE */
.archive-page {
  margin-top: 100px;
}

.archive-title {
  font-size: 36px;
  margin-bottom: 30px;
}

/* GRID */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* CARD */
.post-card {
  position: relative;
}

.post-card__inner {
  display: block;
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  overflow: hidden;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.05);
}

/* HOVER */
.post-card__inner:hover {
  transform: translateY(-6px);
  border-color: rgba(225,6,0,0.5);
}

/* IMAGE */
.post-card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* CONTENT */
.post-card__content {
  padding: 18px;
}

/* META */
.post-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

.post-card__cat {
  color: #e10600;
}

/* TITLE */
.post-card__title {
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
}

/* PAGINATION */
.pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

.pagination .page-numbers {
  margin: 0 5px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  color: #fff;
  transition: 0.2s;
}

.pagination .page-numbers:hover {
  background: #e10600;
}

.pagination .current {
  background: #e10600;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-card__image img {
    height: 180px;
  }
}
