/**
 * Estilos adicionais e ajustes do tema
 * 
 * @package JaguariunaOnline
 * @author Dante Testa (https://dantetesta.com.br)
 * @since 27/11/2024
 */

/* ========================================
   AJUSTES ADICIONAIS DE LAYOUT
   ======================================== */

/* Avatar arredondado */
.rounded-full {
    border-radius: 50%;
}

/* Efeito de loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   ESTILOS DO FORMULÁRIO DE COMENTÁRIOS
   ======================================== */

.comment-form {
    background: #fff;
    padding: 2rem;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--cor-borda);
    border-radius: var(--raio-borda);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transicao);
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.comment-form .submit {
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--raio-borda);
    cursor: pointer;
    transition: var(--transicao);
}

.comment-form .submit:hover {
    background: #1e3a8a;
}

/* Lista de comentários */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--raio-borda-lg);
    box-shadow: var(--sombra-suave);
    margin-bottom: 1rem;
}

.comment .comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment .comment-author img {
    border-radius: 50%;
}

.comment .comment-meta {
    font-size: 0.875rem;
    color: var(--cor-texto-claro);
}

.comment-content {
    line-height: 1.7;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cor-primaria);
}

/* ========================================
   ESTILOS DA PÁGINA DE BUSCA
   ======================================== */

.search-results-header {
    background: var(--cor-primaria);
    color: #fff;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.search-results-header h1 {
    color: #fff;
}

.search-highlight {
    background: rgba(245, 158, 11, 0.3);
    padding: 0 0.25rem;
}

/* ========================================
   ESTILOS DA PÁGINA 404
   ======================================== */

.error-404 {
    text-align: center;
    padding: 4rem 2rem;
}

.error-404 h1 {
    font-size: 8rem;
    color: var(--cor-primaria);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404 h2 {
    margin-bottom: 1rem;
}

.error-404 p {
    color: var(--cor-texto-claro);
    margin-bottom: 2rem;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .post-navigation,
    .post-share,
    .comments-area,
    .btn,
    .classificados-filtros,
    .carousel-nav {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* ========================================
   COMPATIBILIDADE COM PLUGINS
   ======================================== */

/* RankMath Breadcrumbs */
.rank-math-breadcrumb {
    font-size: 0.875rem;
    color: var(--cor-texto-claro);
    margin-bottom: 1rem;
}

.rank-math-breadcrumb a {
    color: var(--cor-primaria);
}

.rank-math-breadcrumb .separator {
    margin: 0 0.5rem;
}

/* Elementor ajustes */
.elementor-page .site-content {
    padding: 0;
}

.elementor-section.elementor-section-full_width {
    max-width: 100%;
}

/* WP Block Editor */
.wp-block-image {
    margin-bottom: 1.5rem;
}

.wp-block-image img {
    border-radius: var(--raio-borda);
}

.wp-block-quote {
    border-left: 4px solid var(--cor-primaria);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.wp-block-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--cor-texto-claro);
    font-style: normal;
}

/* ========================================
   ANIMAÇÕES SUAVES
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-up {
    animation: slideUp 0.4s ease;
}

/* ========================================
   DARK MODE PREPARATION
   ======================================== */

@media (prefers-color-scheme: dark) {
    /* Desativado por padrão - pode ser ativado futuramente */
    /*
    :root {
        --cor-fundo: #0f172a;
        --cor-texto: #f1f5f9;
        --cor-texto-claro: #94a3b8;
        --cor-borda: #334155;
    }

    .card,
    .sidebar-box,
    .auth-box,
    .minha-conta-header,
    .minha-conta-content {
        background: #1e293b;
    }
    */
}
