/*
Theme Name: Híbridus
Description: Tema WordPress customizado com fundo animado tecnológico, banner rotativo e cores neon. Desenvolvido por Edu Lima - Eco Hurb Central.
Author: Edu Lima - Eco Hurb Central
Version: 1.0
Text Domain: hibridus
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, responsive, custom-background, custom-colors, custom-header, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #EAEAEA;
    background-color: #121212;
    overflow-x: hidden;
    position: relative;
}

/* Fundo Animado */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #121212;
}

/* Container Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #EAEAEA;
}

a {
    color: #ff4500;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #39ff14;
    text-shadow: 0 0 5px #39ff14;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0f2027;
    color: #FFFFFF;
    border: 2px solid #ff4500;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

.btn:hover {
    background-color: #ff4500;
    color: #121212;
    border-color: #39ff14;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 0 5px rgba(255, 69, 0, 0.3);
}

/* Blocos de Conteúdo */
.content-block {
    background-color: #0f2027;
    border: 2px solid #ff4500;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.2);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.content-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-block:hover {
    border-color: #39ff14;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

/* Header */
.site-header {
    position: relative;
    z-index: 100;
}

/* Branding */
.site-branding {
    display: flex;
    align-items: center;
}

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

.site-title a {
    color: #FFFFFF;
    text-decoration: none;
}

.site-title a:hover {
    color: #ff4500;
}

.site-description {
    margin: 0;
    font-size: 0.9rem;
    color: #AAAAAA;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

/* Navigation */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-toggle {
    margin-left: 1rem;
}

.search-toggle-button {
    background: none;
    border: 2px solid #ff4500;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: #ff4500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle-button:hover {
    background-color: #ff4500;
    color: #121212;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.main-navigation {
    background-color: rgba(15, 32, 39, 0.95);
    padding: 1rem 0;
    border-bottom: 2px solid #ff4500;
    box-shadow: 0 2px 10px rgba(255, 69, 0, 0.3);
    backdrop-filter: blur(10px);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0 1rem;
}

.main-navigation a {
    color: #EAEAEA;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.main-navigation a:hover {
    background-color: #ff4500;
    color: #121212;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

/* Banner Rotativo */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-bottom: 3px solid #ff4500;
    box-shadow: 0 3px 15px rgba(255, 69, 0, 0.4);
}

.hero-slider {
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(18, 18, 18, 0.7) 0%,
        rgba(15, 32, 39, 0.6) 50%,
        rgba(18, 18, 18, 0.7) 100%
    );
    z-index: 1;
}

.slide-content {
    text-align: center;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.slide-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
    line-height: 1.2;
}

.slide-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #EAEAEA;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.slide-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #CCCCCC;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.5;
}

.slide-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
}

.slide-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(57, 255, 20, 0.6);
}

/* Footer */
.site-footer {
    background-color: #0f2027;
    border-top: 3px solid #39ff14;
    box-shadow: 0 -3px 15px rgba(57, 255, 20, 0.3);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #ff4500;
    color: #EAEAEA;
}

/* Responsividade Mobile-First */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Navigation mobile */
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .main-navigation li {
        margin: 0;
        width: 100%;
    }
    
    .main-navigation a {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    /* Banner mobile */
    .hero-slider-container {
        height: 300px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1rem;
    }
    
    .slide-description {
        font-size: 0.95rem;
    }
    
    .slide-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Content blocks mobile */
    .content-block {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Search overlay mobile */
    .search-overlay-content {
        width: 95%;
        padding: 1rem;
    }
    
    .search-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-field {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    /* Footer mobile */
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Sidebar mobile */
    .sidebar {
        margin-left: 0;
        margin-top: 2rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding: 1rem;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .slide-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-slider-container {
        height: 250px;
    }
    
    .content-block {
        padding: 1rem;
    }
    
    .search-close {
        top: -40px;
        font-size: 1.5rem;
    }
}

/* Efeitos de Hover e Interação */
.btn-hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.4);
}

.content-block-hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(57, 255, 20, 0.4);
}

.nav-link-hover {
    transform: scale(1.05);
}

/* Efeitos de clique */
.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 69, 0, 0.3);
}

.content-block:active {
    transform: translateY(-2px);
}

/* Transições suaves para todos os elementos interativos */
.btn,
.content-block,
.main-navigation a,
.search-toggle-button,
.slide-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efeitos de foco para acessibilidade */
.btn:focus,
.search-toggle-button:focus,
.main-navigation a:focus {
    outline: 2px solid #39ff14;
    outline-offset: 2px;
}

