/*
Theme Name: Lovable Theme
Theme URI: https://example.com/lovable-theme
Author: Lovable
Author URI: https://lovable.dev
Description: Tema WordPress moderno, minimalista e responsivo, pronto para personalização. Compatível com blocos, menus, widgets e imagens destacadas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lovable-theme
Tags: blog, one-column, custom-menu, featured-images, translation-ready, block-styles, wide-blocks
*/

/* =========================
   Reset & Base
   ========================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

a { color: #2563eb; text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: #1d4ed8; text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  margin: 0 0 .6em;
  color: #0f172a;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }

p, ul, ol { margin: 0 0 1.2em; }

/* =========================
   Layout
   ========================= */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 1.25rem 0;
  background: #fff;
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-title { font-size: 1.25rem; font-family: Georgia, serif; margin: 0; }
.site-title a { color: #0f172a; }
.site-description { font-size: .85rem; color: #64748b; margin: 0; }

.site-main { padding: 2.5rem 0; }

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 2rem 0;
  text-align: center;
  color: #64748b;
  font-size: .9rem;
}

/* =========================
   Navigation
   ========================= */
.main-navigation ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 1.25rem; flex-wrap: wrap;
}
.main-navigation a {
  color: #334155; font-weight: 500;
}
.main-navigation a:hover { color: #0f172a; text-decoration: none; }

.menu-toggle {
  display: none;
  background: transparent; border: 1px solid #cbd5e1;
  padding: .45rem .75rem; border-radius: 6px; cursor: pointer;
}

@media (max-width: 640px) {
  .menu-toggle { display: inline-block; }
  .main-navigation { display: none; width: 100%; }
  .main-navigation.toggled { display: block; margin-top: 1rem; }
  .main-navigation ul { flex-direction: column; gap: .5rem; }
}

/* =========================
   Posts
   ========================= */
.post {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.post:last-child { border-bottom: none; }

.post-thumbnail { margin-bottom: 1.25rem; border-radius: 10px; overflow: hidden; }

.post-title { margin-bottom: .25rem; }
.post-title a { color: #0f172a; }

.post-meta {
  font-size: .85rem; color: #64748b; margin-bottom: 1rem;
}

.read-more {
  display: inline-block; margin-top: .5rem;
  font-weight: 600;
}

/* =========================
   Comments
   ========================= */
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment { padding: 1rem 0; border-bottom: 1px solid #e5e7eb; }

/* =========================
   Forms
   ========================= */
input[type="text"], input[type="email"], input[type="url"],
input[type="search"], textarea {
  width: 100%; padding: .65rem .8rem;
  border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 1rem; font-family: inherit;
}
button, input[type="submit"], .button {
  background: #0f172a; color: #fff; border: none;
  padding: .65rem 1.1rem; border-radius: 8px;
  font-weight: 600; cursor: pointer; transition: background .2s;
}
button:hover, input[type="submit"]:hover, .button:hover { background: #1e293b; }

/* =========================
   Pagination
   ========================= */
.pagination {
  display: flex; gap: .5rem; justify-content: center; margin-top: 2rem;
}
.pagination a, .pagination span {
  padding: .5rem .85rem; border: 1px solid #e5e7eb; border-radius: 6px;
}
.pagination .current { background: #0f172a; color: #fff; border-color: #0f172a; }

/* =========================
   Accessibility
   ========================= */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  height: 1px; width: 1px; overflow: hidden;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #0f172a; color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* =========================
   WP Core alignment
   ========================= */
.alignleft  { float: left;  margin: 0 1.25rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.25rem; }
.aligncenter{ display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: #64748b; text-align: center; }
