/* ========================================
   BLOG DE NOTÍCIAS — STYLE.CSS
   Paleta: #fff, #111, #666, #e0e0e0, #cc0000, #1a2e4a, #f5f5f5
   ======================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', sans-serif;
  color: #111111;
  background-color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  color: #1a2e4a;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- CONTAINER --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #111111;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #FEFEFE;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 24px;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.header-logo:hover {
  opacity: 0.85;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111111;
  padding: 6px 14px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #cc0000;
  background-color: #f5f5f5;
}

.header-search {
  flex-shrink: 0;
}

.search-form {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.search-form:focus-within {
  border-color: #1a2e4a;
}

.search-input {
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: 0.85rem;
  width: 180px;
  background: transparent;
  color: #111;
}

.search-input::placeholder {
  color: #999;
}

.search-btn {
  border: none;
  background: none;
  padding: 8px 12px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.search-btn:hover {
  color: #cc0000;
}

.mobile-menu-btn {
  display: none;
  border: none;
  background: none;
  padding: 4px;
  cursor: pointer;
  color: #111;
}

/* ========================================
   NOTIFICATIONS
   ======================================== */
.notification {
  text-align: center;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.notification-success { background: #e8f5e9; color: #2e7d32; }
.notification-warning { background: #fff3e0; color: #e65100; }
.notification-error { background: #ffebee; color: #c62828; }

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
  min-height: calc(100vh - 60px - 300px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  padding: 32px 0;
  border-bottom: 1px solid #e0e0e0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 0;
  min-height: 420px;
}

.hero-main {
  padding-right: 28px;
  border-right: 1px solid #e0e0e0;
}

.hero-main-link {
  display: block;
}

.hero-main-link:hover .hero-main-title {
  color: #1a2e4a;
}

.hero-main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #f0f0f0;
}

.hero-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #cc0000;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 3px;
}

.hero-main-content {
  padding-top: 16px;
}

.hero-main-title {
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.hero-main-lide {
  font-size: 1rem;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 12px;
}

.hero-main-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: #999;
}

.meta-author {
  font-weight: 600;
  color: #666;
}

.meta-date {
  color: #999;
  font-size: 0.8rem;
}

/* Hero sidebar */
.hero-sidebar {
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-secondary-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  align-items: flex-start;
  transition: opacity 0.2s ease;
}

.hero-secondary-bordered {
  border-bottom: 1px solid #e0e0e0;
}

.hero-secondary-item:hover {
  opacity: 0.85;
}

.hero-secondary-item:hover .hero-secondary-title {
  color: #1a2e4a;
}

.hero-secondary-image {
  width: 110px;
  min-width: 110px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #f0f0f0;
}

.hero-secondary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-secondary-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #cc0000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-secondary-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color 0.2s ease;
}

/* ========================================
   CATEGORIES SECTION
   ======================================== */
.categories-section {
  padding: 40px 0;
  background-color: #f5f5f5;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.category-module {
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.category-module-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 3px solid #cc0000;
}

.category-module-title a:hover {
  color: #cc0000;
}

/* Category featured */
.category-featured {
  display: block;
  margin-bottom: 16px;
}

.category-featured-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: #222;
}

.category-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-featured:hover .category-featured-image img {
  transform: scale(1.05);
}

.category-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.category-featured-title {
  color: #fff;
  font-size: 1rem;
  line-height: 1.3;
}

/* Media object */
.media-object {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  transition: opacity 0.2s ease;
}

.media-object:last-child {
  border-bottom: none;
}

.media-object:hover {
  opacity: 0.8;
}

.media-object-image {
  width: 80px;
  min-width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 6px;
  background: #f0f0f0;
}

.media-object-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-object-content {
  flex: 1;
}

.media-object-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}

/* Placeholder images */
.placeholder-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  width: 100%;
  height: 100%;
}

