/*
Theme Name: SEO Adsense
Theme URI: https://domain.com   (site em desenvolvimento)
Author: YukA
Author URI: https://domain.com   (site em desenvolvimento)
Description: Tema otimizado para AdSense com design moderno, mobile-first e foco em SEO. Alto CTR e RPM, layout limpo e profissional similar a grandes portais.
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: novosite
Tags: blog, news, magazine, adsense, seo, mobile-first, custom-menu, featured-images, threaded-comments, translation-ready

Novo Site é um tema WordPress otimizado para monetização com Google AdSense, focado em performance, SEO e experiência do usuário.
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-primary: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --bg-color: #1a1a1a;
    --bg-light: #2a2a2a;
    --bg-gray: #333333;
    --border-color: #404040;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* Dark Mode Toggle - Floating Button */
.dark-mode-toggle.floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    padding: 0;
}

.dark-mode-toggle.floating:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 12px 24px rgba(0, 102, 255, 0.3);
}

.dark-mode-toggle.floating:active {
    transform: scale(0.95);
}

.dark-mode-toggle svg {
    position: absolute;
    transition: var(--transition);
}

.dark-mode-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg);
    color: #ffffff;
}

.dark-mode-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg);
    color: #ffffff;
}

[data-theme="dark"] .dark-mode-toggle.floating {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
}

[data-theme="dark"] .dark-mode-toggle.floating:hover {
    background: var(--primary-color);
}

[data-theme="dark"] .dark-mode-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .dark-mode-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

