/*
Theme Name: Rezeta
Theme URI: https://rezeta.com.br
Author: Rezeta
Author URI: https://rezeta.com.br
Description: Tema simples e moderno para WordPress, otimizado para Elementor e páginas HTML. Permite personalização completa de header e footer via Customizer ou templates Elementor.
Version: 1.0.0
Tested up to: 6.4
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: rezeta
Tags: custom-logo, custom-menu, elementor, full-width-template, translation-ready

Rezeta Theme - Um tema WordPress moderno e flexível.
*/

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

html {
    line-height: 1.15;
    -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: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1em;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005177;
}

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

.rezeta-content-area {
    padding: 40px 0;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   Images
   ========================================================================== */
img {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

/* ==========================================================================
   Forms
   ========================================================================== */
button,
input,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    cursor: pointer;
}

/* ==========================================================================
   WordPress Core
   ========================================================================== */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875em;
    color: #666;
    text-align: center;
    padding: 0.5em 0;
}

/* ==========================================================================
   Elementor Compatibility
   ========================================================================== */
.elementor-page .rezeta-content-area {
    padding: 0;
}

/* ==========================================================================
   Single Post Page — Spacing & Layout
   ========================================================================== */
.single .entry-header {
    margin-bottom: 1.5rem;
}

.single .entry-title {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.single .entry-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.single .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.single .entry-footer {
    padding: 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #64748b;
}

.single .entry-footer a {
    color: #0073aa;
}

/* ==========================================================================
   Single Post — Sidebar Ads (Fixed in viewport margins)
   ========================================================================== */
.rezeta-single-sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    max-width: 230px;
    transition: opacity 0.3s ease;
}

.rezeta-single-sidebar--left {
    right: calc(50% + 600px + 60px);
}

.rezeta-single-sidebar--right {
    left: calc(50% + 600px + 60px);
}

.rezeta-single-sidebar img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hide sidebars when screen is too narrow */
@media (max-width: 1799px) {
    .rezeta-single-sidebar {
        display: none;
    }
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */
.post-navigation {
    margin: 3rem 0;
    padding: 0;
    border: none;
}

.post-navigation .nav-links {
    display: flex;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 24px;
    transition: background 0.2s ease, transform 0.2s ease;
    border: 1px solid #e2e8f0;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 6px;
}

.post-navigation .nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.post-navigation .nav-next {
    text-align: right;
}

@media (max-width: 768px) {
    .post-navigation .nav-links {
        flex-direction: column;
    }
}

/* ==========================================================================
   Comments Section
   ========================================================================== */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid #e2e8f0;
}

.comments-area .comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 12px;
}

.comments-area .comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #c00;
    border-radius: 2px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    margin-bottom: 1.5rem;
}

.comment-list .comment-body {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid #e2e8f0;
    position: relative;
}

.comment-list .comment-body:hover {
    border-color: #cbd5e1;
}

.comment-meta.comment-metadata {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-author .avatar {
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
}

.comment-author .fn {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.comment-author .says {
    display: none;
}

.comment-metadata a {
    color: #94a3b8;
    font-size: 0.8rem;
}

.comment-metadata a:hover {
    color: #64748b;
}

.comment-content {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
}

.comment-content p {
    margin-bottom: 0.5em;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 12px;
}

.reply .comment-reply-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0073aa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #e0f2fe;
    transition: background 0.2s ease;
}

.reply .comment-reply-link:hover {
    background: #bae6fd;
}

/* Nested replies */
.comment-list .children {
    list-style: none;
    padding-left: 30px;
    margin: 0;
    border-left: 2px solid #e2e8f0;
}

@media (max-width: 768px) {
    .comment-list .children {
        padding-left: 15px;
    }
}

/* ==========================================================================
   Comment Form
   ========================================================================== */
.comment-respond {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.comment-respond .comment-reply-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    background: #fff;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
    margin: 1rem 0;
}

.comment-form .form-submit {
    margin-top: 1rem;
}

.comment-form .submit {
    display: inline-block;
    padding: 12px 32px;
    background: #c00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.comment-form .submit:hover {
    background: #a00;
    transform: translateY(-1px);
}

.comment-form p {
    margin-bottom: 1.2rem;
}

.comment-notes {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}