.placeholder-large { min-height: 260px; }
.placeholder-small { min-height: 80px; }
.placeholder-featured { min-height: 180px; background: #333; }
.placeholder-thumb { min-height: 80px; }
.placeholder-card { min-height: 200px; }

/* ========================================
   POST PAGE
   ======================================== */
.post-page {
  padding: 32px 0 60px;
}

.post-layout {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 0;
}

.post-content-col {
  padding-right: 40px;
  border-right: 1px solid #e0e0e0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.breadcrumb a {
  color: #666;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: #cc0000;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: #ccc;
}

.breadcrumb-current {
  color: #111;
  font-weight: 500;
}

.post-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 14px;
}

.post-lide {
  font-size: 1.2rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.post-meta-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.post-meta-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #111;
}

.post-pub-date {
  font-size: 0.8rem;
  color: #999;
}

.post-cover-image {
  margin-bottom: 28px;
  border-radius: 6px;
  overflow: hidden;
}

.post-cover-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #222;
}

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

.post-body h2 {
  font-size: 1.5rem;
  margin-top: 32px;
  margin-bottom: 14px;
}

.post-body h3 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 10px;
}

.post-body ul, .post-body ol {
  margin-bottom: 18px;
  padding-left: 24px;
}

.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }

.post-body li {
  margin-bottom: 6px;
}

.post-body blockquote {
  border-left: 4px solid #cc0000;
  padding: 12px 20px;
  margin: 20px 0;
  background: #f5f5f5;
  font-style: italic;
  color: #444;
}

.post-body img {
  border-radius: 6px;
  margin: 20px 0;
}

/* Sidebar */
.post-sidebar {
  padding-left: 32px;
}

.sidebar-block {
  position: sticky;
  top: 80px;
}

.sidebar-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 14px;
  border-left: 3px solid #cc0000;
  margin-bottom: 20px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
}

.sidebar-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: flex-start;
  transition: opacity 0.2s ease;
}

