/*
Theme Name: Devcore
Theme URI:  https://example.com/devcore
Author:     dev
Description: Tema mínimo para desenvolvimento — apenas listagem de posts sem estilos.
Version:    1.0
License:    GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: devcore
*/

/* Nenhum estilo intencionalmente */

/* Set Roboto as the main font and provide utility classes for weights */
body {
  font-family: Roboto, "Roboto Fallback", system-ui, -apple-system, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
}

/* Override Bootstrap primary color using CSS variables */
:root {
  /* primary base */
  --bs-primary: rgb(17, 110, 201);
  /* primary rgb used by some Bootstrap utilities (r, g, b) */
  --bs-primary-rgb: 17, 110, 201;
}

/* Extra Bootstrap semantic variables and handy derivations */
:root {
  /* Text color to use on primary backgrounds */
  --bs-primary-text: #ffffff;
  /* Slightly lighter/darker variants if you want to reference them */
  --bs-primary-hover: #1479cc; /* user-provided hover */
  --bs-primary-active: rgb(12, 90, 165);
  /* translucent background helper */
  --bs-primary-10: rgba(var(--bs-primary-rgb), 0.1);
}

/* Force key Bootstrap components to use the primary variables (covers cases where vars didn't apply) */
.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-primary-text) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--bs-primary-hover) !important;
  border-color: var(--bs-primary-hover) !important;
}

/* Links and utility text-primary */
.text-primary,
a.text-primary,
a {
  color: var(--bs-primary) !important;
}
a:hover,
a:focus {
  color: var(--bs-primary-hover) !important;
}

.roboto-100 {
  font-weight: 100;
}
.roboto-200 {
  font-weight: 200;
}
.roboto-300 {
  font-weight: 300;
}
.roboto-400 {
  font-weight: 400;
}
.roboto-500 {
  font-weight: 500;
}
.roboto-600 {
  font-weight: 600;
}
.roboto-700 {
  font-weight: 700;
}
.roboto-800 {
  font-weight: 800;
}
.roboto-900 {
  font-weight: 900;
}
.site-title {
  font-weight: 700;
}

/* Navbar link colors (specific to header) */
.nav-item a,
header .container a.me-3 {
  color: #1d2025;
  transition: color 200ms ease;
}

.nav-item a:hover,
header .container a.me-3:hover,
.nav-item a:focus,
header .container a.me-3:focus {
  color: #1479cc;
}

/* Ensure strong specificity against Bootstrap defaults */
.nav-item a,
header .container a.me-3 {
  color: #1d2025 !important;
  transition: color 200ms ease !important;
}

.nav-item a:hover,
header .container a.me-3:hover {
  color: #1479cc !important;
}

/* Ensure links in header don't show underline (also usable via Bootstrap class text-decoration-none) */
header .container a {
  text-decoration: none;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav-item a,
  header .container a.me-3 {
    transition: none !important;
  }
}

/* Skip-link: visually hidden but becomes visible on focus */
.visually-hidden-focusable {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.visually-hidden-focusable:focus {
  position: static;
  left: auto;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1050;
}

/* Hero section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: #eef6fb; /* light blue-gray tone */
  padding: 3rem 0;
}
.hero-inner {
  gap: 2rem;
}
.hero-content {
  text-align: left;
}
.hero-content .display-4 {
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.05;
}
.hero-media img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

@media (max-width: 767.98px) {
  .hero {
    padding: 2rem 0;
  }
  .hero-media {
    margin-top: 1.5rem !important;
  }
  .hero-content {
    text-align: center;
  }
}

/* Navbar: start transparent, become white with shadow on scroll */
.navbar {
  background-color: transparent !important;
  transition: background-color 0.25s ease, box-shadow 0.25s ease,
    padding 0.25s ease;
}
.navbar.navbar-scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}

/* Higher-specificity selector to ensure scrolled state overrides other rules */
#site-navbar.navbar-scrolled {
  background-color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06) !important;
}

/* Slightly increase z-index so navbar stays above hero content when needed */
.navbar {
  z-index: 1030;
}

/* Make the site navbar fixed at the top and compensate main with its height */
#site-navbar.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* expose the navbar height as CSS variable; main uses this to shift content down */
main {
  padding-top: var(--site-navbar-height, 0px);
}

/* improve anchor jump behavior when navbar is fixed */
:root {
  scroll-padding-top: var(--site-navbar-height, 0px);
}

/* Card image zoom effect on hover */
.card-img-top-link:hover .card-img-zoom {
  transform: scale(1.05);
}

/* Card shadows and spacing */
.card {
  border: none;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12) !important;
}

/* Card title link hover */
.card-title a:hover {
  color: var(--bs-primary) !important;
}

/* Footer styles */
.site-footer {
  background-color: #1a1a1a;
}

.site-footer h5 {
  font-weight: 700;
  font-size: 16px;
  color: rgb(29, 32, 37);
}

.site-footer a,
.site-footer p {
  color: #6b7280 !important;
  font-size: 16px;
  font-weight: 400;
}

.site-footer a:hover {
  color: var(--bs-primary-hover) !important;
}

.site-footer .form-control {
  background-color: #2d2d2d;
  border-color: #3d3d3d;
  color: #ffffff;
}

.site-footer .form-control:focus {
  background-color: #2d2d2d;
  border-color: var(--bs-primary);
  color: #ffffff;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.site-footer .form-control::placeholder {
  color: #999;
}

/* Single Post Styles */
.single-post .entry-title {
  line-height: 1.2;
  margin-bottom: 1rem;
}

.single-post .post-meta {
  font-size: 0.95rem;
}

.single-post .post-thumbnail img {
  object-fit: cover;
  max-height: 500px;
}

.single-post .post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.single-post .post-content p {
  margin-bottom: 1.5rem;
}

.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.single-post .post-content h2 {
  font-size: 1.75rem;
}

.single-post .post-content h3 {
  font-size: 1.5rem;
}

.single-post .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.single-post .post-content blockquote {
  border-left: 4px solid var(--bs-primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
}

.single-post .post-content ul,
.single-post .post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.single-post .post-content li {
  margin-bottom: 0.5rem;
}

.single-post .post-content code {
  background-color: #f5f5f5;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #e83e8c;
}

.single-post .post-content pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.single-post .post-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.post-navigation a {
  color: #333;
  transition: color 0.2s ease;
}

.post-navigation a:hover {
  color: var(--bs-primary);
}

.post-tags .badge {
  font-weight: 400;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #dee2e6;
}

.post-tags .badge:hover {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
  border-color: var(--bs-primary) !important;
}

@media (max-width: 767.98px) {
  .single-post .post-content {
    font-size: 1rem;
  }

  .single-post .entry-title {
    font-size: 2rem !important;
  }

  .post-navigation {
    flex-direction: column;
    gap: 1.5rem;
  }

  .post-navigation .nav-next {
    text-align: left !important;
  }
}

.site-footer {
  border-top: 1px solid #e5e7eb;
}