/* Animações de entrada mais suaves */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Classes para diferentes tipos de animação */
.slide-in-left {
    animation: slideInFromLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInFromRight 0.8s ease forwards;
}

.slide-in-bottom {
    animation: slideInFromBottom 0.8s ease forwards;
}

/* Melhorias no layout flexível */
.site-main {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.site-main .container {
    flex: 1;
    min-width: 0;
}

.sidebar {
    flex: 0 0 300px;
}

@media (max-width: 1024px) {
    .site-main {
        flex-direction: column;
    }
    
    .sidebar {
        flex: none;
        max-width: 100%;
    }
}

/* Melhorias na tipografia responsiva */
@media (min-width: 1200px) {
    .slide-title {
        font-size: 3.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.4rem;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
}

/* Estados de loading e carregamento */
.loading-skeleton {
    background: linear-gradient(90deg, #0f2027 25%, #1a3a47 50%, #0f2027 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Melhorias na acessibilidade */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo escuro aprimorado */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0a0a0a;
    }
    
    .content-block {
        background-color: #0a1a1f;
    }
}

/* Print styles */
@media print {
    #particles-js,
    .hero-slider-container,
    .search-overlay,
    .sidebar {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .content-block {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Overlay de Busca */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: #EAEAEA;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-close:hover {
    color: #ff4500;
    transform: scale(1.1);
}

.search-form-container {
    margin-top: 2rem;
}

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

.search-field {
    flex: 1;
    padding: 1rem;
    font-size: 1.2rem;
    background-color: #0f2027;
    border: 2px solid #ff4500;
    border-radius: 5px;
    color: #EAEAEA;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

.search-field:focus {
    outline: none;
    border-color: #39ff14;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.search-field::placeholder {
    color: #AAAAAA;
}

/* Navegação do Slider */
.swiper-pagination {
    bottom: 20px !important;
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background-color: #ff4500 !important;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: #ff4500 !important;
    background-color: rgba(15, 32, 39, 0.8) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    margin-top: -25px !important;
    transition: all 0.3s ease !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #ff4500 !important;
    color: #121212 !important;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.5) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.archive-post,
.search-result {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.entry-footer {
    margin-top: auto;
    padding-top: 1rem;
}

/* Meta informações */
.entry-meta {
    font-size: 0.9rem;
    color: #AAAAAA;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-meta a {
    color: #39ff14;
}

.entry-meta a:hover {
    color: #ff4500;
}

/* Tags e categorias */
.tag-links,
.cat-links {
    margin-top: 1rem;
}

.tag-links a,
.cat-links a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: rgba(255, 69, 0, 0.1);
    border: 1px solid #ff4500;
    border-radius: 3px;
    font-size: 0.8rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    transition: all 0.3s ease;
}

.tag-links a:hover,
.cat-links a:hover {
    background-color: #ff4500;
    color: #121212;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background-color: #0f2027;
    border: 1px solid #ff4500;
    border-radius: 5px;
    color: #EAEAEA;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #ff4500;
    color: #121212;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

/* Sidebar */
.sidebar {
    max-width: 300px;
    margin-left: 2rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    color: #ff4500;
    border-bottom: 2px solid #ff4500;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Comentários */
.comments-area {
    margin-top: 3rem;
}

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

.comment-body {
    background-color: rgba(15, 32, 39, 0.5);
    border: 1px solid #ff4500;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comment-author .comment-avatar {
    float: left;
    margin-right: 1rem;
    border-radius: 50%;
    border: 2px solid #ff4500;
}

.comment-metadata {
    margin-left: 80px;
}

.comment-author-badge {
    background-color: #39ff14;
    color: #121212;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
}

.comment-content {
    margin-top: 1rem;
    clear: both;
}

.comment-reply {
    margin-top: 1rem;
}

.comment-reply a {
    color: #39ff14;
    font-size: 0.9rem;
}

/* Formulário de comentários */
.comment-form {
    background-color: rgba(15, 32, 39, 0.3);
    border: 1px solid #ff4500;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #EAEAEA;
    font-weight: 500;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #0f2027;
    border: 1px solid #ff4500;
    border-radius: 5px;
    color: #EAEAEA;
    font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #39ff14;
    box-shadow: 0 0 5px rgba(57, 255, 20, 0.3);
}

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

/* Utilitários */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Estados de loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

/* Skip link */
.skip-link {
    background-color: #ff4500;
    color: #121212;
    padding: 0.5rem 1rem;
    text-decoration: none;
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 999999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