.sidebar-item:hover {
  opacity: 0.75;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-rank {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #e0e0e0;
  min-width: 30px;
  line-height: 1;
}

.sidebar-item:nth-child(1) .sidebar-rank { color: #cc0000; }
.sidebar-item:nth-child(2) .sidebar-rank { color: #cc0000; opacity: 0.7; }
.sidebar-item:nth-child(3) .sidebar-rank { color: #cc0000; opacity: 0.5; }

.sidebar-item-content {
  flex: 1;
}

.sidebar-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}

.sidebar-empty {
  font-size: 0.85rem;
  color: #999;
}

/* ========================================
   CATEGORY PAGE
   ======================================== */
.category-page {
  padding: 32px 0 60px;
}

.category-page-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 3px solid #cc0000;
}

.category-page-title {
  font-size: 2rem;
  margin-bottom: 4px;
}

.category-page-count {
  font-size: 0.9rem;
  color: #666;
}

.category-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

.card-post {
  display: block;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-post:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-post-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}

.card-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-post:hover .card-post-image img {
  transform: scale(1.05);
}

.card-post-content {
  padding: 16px;
}

.card-post-title {
  font-size: 1.1rem;
  margin: 6px 0 8px;
  line-height: 1.35;
}

.card-post-lide {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   SEARCH PAGE
   ======================================== */
.search-page {
  padding: 32px 0 60px;
}

.search-page-header {
  margin-bottom: 28px;
}

.search-page-title {
  font-size: 1.75rem;
  margin-bottom: 6px;
}

.search-page-query {
  font-size: 0.95rem;
  color: #666;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-result-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #e0e0e0;
  align-items: flex-start;
  transition: opacity 0.2s ease;
}

.search-result-item:hover {
  opacity: 0.8;
}

.search-result-image {
  width: 160px;
  min-width: 160px;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 6px;
  background: #f0f0f0;
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-content {
  flex: 1;
}

.search-result-title {
  font-size: 1.15rem;
  margin: 4px 0 8px;
  line-height: 1.35;
}

.search-result-lide {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.pagination-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2e4a;
  padding: 8px 16px;
  border: 1px solid #1a2e4a;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.pagination-link:hover {
  background: #1a2e4a;
  color: #fff;
}

.pagination-disabled {
  color: #ccc;
  border-color: #e0e0e0;
  pointer-events: none;
}

.pagination-info {
  font-size: 0.85rem;
  color: #999;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 1rem;
}

/* ========================================
   ERROR PAGE
   ======================================== */
.error-page {
  padding: 80px 0;
}

.error-content {
  text-align: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 900;
  color: #e0e0e0;
  line-height: 1;
  margin-bottom: 10px;
}

.error-message {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  color: #666;
  margin-bottom: 28px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #FEFEFE;
  color: #ccc;
  padding: 48px 0 0;
  margin-top: 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #ddd;
}

.footer-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  color: #cc0000;
  margin-bottom: 12px;
}

.footer-subtitle {
  font-size: 1rem;
  color: #222;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #999;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  margin-top: 12px;
  gap: 0;
}

.newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #555;
  border-right: none;
  border-radius: 4px 0 0 4px;
  background: #fff;
  color: #111;
  font-size: 0.85rem;
  outline: none;
}

.newsletter-input::placeholder {
  color: #999;
}

.newsletter-input:focus {
  border-color: #cc0000;
}

.newsletter-btn {
  padding: 10px 18px;
  background: #cc0000;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-btn:hover {
  background: #a00000;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #666;
}
.footer-dev {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-dev a {
  display: inline-flex;
  align-items: center;
}
.footer-dev img {
  height: 24px;
  width: auto;
  vertical-align: middle;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #cc0000;
  color: #fff;
}

.btn-primary:hover {
  background: #a00000;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid #e0e0e0;
  color: #666;
}

.btn-outline:hover {
  border-color: #1a2e4a;
  color: #1a2e4a;
}

.btn-danger {
  background: transparent;
  border: 1px solid #cc0000;
  color: #cc0000;
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-danger:hover {
  background: #cc0000;
  color: #fff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* ========================================
   ADMIN — LAYOUT
   ======================================== */
.admin-body {
  background-color: #f0f2f5;
  min-height: 100vh;
  display: flex;
}

.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: #FEFEFE;
  color: #222;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
}

.admin-sidebar-brand {
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
}

.admin-sidebar-brand a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-sidebar-brand a img {
  height: 32px;
  width: auto;
  display: block;
}

.admin-sidebar-brand span {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: #888;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-nav {
  flex: 1;
  padding: 16px 0;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 0.9rem;
  color: #444;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.admin-nav a:hover {
  background: rgba(0,0,0,0.05);
  color: #111;
}

.admin-nav a.active {
  background: rgba(204,0,0,0.06);
  color: #cc0000;
  border-left-color: #cc0000;
}

.admin-sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar-footer a {
  font-size: 0.8rem;
  color: #666;
  transition: color 0.2s ease;
}

.admin-sidebar-footer a:hover {
  color: #111;
}

.logout-link:hover {
  color: #cc0000 !important;
}

.admin-main {
  flex: 1;
  margin-left: 240px;
  min-height: 100vh;
}

.admin-main-full {
  margin-left: 0;
}

.admin-topbar {
  background: #fff;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 40;
}

.admin-page-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-topbar-user {
  font-size: 0.85rem;
  color: #666;
}

.admin-content {
  padding: 28px 32px;
}

/* ========================================
   ADMIN — LOGIN
   ======================================== */
.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.admin-login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 40px 36px;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  text-align: center;
}

.admin-login-brand {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #cc0000;
  margin-bottom: 8px;
}

.admin-login-title {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 28px;
}

.admin-login-form {
  text-align: left;
}

.admin-login-back {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.85rem;
  color: #999;
}

.admin-login-back:hover {
  color: #1a2e4a;
}

/* ========================================
   ADMIN — CARDS & STATS
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-blue { background: #e3f2fd; color: #1565c0; }
.stat-icon-green { background: #e8f5e9; color: #2e7d32; }
.stat-icon-yellow { background: #fff3e0; color: #e65100; }
.stat-icon-red { background: #ffebee; color: #c62828; }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: #999;
  margin-top: 4px;
}

.admin-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 24px;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.admin-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.admin-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-count {
  font-size: 0.8rem;
  font-weight: 600;
  background: #f5f5f5;
  padding: 4px 12px;
  border-radius: 12px;
  color: #666;
}

/* ========================================
   ADMIN — TABLES
   ======================================== */
.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
}

.admin-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
}

.admin-table tr:hover td {
  background: #fafafa;
}

.td-title {
  max-width: 300px;
  font-weight: 600;
}

.td-slug {
  font-family: monospace;
  font-size: 0.8rem;
  color: #999;
}

.td-nowrap {
  white-space: nowrap;
}

.td-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.table-link {
  font-weight: 600;
  color: #1a2e4a;
}

.table-link:hover {
  color: #cc0000;
}

.table-empty {
  text-align: center;
  color: #999;
  padding: 40px 20px !important;
}

.inline-form {
  display: inline;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-publicado {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-rascunho {
  background: #fff3e0;
  color: #e65100;
}

/* Role badges */
.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.role-admin {
  background: #e3f2fd;
  color: #1565c0;
}

.role-jornalista {
  background: #f3e5f5;
  color: #6a1b9a;
}

/* Badge count */
.badge-count {
  font-size: 0.85rem;
  color: #888;
  font-weight: normal;
}

/* ========================================
   ADMIN — FORMS
   ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-group-lg {
  width: 100%;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #111;
  background: #fff;
  transition: border-color 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: #1a2e4a;
  box-shadow: 0 0 0 3px rgba(26,46,74,0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 200px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.form-textarea-sm {
  resize: vertical;
  min-height: 60px;
}

.form-select {
  appearance: auto;
}

.form-file {
  padding: 8px;
}

.form-help {
  display: block;
  font-size: 0.78rem;
  color: #999;
  margin-top: 4px;
}

.form-row {
  margin-bottom: 4px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 16px 24px 0;
}

.form-hint {
  font-size: 0.78rem;
  color: #999;
  font-weight: normal;
}

.form-row-inline {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
}

.form-row-inline .form-input {
  flex: 1;
}

.form-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: 8px;
}

.form-image-preview {
  margin-top: 10px;
}

.form-image-preview img {
  width: 200px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.form-image-preview small {
  display: block;
  margin-top: 4px;
  color: #999;
  font-size: 0.78rem;
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
  padding: 10px 0;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #cc0000;
  cursor: pointer;
}

/* Alerts */
.alert {
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin: 16px 24px;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

/* Admin pagination */
.admin-pagination {
  padding: 20px 24px;
  margin-top: 0;
  border-top: none;
}

/* Post form page */
.post-form {
  padding: 24px;
}

/* Inline add form */
.inline-add-form .form-row-inline {
  align-items: center;
}

.admin-form .btn {
  margin: 0 24px 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-main {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 24px;
  }

  .hero-sidebar {
    padding-left: 0;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .post-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .post-content-col {
    padding-right: 0;
    border-right: none;
  }

  .post-sidebar {
    padding-left: 0;
    border-top: 1px solid #e0e0e0;
    padding-top: 24px;
  }

  .sidebar-block {
    position: static;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .header-container {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
  }

  .header-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 12px 0;
    border-top: 1px solid #e0e0e0;
    gap: 0;
  }

  .header-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 10px 14px;
    width: 100%;
  }

  .header-search {
    flex: 1;
    min-width: 0;
  }

  .search-input {
    width: 100%;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
  }

  .hero-main-title {
    font-size: 1.35rem;
  }

  .category-page-grid {
    grid-template-columns: 1fr;
  }

  .search-result-item {
    flex-direction: column;
    gap: 12px;
  }

  .search-result-image {
    width: 100%;
    min-width: 100%;
    aspect-ratio: 16/9;
  }

  .post-title {
    font-size: 1.6rem;
  }

  .post-lide {
    font-size: 1.05rem;
  }

  /* Admin responsive */
  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-topbar {
    padding: 12px 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .post-form {
    padding: 16px;
  }

  .td-actions {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .hero-section {
    padding: 20px 0;
  }

  .hero-main-image {
    border-radius: 4px;
  }

  .hero-secondary-image {
    width: 80px;
    min-width: 80px;
  }

  .media-object-image {
    width: 60px;
    min-width: 60px;
    height: 60px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-login-card {
    padding: 28px 20px;
  }
}