@media (max-width: 768px) {
    .dark-mode-toggle.floating {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .dark-mode-toggle.floating svg {
        width: 22px;
        height: 22px;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex-shrink: 0;
    border-radius: 4px;
    transition: var(--transition);
}

.menu-toggle:hover,
.menu-toggle.active {
    background: var(--primary-color);
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle:hover span,
.menu-toggle.active span {
    background: #ffffff;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    flex-direction: column;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: var(--spacing-sm);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    margin: 0;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

/* Search Toggle Button */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: var(--transition);
    flex-shrink: 0;
    border-radius: 4px;
}

.search-toggle:hover,
.search-toggle.active {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
}

/* Search Bar Container */
.search-bar-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
    margin-top: var(--spacing-sm);
}

.search-bar-container.active {
    max-height: 150px;
    border-top: 1px solid var(--border-color);
}

.search-bar-container .search-form {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-md);
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.search-bar-container .search-form label {
    display: flex;
    flex: 1;
    margin: 0;
}

.search-bar-container .search-form .screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.search-bar-container .search-field {
    flex: 1;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
    width: 100%;
    display: block;
}

.search-bar-container .search-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.search-bar-container .search-submit {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.search-bar-container .search-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   MOBILE MENU
   ============================================ */
@media (max-width: 768px) {
    .header-container {
        gap: 0;
    }

    .header-actions {
        gap: 0;
        margin-left: auto;
    }

    .menu-toggle {
        display: flex;
        margin-right: 0;
        padding: var(--spacing-xs);
    }

    .search-toggle {
        margin-left: 0;
        padding: var(--spacing-xs);
    }

    .main-navigation {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--bg-color);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-navigation.active {
        max-height: 500px;
        border-top: 1px solid var(--border-color);
    }

    .main-navigation ul {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        width: 100%;
    }

    .main-navigation a {
        display: block;
        padding: var(--spacing-sm);
        border-bottom: 1px solid var(--border-color);
    }

    .search-bar-container .search-form {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .search-bar-container .search-field {
        font-size: 0.9rem;
    }

    .search-bar-container .search-submit {
        padding: var(--spacing-sm);
        font-size: 0.9rem;
    }
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.site-main {
    margin-top: 80px;
    padding: var(--spacing-lg) 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 992px) {
    .content-area {
        grid-template-columns: 1fr 350px;
    }

    .content-area.has-sidebar .main-content {
        grid-column: 1;
    }

    .content-area.has-sidebar .sidebar {
        grid-column: 2;
    }

    /* Páginas (pages) ocupam toda a largura, sem sidebar */
    .page .content-area {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    margin-bottom: var(--spacing-xl);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.hero-item:first-child {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .hero-item:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ============================================
   POST CARDS
   ============================================ */
.post-card {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.post-card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: var(--bg-gray);
}

.post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.post-card-categories a {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-color);
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.post-card-read-more {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.post-card-read-more:hover {
    color: var(--primary-dark);
}

/* ============================================
   ADSENSE AREAS
   ============================================ */
.adsense-container {
    margin: var(--spacing-lg) 0;
    text-align: center;
    background: var(--bg-light);
    padding: 10px 10px 10px 10px;
    border-radius: 8px;
}

.adsense-container.adsense-300x600,
.adsense-container.adsense-336x280 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px !important;
}

.adsense-container.adsense-728x90 {
    min-height: 90px;
}

.adsense-container.adsense-300x600 {
    min-height: 600px;
}

.adsense-container.adsense-336x280 {
    min-height: 280px;
}

/* ============================================
   SINGLE POST PAGE
   ============================================ */
.single-post-header {
    margin-bottom: var(--spacing-xl);
}

.breadcrumbs {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    margin: 0 var(--spacing-xs);
}

.post-featured-image {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 2.5rem;
}

.post-meta {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.post-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.post-content h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
}

.post-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.post-content img {
    margin: var(--spacing-lg) 0;
    border-radius: 8px;
}

.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
    margin: var(--spacing-md) 0 var(--spacing-lg);
    padding-left: 0;
    list-style: none;
}

.post-content ul li,
.page-content ul li {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
    color: var(--text-color);
}

.post-content ul li::before,
.page-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.5;
}

.post-content ol,
.page-content ol {
    counter-reset: list-counter;
}

.post-content ol li,
.page-content ol li {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
    color: var(--text-color);
    counter-increment: list-counter;
}

.post-content ol li::before,
.page-content ol li::before {
    content: counter(list-counter) '.';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.post-content li,
.page-content li {
    margin-bottom: var(--spacing-xs);
}

/* Table of Contents */
.table-of-contents {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin: var(--spacing-lg) 0;
    border-left: 4px solid var(--primary-color);
}

.table-of-contents h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: var(--spacing-xs);
}

.table-of-contents a {
    color: var(--text-color);
    display: block;
    padding: var(--spacing-xs) 0;
}

.table-of-contents a:hover {
    color: var(--primary-color);
    padding-left: var(--spacing-sm);
}

/* Related Posts */
.related-posts {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

.related-posts h3 {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.related-posts-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    display: none;
}

@media (min-width: 992px) {
    .sidebar {
        display: block;
    }
}

.sidebar-widget {
    background: var(--bg-color);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: var(--text-color);
}

.sidebar-widget a:hover {
    color: var(--primary-color);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--text-color);
    color: #ffffff;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-column h4 {
    color: #ffffff;
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-column a:hover {
    color: #ffffff;
    padding-left: var(--spacing-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
}

.comment-list {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.comment {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 8px;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: var(--spacing-sm);
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-color);
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.comment-content {
    margin-bottom: var(--spacing-sm);
}

.comment-reply-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
}

.comment-reply-link:hover {
    color: var(--primary-dark);
}

.comment-form {
    margin-top: var(--spacing-lg);
}

.comment-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form input[type="submit"]:hover {
    background: var(--primary-dark);
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form {
    display: flex;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.search-field {
    flex: 1;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.search-submit {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background: var(--primary-dark);
}

/* ============================================
   PAGINATION
   ============================================ */
.posts-navigation,
.post-navigation {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.posts-navigation a,
.post-navigation a {
    color: var(--primary-color);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 4px;
    transition: var(--transition);
}

.posts-navigation a:hover,
.post-navigation a:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    margin: var(--spacing-xl) 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-sm);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* ============================================
   POST TAGS
   ============================================ */
.post-tags {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: 8px;
}

.post-tags strong {
    margin-right: var(--spacing-sm);
}

.post-tags a {
    display: inline-block;
    margin-right: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-color);
    border-radius: 4px;
    font-size: 0.7rem;
    margin: 0 0 10px 0px;
}

.post-tags a:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* ============================================
   BUTTONS
   ============================================ */
.button,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   SCREEN READER TEXT
   ============================================ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
    background: var(--bg-color);
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
}

/* ============================================
   TABLE OF CONTENTS ACTIVE LINK
   ============================================ */
.table-of-contents a.active {
    color: var(--primary-color);
    font-weight: 600;
    padding-left: var(--spacing-sm);
    border-left: 3px solid var(--primary-color);
}

/* ============================================
   ARCHIVE & SEARCH PAGES
   ============================================ */
.archive-header,
.search-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--border-color);
}

.archive-title,
.search-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.archive-description {
    color: var(--text-light);
    font-size: 1.125rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

.posts-grid .post-card {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.posts-grid .post-card-image {
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.posts-grid .post-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.posts-grid .post-card-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ============================================
   AUTHOR BOX
   ============================================ */
.author-box {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: 8px;
    margin: var(--spacing-xl) 0;
    border-left: 4px solid var(--primary-color);
}

.author-box-avatar {
    flex-shrink: 0;
}

.author-box-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box-content {
    flex: 1;
}

.author-box-name {
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.author-box-name a {
    color: var(--text-color);
    font-weight: 700;
}

.author-box-name a:hover {
    color: var(--primary-color);
}

.author-box-bio {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   POST NAVIGATION (PREVIOUS/NEXT)
   ============================================ */
.post-navigation {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.post-navigation-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.post-nav-item {
    display: flex;
    flex-direction: column;
}

.post-nav-prev {
    text-align: left;
}

.post-nav-next {
    text-align: right;
}

.post-nav-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

.post-nav-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    transition: var(--transition);
}

.post-nav-title:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .post-navigation-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .post-nav-next {
        text-align: left;
    }
}

/* ============================================
   SOCIAL MEDIA SECTION
   ============================================ */
.social-media-section {
    background: var(--bg-light);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
    border-top: 2px solid var(--border-color);
}

.social-section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-color);
}

.social-media-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-color);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.social-link.whatsapp {
    color: #25D366;
}

.social-link.whatsapp:hover {
    background: #25D366;
    color: #ffffff;
}

.social-link.facebook {
    color: #1877F2;
}

.social-link.facebook:hover {
    background: #1877F2;
    color: #ffffff;
}

.social-link.youtube {
    color: #FF0000;
}

.social-link.youtube:hover {
    background: #FF0000;
    color: #ffffff;
}

.social-link.tiktok {
    color: #000000;
}

.social-link.tiktok:hover {
    background: #000000;
    color: #ffffff;
}

.social-link.instagram {
    color: #E4405F;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.social-link.twitter {
    color: #000000;
}

.social-link.twitter:hover {
    background: #000000;
    color: #ffffff;
}

@media (max-width: 768px) {
    .social-media-links {
        gap: var(--spacing-sm);
    }
    
    .social-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.875rem;
    }
    
    .social-link svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-color);
    color: #ffffff;
    padding: var(--spacing-md);
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-consent-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 250px;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    opacity: 0.8;
}

.cookie-consent-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.cookie-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.cookie-btn-accept {
    background: var(--primary-color);
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background: var(--primary-dark);
}

.cookie-btn-reject {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-btn-info {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }
}

/* ============================================
   DARK MODE SPECIFIC STYLES
   ============================================ */
[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

[data-theme="dark"] .site-header {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .post-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .post-card:hover {
    border-color: var(--primary-color);
}

[data-theme="dark"] .sidebar-widget {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .table-of-contents {
    background: var(--bg-light);
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .author-box {
    background: var(--bg-light);
    border-left-color: var(--primary-color);
}

[data-theme="dark"] .comment {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .post-tags {
    background: var(--bg-light);
}

[data-theme="dark"] .post-tags a {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .post-tags a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .pagination .page-numbers {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .pagination .page-numbers:hover,
[data-theme="dark"] .pagination .page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .search-field,
[data-theme="dark"] .comment-form input[type="text"],
[data-theme="dark"] .comment-form input[type="email"],
[data-theme="dark"] .comment-form input[type="url"],
[data-theme="dark"] .comment-form textarea {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .social-media-section {
    background: var(--bg-light);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .social-link {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .cookie-consent {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .cookie-consent-text a {
    color: var(--primary-color);
}

[data-theme="dark"] .cookie-btn-reject,
[data-theme="dark"] .cookie-btn-info {
    border-color: var(--border-color);
}

[data-theme="dark"] .adsense-container {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .site-footer {
    background: #0f0f0f;
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .footer-column h4 {
    color: #ffffff;
}

[data-theme="dark"] .footer-column a {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .footer-column a:hover {
    color: #ffffff;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: var(--border-color);
    color: rgba(255, 255, 255, 0.5);
}

/* Smooth transition when switching themes */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.theme-transitioning * {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease !important;
}

.site-header,
.post-card,
.sidebar-widget,
.table-of-contents,
.author-box,
.comment,
.post-tags,
.pagination .page-numbers {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   CONTACT FORM 7 STYLES
   ============================================ */
.wpcf7-form {
    margin: var(--spacing-lg) auto;
    padding: var(--spacing-lg);
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.wpcf7-form p {
    margin-bottom: var(--spacing-md);
}

.wpcf7-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-top: var(--spacing-xs);
}

.wpcf7-form-control {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background: var(--bg-color);
    transition: var(--transition);
    outline: none;
}

.wpcf7-form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.wpcf7-form-control.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
    font-family: var(--font-primary);
}

.wpcf7-form-control.wpcf7-submit {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    margin-top: var(--spacing-sm);
}

.wpcf7-form-control.wpcf7-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wpcf7-form-control.wpcf7-submit:active {
    transform: translateY(0);
}

.wpcf7-form-control.wpcf7-submit.has-spinner {
    position: relative;
}

.wpcf7-spinner {
    display: inline-block;
    margin-left: var(--spacing-xs);
    vertical-align: middle;
}

.wpcf7-response-output {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-response-output.wpcf7-aborted,
.wpcf7-response-output.wpcf7-spam,
.wpcf7-response-output.wpcf7-validation-errors {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wpcf7-response-output.wpcf7-mail-sent-ok[aria-hidden="true"],
.wpcf7-response-output[aria-hidden="true"] {
    display: none;
}

.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: block;
}

.wpcf7-form-control.wpcf7-not-valid {
    border-color: #dc3545;
}

.wpcf7-form-control.wpcf7-not-valid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.hidden-fields-container {
    display: none;
}

/* Dark Mode Support */
[data-theme="dark"] .wpcf7-form {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .wpcf7-form-control {
    background: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .wpcf7-form-control:focus {
    border-color: var(--primary-color);
    background: var(--bg-color);
}

[data-theme="dark"] .wpcf7-response-output.wpcf7-mail-sent-ok {
    background: rgba(40, 167, 69, 0.2);
    color: #90ee90;
    border-color: rgba(40, 167, 69, 0.3);
}

[data-theme="dark"] .wpcf7-response-output.wpcf7-mail-sent-ng,
[data-theme="dark"] .wpcf7-response-output.wpcf7-aborted,
[data-theme="dark"] .wpcf7-response-output.wpcf7-spam,
[data-theme="dark"] .wpcf7-response-output.wpcf7-validation-errors {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border-color: rgba(220, 53, 69, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wpcf7-form {
        padding: var(--spacing-md);
        margin: var(--spacing-md) auto;
    }

    .wpcf7-form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ============================================
   INSTAGRAM WIDGET
   ============================================ */
.instagram-widget {
    background: var(--bg-color);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(225, 48, 108, 0.1);
    position: relative;
    overflow: hidden;
}

.instagram-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.instagram-widget-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid rgba(225, 48, 108, 0.15);
}

.instagram-widget-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(225, 48, 108, 0.3);
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(225, 48, 108, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(225, 48, 108, 0.5);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(10deg);
    }
    25% {
        transform: translate(-50%, -50%) scale(1.2) rotate(-10deg);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(10deg);
    }
    75% {
        transform: translate(-50%, -50%) scale(1.15) rotate(-5deg);
    }
}

[data-theme="dark"] .site-logo img {
    filter: brightness(0) invert(1);
}