/*
Theme Name: Diário Gamer Brasil Minimal
Theme URI: https://example.com/
Author: Diário Gamer Brasil
Author URI: https://example.com/
Description: Tema gamer minimalista dark clean para o blog Diário Gamer Brasil.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diario-gamer-brasil
*/

/* Acessibilidade: texto apenas para leitores de tela */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  background: #020617;
  color: #f9fafb;
  box-shadow: 0 0 0 3px #a3ff12;
  z-index: 100000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background-color: #101014;
  color: #e5e7eb;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.8;
}

a {
  color: #3b82f6;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #a3ff12;
}

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

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pixel-title {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(10, 10, 18, 0.96);
  border-bottom: 1px solid #1f2937;
  backdrop-filter: blur(10px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.85rem 0;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.site-logo img {
  width: 60px;
  height: auto;
}

.site-title {
  margin: 0;
  font-size: 1rem;
}

.site-title a {
  color: #f9fafb;
}

.site-description {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-left: auto;
}

.header-search {
  margin-left: 1.5rem;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-label {
  font-size: 0.75rem;
  color: #9ca3af;
}

.search-field {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background-color: #020617;
  color: #e5e7eb;
  font-size: 0.8rem;
}

.search-field::placeholder {
  color: #6b7280;
}

.search-submit {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #3b82f6;
  background-color: #3b82f6;
  color: #0b1120;
  font-size: 0.7rem;
  text-transform: uppercase;
  cursor: pointer;
}

.search-submit:hover,
.search-submit:focus {
  border-color: #a3ff12;
  background-color: #a3ff12;
  color: #020617;
}

@media (max-width: 760px) {
  .wrapper {
    padding: 0 1rem;
  }

  .header-search {
    margin-left: 0;
    margin-top: 0.5rem;
    width: 100%;
  }

  .search-form {
    width: 100%;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .search-label {
    font-size: 0.7rem;
    flex: 0 0 auto;
  }

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

  .search-submit {
    flex: 0 0 auto;
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
    white-space: nowrap;
  }
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.8rem;
}

.main-navigation a {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #3b82f6;
  color: #3b82f6;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.hero {
  padding: 3rem 0 2rem;
  background: radial-gradient(circle at top, #111827 0, #101014 55%);
  border-bottom: 1px solid #1f2937;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.9fr 1.1fr;
  gap: 2.4rem;
}

.hero-featured {
  border-radius: 10px;
  border: 1px solid #1f2937;
  padding: 1.8rem;
  background-color: rgba(15, 23, 42, 0.98);
}

.hero-featured-label {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.28rem 0.7rem;
  background-color: #3b82f6;
  color: #0b1120;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.hero-featured-title {
  font-size: 1.7rem;
  margin: 0 0 0.9rem;
}

.hero-featured-meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 1.1rem;
}

.hero-featured-excerpt {
  font-size: 0.98rem;
  color: #e5e7eb;
}

.hero-featured-readmore {
  display: inline-flex;
  align-items: center;
  margin-top: 1.3rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.hero-featured-readmore span {
  margin-left: 0.4rem;
}

.hero-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-list-title {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #a3ff12;
}

.hero-list-item {
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background-color: rgba(17, 24, 39, 0.96);
}

.hero-list-item-title {
  margin: 0;
  font-size: 0.98rem;
}

.hero-list-item-meta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.section {
  padding: 2.8rem 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.9rem;
}

.section-title {
  margin: 0;
  font-size: 1.1rem;
}

.section-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.post-card {
  border-radius: 10px;
  border: 1px solid #1f2937;
  background-color: #111827;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease,
    box-shadow 0.15s ease;
}

.post-card:hover {
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

.post-card-thumb {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.post-card-title {
  margin: 0 0 0.7rem;
  font-size: 1.04rem;
}

.post-card-meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.8rem;
}

.post-card-excerpt {
  font-size: 0.95rem;
  color: #e5e7eb;
  margin-bottom: 0.9rem;
}

.post-card-footer {
  margin-top: auto;
  font-size: 0.8rem;
  color: #9ca3af;
}

.post-card-readmore {
  color: inherit;
  text-decoration: none;
}

.post-card-readmore:hover,
.post-card-readmore:focus {
  color: #3b82f6;
}

.content-area {
  padding: 2.8rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr);
  gap: 2.4rem;
}

.site-main article {
  border-radius: 10px;
  border: 1px solid #1f2937;
  background-color: #111827;
  padding: 1.9rem;
}

.entry-title {
  font-size: 1.8rem;
  margin: 0 0 1rem;
}

.entry-meta {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 1.4rem;
}

.entry-content {
  font-size: 0.98rem;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Gutenberg blocks que ocupam largura total no editor */
.entry-content .alignfull,
.entry-content .alignwide,
.entry-content figure.alignfull,
.entry-content figure.alignwide {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.entry-content iframe,
.entry-content video {
  max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  margin-top: 2.2rem;
}

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

.entry-footer {
  margin-top: 2.4rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.post-navigation {
  margin-top: 2.3rem;
  font-size: 0.85rem;
}

.related-posts {
  margin-top: 3.2rem;
}

.related-posts-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.related-post-item {
  border-radius: 8px;
  border: 1px solid #1f2937;
  padding: 0.95rem;
  background-color: #020617;
}

.related-post-item-title {
  margin: 0;
  font-size: 0.9rem;
}

.sidebar {
  border-radius: 10px;
  border: 1px solid #1f2937;
  background-color: #020617;
  padding: 1.8rem;
}

.widget {
  margin-bottom: 1.8rem;
}

.widget-title {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.archive-header {
  margin-bottom: 1.8rem;
}

.archive-title {
  margin: 0 0 0.9rem;
  font-size: 1.3rem;
}

.archive-description {
  margin: 0;
  font-size: 0.95rem;
  color: #9ca3af;
}

.archive-posts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.9rem;
}

.pagination {
  margin-top: 2.3rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid #1f2937;
  background-color: #020617;
  padding: 1.8rem 0;
  font-size: 0.85rem;
  color: #9ca3af;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: #3b82f6;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.footer-social-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-right: 0.25rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background-color: #020617;
  color: #e5e7eb;
  font-size: 0.75rem;
  text-decoration: none;
}

.footer-social-link:hover,
.footer-social-link:focus {
  border-color: #3b82f6;
  color: #3b82f6;
}

.footer-social-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background-color: #3b82f6;
  color: #0b1120;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.footer-social-text {
}

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

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

  .content-grid {
    grid-template-columns: 1.8fr 1.2fr;
  }

  .related-posts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 0.75rem;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-grid,
  .content-grid > *,
  .site-main article,
  .sidebar {
    width: 100%;
    max-width: 100%;
  }

  .site-main article,
  .sidebar {
    padding: 1.1rem;
  }

  .main-navigation {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-left: 0;
    margin-top: 0.8rem;
  }

  .main-navigation.toggled-on {
    display: flex;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .menu-toggle {
    display: inline-block;
  }

  .posts-grid,
  .archive-posts-list,
  .content-grid,
  .related-posts-list {
    grid-template-columns: 1fr;
  }

  /* Em telas pequenas, garante que nada dentro do conteúdo ultrapasse a largura */
  .content-area * {
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .content-area {
    padding: 2rem 0;
  }

  .content-grid,
  .content-grid > *,
  .site-main article,
  .sidebar {
    width: 100%;
    max-width: 100%;
  }

  .site-main article,
  .sidebar {
    padding: 0.9rem;
    border-radius: 0;
  }
}
