/* Variáveis e Configurações Globais */
:root {
    /* Paleta de cores moderna */
    --primary-color: #3a86ff;
    --secondary-color: #8338ec;
    --accent-color: #ff006e;
    --success-color: #38b000;
    --warning-color: #ffbe0b;
    --dark-color: #1a1c20;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;

    /* Tipografia */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto', sans-serif;

    /* Sombras */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Transições */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Reset e estilos base modernos */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    position: relative;
}

::selection {
    background-color: var(--primary-color);
    color: white;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

a:hover {
    color: var(--secondary-color);
}

/* Exceção para botões - evitar mudança de cor indesejada */
.btn:hover {
    color: white !important;
}

/* Efeito de clique para todos os botões */
button:active,
.btn:active,
input[type="submit"]:active,
input[type="button"]:active,
.btn-social:active,
.btn-admin:active,
.btn-download:active,
.btn-gradient:active,
.btn-profile-action:active,
.btn-outline:active,
.btn-sm:active,
.btn-lg:active,
.btn-block:active,
.btn-success:active,
.btn-danger:active,
.btn-warning:active,
.btn-info:active,
.btn-secondary:active,
.btn-primary:active,
.answer-btn:active,
.answer-helpful:active,
.search-clear:active,
.search-suggestion:active,
.notification-close:active,
.modal-close:active,
.close-modal:active,
.sidebar-toggle:active,
.mobile-menu-toggle:active,
.tab-btn:active,
.category-card:active,
.post-card:active,
.testimonial-card:active,
.team-member:active,
.stat-item:active,
.cta-btn:active,
.explore-btn:active,
.scroll-top:active,
.dark-mode:active,
.avatar-edit:active,
.upload-placeholder:active,
.image-preview:active {
    transform: translateY(2px) scale(0.98) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.1s ease !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.container {
    width: min(90%, 1320px);
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
}

/* Botões Modernos */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    gap: 0.5rem;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn:hover::before {
    width: 100%;
}

.btn:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: var(--shadow-sm);
    transition: all 0.1s ease;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-success {
    background-color: var(--success-color);
}

.btn-download {
    background-color: var(--success-color);
    font-weight: bold;
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-download i {
    font-size: 1.25rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Botões Favoritos nos Cards */
.favorite-btn-card {
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.favorite-btn-card:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.favorite-btn-card.favorited {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.favorite-btn-card.favorited:hover {
    background: #c82333;
    border-color: #c82333;
}

.favorite-btn-card i {
    font-size: 1.1rem;
    color: inherit;
}

.favorite-btn-card:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal de Confirmação de Favoritos */
.favorite-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.favorite-modal.active {
    opacity: 1;
}

.favorite-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.favorite-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    text-align: center;
}

.favorite-modal.active .favorite-modal-content {
    transform: scale(1);
}

.favorite-modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.favorite-modal-icon i {
    font-size: 2rem;
    color: white;
}

.favorite-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1c20;
    margin-bottom: 0.75rem;
}

.favorite-modal-text {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.favorite-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.favorite-modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.favorite-modal-btn-cancel {
    background: #e9ecef;
    color: #495057;
}

.favorite-modal-btn-cancel:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

.favorite-modal-btn-confirm {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.favorite-modal-btn-confirm:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Toast de Notificação */
.favorite-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.favorite-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.favorite-toast-success {
    border-left: 4px solid #38b000;
}

.favorite-toast-error {
    border-left: 4px solid #dc3545;
}

.favorite-toast-warning {
    border-left: 4px solid #f59e0b;
}

.favorite-toast-info {
    border-left: 4px solid #3b82f6;
}

.favorite-toast i {
    font-size: 1.25rem;
}

.favorite-toast-success i {
    color: #38b000;
}

.favorite-toast-error i {
    color: #dc3545;
}

.favorite-toast-warning i {
    color: #f59e0b;
}

.favorite-toast-info i {
    color: #3b82f6;
}

.favorite-toast span {
    color: #1a1c20;
}

/* Navbar Moderna */
.navbar {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 0;
    position: relative;
    top: auto;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(26, 28, 32, 0.95);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.navbar .logo a i {
    color: var(--primary-color);
    filter: drop-shadow(0 0 5px rgba(58, 134, 255, 0.6));
    transition: transform 0.3s ease;
}

.navbar .logo:hover a i {
    transform: rotate(-15deg);
    animation: pulse-icon 1.5s infinite alternate;
}

@keyframes pulse-icon {
    0% {
        filter: drop-shadow(0 0 5px rgba(58, 134, 255, 0.6));
    }

    100% {
        filter: drop-shadow(0 0 10px rgba(58, 134, 255, 0.9));
    }
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    position: relative;
}

/* Estilos do logo na navbar */
.navbar .logo-mundo {
    color: var(--primary-color);
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    text-shadow: 0 0 10px rgba(58, 134, 255, 0.3);
    background: linear-gradient(135deg, #3a86ff 30%, #5c9fff 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.3rem;
    transform: translateZ(0);
    /* Correção para o Safari */
}

.navbar .logo-da {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0 -0.1rem 0 0.1rem;
    opacity: 0.8;
}

.navbar .logo-informatica {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: -0.3px;
    position: relative;
    font-size: 1.1rem;
}

/* Efeito hover no logo completo */
.navbar .logo:hover .logo-mundo {
    animation: glow-text 1.5s infinite alternate;
}

@keyframes glow-text {
    0% {
        text-shadow: 0 0 5px rgba(58, 134, 255, 0.4);
    }

    100% {
        text-shadow: 0 0 15px rgba(58, 134, 255, 0.8);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    transition: var(--transition-normal);
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* Hero Section Moderna */
.hero {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.9), rgba(131, 56, 236, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--light-color), transparent);
    z-index: 2;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    overflow: visible;
}

.hero h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.3s;
}

/* Título 3D Simples */
.hero-title-3d {
    font-size: clamp(2.8rem, 5vw, 4.5rem) !important;
    margin-bottom: 2rem !important;
    line-height: 1.1 !important;
    font-weight: 800;
    text-align: center;
    color: white;
    perspective: 500px;
}

.hero-subtitle-split {
    color: rgba(255, 255, 255, 0.9);
    perspective: 500px;
}

.welcome-text {
    background: linear-gradient(135deg, #ffffff 0%, #e0e8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.ao-text {
    background: linear-gradient(135deg, #d0d8ff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin: 0 0.2em;
}

.brand-text {
    background: linear-gradient(135deg, #ffffff 0%, #b8c9ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-shadow: none;
}

/* Animações 3D */
@keyframes hero3DEntry {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 25% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    75% {
        background-position: 75% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes textFloat {

    0%,
    100% {
        transform: translateY(0px) rotateY(0deg);
    }

    50% {
        transform: translateY(-5px) rotateY(2deg);
    }
}

@keyframes textPulse {

    0%,
    100% {
        transform: scale(1) rotateY(0deg);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05) rotateY(1deg);
        opacity: 1;
    }
}

@keyframes textGlow {
    0% {
        text-shadow:
            0 1px 0 rgba(255, 255, 255, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.3),
            0 4px 8px rgba(102, 126, 234, 0.4),
            0 8px 16px rgba(118, 75, 162, 0.2);
    }

    100% {
        text-shadow:
            0 1px 0 rgba(255, 255, 255, 0.8),
            0 2px 4px rgba(0, 0, 0, 0.4),
            0 4px 12px rgba(102, 126, 234, 0.6),
            0 8px 20px rgba(118, 75, 162, 0.4);
    }
}

/* Efeitos de hover removidos - título completamente estático */

/* Efeito de brilho adicional */
.hero-title-3d::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
            rgba(102, 126, 234, 0.1) 0%,
            rgba(118, 75, 162, 0.05) 30%,
            transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
    z-index: -1;
    border-radius: 50%;
}

@keyframes shimmer {

    0%,
    100% {
        transform: scale(0.8) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.7;
    }
}

.hero p {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeDown 0.8s forwards 0.2s;
}

@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeDown 0.8s forwards 0.4s;
    position: relative;
    z-index: 15;
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 5px;
    height: calc(100% - 10px);
    padding: 0 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
}

.search-bar button:hover {
    background-color: var(--secondary-color);
}

/* Search Input Wrapper */
.search-input-wrapper {
    position: relative;
    flex: 1;
    overflow: visible;
}

/* Search Suggestions Dropdown */
.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 12000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.suggestion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-radius: var(--radius-md);
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.suggestion-title strong {
    color: var(--primary-color);
}

.suggestion-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.suggestion-type {
    text-transform: capitalize;
}

.suggestion-category,
.suggestion-description {
    color: var(--primary-color);
    font-weight: 500;
}

.suggestion-arrow {
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.suggestion-item:hover .suggestion-arrow,
.suggestion-item.selected .suggestion-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* Scrollbar for suggestions */
.search-suggestions-dropdown::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Categories Section */
.categories {
    position: relative;
    padding: 6rem 0;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233a86ff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

.section-header p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gray-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    z-index: 1;
    overflow: hidden;
    isolation: isolate;
    border: 2px solid rgba(58, 134, 255, 0.5);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition-slow);
    z-index: -1;
    opacity: 0;
}

.category-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(58, 134, 255, 0.6);
}

.category-card:hover::before {
    height: 100%;
    opacity: 1;
}

.category-card:hover i,
.category-card:hover h3,
.category-card:hover p,
.category-card:hover .btn {
    color: white;
}

.category-card:hover .btn {
    background-color: white;
    color: var(--primary-color);
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.category-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    transition: var(--transition-normal);
}

.category-card p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
    transition: var(--transition-normal);
}

/* Recent Posts Section */
.recent-posts {
    background-color: rgba(248, 249, 250, 0.5);
    position: relative;
}

.posts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ============================================
   Paginação da Homepage
   ============================================ */
.home-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.home-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.home-page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--primary-color, #4a90e2);
    color: var(--primary-color, #4a90e2);
    background: rgba(74, 144, 226, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

.home-page-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.home-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f7fafc;
}

.home-page-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 42px;
    color: #a0aec0;
    font-weight: 700;
    letter-spacing: 2px;
    user-select: none;
}

.home-page-prev,
.home-page-next {
    min-width: 46px;
}

/* Animação de slide para paginação AJAX */
#recent-posts-container {
    overflow: hidden;
    position: relative;
}

#recent-posts-grid {
    transition: none;
}

#recent-posts-grid.slide-out-left {
    animation: slideOutLeft 0.3s ease forwards;
}

#recent-posts-grid.slide-out-right {
    animation: slideOutRight 0.3s ease forwards;
}

#recent-posts-grid.slide-in-left {
    animation: slideInLeft 0.3s ease forwards;
}

#recent-posts-grid.slide-in-right {
    animation: slideInRight 0.3s ease forwards;
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes slideInLeft {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
    .home-pagination {
        gap: 0.35rem;
    }
    .home-page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    .home-page-prev,
    .home-page-next {
        min-width: 40px;
    }
}

.post-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid #e0e0e0;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    max-width: 275px;
    margin: 0;
    width: 100%;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.post-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
    box-shadow: var(--shadow-sm);
    display: none;
    /* Ocultar a tag sobreposta */
}

.post-category {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    border-top: 2px solid rgba(102, 126, 234, 0.15);
}

.post-category i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.post-category span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.post-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    transition: var(--transition-normal);
    text-align: center;
}

.post-card:hover .post-content h3 {
    color: var(--primary-color);
}

.post-description-section {
    margin-bottom: 1.5rem;
    flex: 1;
    text-align: center;
}

.post-description-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-align: center;
}

.post-description-text {
    color: var(--gray-color);
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: center;
    max-height: 120px;
    overflow-y: auto;
}

.post-description-text::-webkit-scrollbar {
    width: 4px;
}

.post-description-text::-webkit-scrollbar-track {
    background: transparent;
}

.post-description-text::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

.post-description-text::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.post-meta {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta i {
    color: var(--primary-color);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    animation: pulse 10s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.1;
    }

    100% {
        transform: scale(1);
        opacity: 0.3;
    }
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta .btn {
    background-color: white;
    color: var(--primary-color);
}

.cta .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
}

/* Footer Moderno */
footer {
    background-color: #222;
    color: #fff;
    padding: 0px 0 0px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 1.8rem;
    color: #3a86ff;
    filter: drop-shadow(0 0 5px rgba(58, 134, 255, 0.6));
}

.footer-logo .logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.footer-logo .logo-mundo {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.3rem;
}

.footer-logo .logo-da {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 0 0.15rem;
}

.footer-logo .logo-informatica {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-column ul a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-column ul a i {
    font-size: 0.8rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-item i {
    color: var(--primary-color);
    margin-top: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition-normal);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Post Detail Page */
.post-detail {
    padding: 5rem 0;
}

.breadcrumb {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--gray-color);
}

.breadcrumb a {
    color: var(--gray-color);
    transition: var(--transition-normal);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.post {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.post h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1.25rem;
    color: var(--dark-color);
}

.post-meta {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.post-content {
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.download-section {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.download-section h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.download-note {
    margin-top: 1.5rem;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.share-buttons {
    margin-bottom: 2.5rem;
}

.share-buttons h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.social-share {
    display: flex;
    gap: 1rem;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #f1f2f6;
    color: var(--dark-color);
    transition: var(--transition-normal);
}

.btn-social:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.related-posts {
    margin-top: 3rem;
}

.related-posts h2 {
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-size: 1.8rem;
}

/* About Page */
.about-header {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.9), rgba(131, 56, 236, 0.9)), url('../images/about-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 0;
    position: relative;
}

.about-content {
    padding: 5rem 0;
}

.about-text {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.about-text h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.about-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.about-text ul li {
    margin-bottom: 0.75rem;
    color: var(--gray-color);
}

.cta-button {
    margin-top: 2rem;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--dark-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid rgba(58, 134, 255, 0.1);
    transition: var(--transition-normal);
}

.team-member:hover img {
    border-color: var(--primary-color);
}

.team-member h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.team-social a {
    color: var(--gray-color);
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.team-social a:hover {
    color: var(--primary-color);
}

/* Contact Page */
.contact-header {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.9), rgba(131, 56, 236, 0.9)), url('../images/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.contact-content {
    padding: 5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.contact-info {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-info h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.info-item p {
    color: var(--gray-color);
}

.contact-form {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.accordion-content p {
    color: var(--gray-color);
}

/* Category Page */
.category-header {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.9), rgba(131, 56, 236, 0.9)), url('../images/category-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.category-posts {
    padding: 5rem 0;
}

.no-results {
    text-align: center;
    padding: 3rem;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Correção do Rodapé - Problemas visuais */
footer {
    background-color: #222;
    color: #fff;
    padding: 0px 0 0px;
}

.footer-contact-box {
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-contact-box h4 {
    color: #3a86ff;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-contact-box p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #f5f5f5;
    word-break: break-all;
    /* Forçar quebra de palavras longas */
    overflow-wrap: break-word;
    /* Garantir que palavras longas quebrem */
}

.footer-contact-box a {
    color: #8ecdf7;
    transition: color 0.3s;
    word-break: break-all;
    overflow-wrap: break-word;
}

.footer-contact-box a:hover {
    color: #3a86ff;
    text-decoration: underline;
}

/* Garantir que os elementos do rodapé sejam responsivos */
@media (max-width: 768px) {
    .footer-contact-box {
        margin-bottom: 30px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeftGeneric {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRightGeneric {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 1s forwards;
}

.animate-slide-left {
    animation: slideInLeftGeneric 1s forwards;
}

.animate-slide-right {
    animation: slideInRightGeneric 1s forwards;
}

.animate-slide-up {
    animation: slideInUp 1s forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Adicione atrasos de animação para elementos sequenciais */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--dark-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 1rem;
        height: calc(100vh - 70px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        padding: 1rem;
        display: block;
    }

    .nav-menu a::after {
        display: none;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    /* Responsividade do título 3D */
    .hero-title-3d {
        font-size: clamp(2rem, 6vw, 3rem) !important;
        margin-bottom: 1.5rem !important;
        transform: translateY(30px) rotateX(10deg);
    }

    .hero-title-3d:hover {
        transform: translateY(-5px) rotateX(-2deg) scale(1.02);
    }

    .welcome-text,
    .brand-text {
        display: block;
        margin-bottom: 0.2rem;
    }

    .post-detail .container {
        width: 95%;
    }

    .post {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-card {
        max-width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 1025px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(550px, 600px));
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 80vh;
        padding: 4rem 0;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar input {
        border-radius: var(--radius-full);
        margin-bottom: 1rem;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-suggestions-dropdown {
        left: 0;
        right: 0;
        max-height: 300px;
    }

    .suggestion-item {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }

    .suggestion-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .suggestion-title {
        font-size: 0.95rem;
    }

    .suggestion-meta {
        font-size: 0.8rem;
    }

    .search-bar button {
        position: static;
        width: 100%;
        height: auto;
        padding: 1rem;
        border-radius: var(--radius-full);
    }

    .post-image {
        height: 200px;
    }

    .about-text,
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }

    .download-section {
        padding: 1.5rem;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(58, 134, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s infinite ease-in-out;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scroll To Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 100;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    z-index: 99;
    font-size: 1.2rem;
}

.floating-chat-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.floating-chat-btn.shifted-up {
    bottom: 90px;
}

/* Floating Beta Tag */
.floating-beta-tag {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(102, 126, 234, 0.25);
    color: rgba(102, 126, 234, 0.85);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 99;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    pointer-events: none;
    user-select: none;
}

/* Tema Escuro */
.dark-mode {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--dark-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 100;
    transition: var(--transition-normal);
}

.dark-mode:hover {
    transform: rotate(45deg);
}

/* Modo escuro (preparado para implementação futura) */
[data-theme="dark"] {
    --light-color: #1a1c20;
    --dark-color: #f8f9fa;
    /* Outros ajustes de cores para o tema escuro */
}

/* Seção de Estatísticas - Versão Aprimorada */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.08), rgba(131, 56, 236, 0.08));
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233a86ff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 0;
}

.stats-heading {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.stats-heading h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.stats-heading p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray-color);
    font-size: 1.1rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

/* Responsividade para estatísticas */
@media (max-width: 1200px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.stat-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem 2rem 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 380px;
}

.stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transition: var(--transition-normal);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-item:hover::before {
    width: 100%;
    opacity: 0.1;
}

.stat-number-wrapper {
    margin-bottom: 1.5rem;
    position: relative;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    transition: var(--transition-normal);
    margin-bottom: 0.5rem;
}

.stat-plus {
    position: absolute;
    top: 0;
    right: -15px;
    font-size: 2.5rem;
    color: white;
    font-weight: 800;
    opacity: 0.9;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.stat-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-full);
}

.stat-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.stat-icon {
    position: relative;
    right: auto;
    bottom: auto;
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.2);
    transition: var(--transition-normal);
    z-index: 0;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item:hover .stat-icon {
    transform: scale(1.15);
    color: rgba(255, 255, 255, 0.35);
}

/* Seção de Categorias - Versão Aprimorada */
.categories-showcase {
    padding: 6rem 0;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

.categories-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    background-image:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e0e0e0' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v6h6V4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23cccccc' fill-opacity='0.3' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f5f5f5' fill-opacity='0.5'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

/* Responsividade para categories */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.category-showcase-card {
    background-color: white;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 3;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(58, 134, 255, 0.5);
}

.category-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(58, 134, 255, 0.8);
}

.category-icon-container {
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(131, 56, 236, 0.1));
}

.category-icon-container::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background: white;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.category-icon-wrapper {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.category-showcase-card:hover .category-icon {
    transform: rotate(15deg) scale(1.1);
    color: var(--secondary-color);
}

.category-showcase-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-showcase-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
    text-align: center;
}

.category-showcase-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
}

.category-showcase-card p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    flex: 1;
    text-align: center;
}

.explore-btn {
    align-self: center;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.explore-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.explore-btn i {
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.explore-btn:hover i {
    transform: translateX(3px);
}

/* Botão Ver Mais - Seção Categorias */
.categories-view-more {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 3rem;
    padding-top: 2rem;
    position: relative;
    z-index: 10;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), #7928CA);
    color: white !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    z-index: 20;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-view-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}

.btn-view-more:hover::before {
    width: 400px;
    height: 400px;
}

.btn-view-more:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(58, 134, 255, 0.5);
    color: white !important;
}

.btn-view-more i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-view-more:hover i {
    transform: scale(1.2) rotate(90deg);
}

.btn-view-more:active {
    transform: translateY(-2px) scale(1.02);
}

/* Seção de Depoimentos - Versão Aprimorada */
.testimonials-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.05), rgba(131, 56, 236, 0.05));
    position: relative;
    margin-bottom: 0;
    /* Remove margem inferior para eliminar separação */
}

.testimonials-container {
    position: relative;
    z-index: 2;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

/* Responsividade para testimonials */
@media (max-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.testimonial-card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    padding: 2rem 1.5rem;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    color: rgba(58, 134, 255, 0.1);
    line-height: 1;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--gray-color);
    position: relative;
    flex-grow: 1;
    z-index: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.testimonial-info p {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.testimonial-rating i {
    color: var(--warning-color);
    font-size: 0.9rem;
}

/* Seção CTA - Versão Aprimorada */
.help-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
    border: none;
    margin: 0;
    margin-bottom: 0;
    /* Remove qualquer margem inferior */
    margin-top: 0;
    /* Remove qualquer margem superior */
}

.help-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    animation: rotateBg 30s linear infinite;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.help-cta .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.help-cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.help-cta p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-btn {
    padding: 1rem 2.5rem;
    background-color: white;
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: 3px solid transparent;
}

.cta-btn:hover {
    transform: translateY(-5px);
    background-color: transparent;
    color: white;
    border-color: white;
}

.cta-btn i {
    transition: var(--transition-normal);
}

.cta-btn:hover i {
    transform: translateX(5px);
}

.help-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264.888-.14 1.615-1.176 3.418-2.35 4.506-3.517C33.84 10.1 31.486 0 14.654 0 8.17 0 .296 4.01 0 12.092c-.004 1.083.065 2.294.21 3.516 1.006.63 2.236 1.4 3.406 2.144.382.247.703.48 1.008.676.846.54 1.855 1.055 2.894 1.572.384.19.76.358 1.056.52.762.4 1.78.766 2.386.783.4.11.69.08.9.013.823-.268 1.483-.54 2.094-.73.364-.117.717-.225 1.057-.333.783-.253 1.827-.557 2.964-.853 1.05-.27 2.078-.533 3.204-.774zm4.286 5c.436.092.84.159 1.185.212.79.117 1.95.145 2.92.145 3.027 0 4.826-.52 7.63-1.05 1.846-.346 3.805-.857 6.01-1.644.566-.205 1.154-.356 1.758-.535.926-.276 1.882-.56 2.78-.934.13-.055.26-.118.386-.155.19-.05.39-.088.606-.133.91-.187 1.95-.272 2.966-.32 1.736-.087 3.526-.015 5.012.4.398.112.714.302.908.475.268.24.344.516.32.917-.036.625-.216 1.215-.4 1.76-.208.616-.476 1.16-.688 1.672-.236.586-.622 1.317-.995 2.09-1.29 2.683-3.59 5.386-5.81 8.143-.8 1.002-1.98 1.997-3.055 2.96-1.23 1.107-2.37 2.084-3.432 2.974-.38.318-.74.617-1.08.905-1.95 1.646-2.717 2.28-3.535 3.264-1.11 1.335-2.59 2.82-4.19 4.22-1.58 1.39-3.23 2.717-4.54 3.757l-.71.594c-.467.389-.87.724-1.24 1.026C22.984 47.66 20.19 49.35 17 51c1.99-2.835 3.548-6.31 4.686-9.527.397-1.12.793-2.318 1.173-3.644.515-1.797 1.23-4.005 2.037-6.137.102-.27.214-.603.29-.738.274-.477.55-.943.804-1.396.58-1.04 1.132-2.026 1.59-2.96.205-.41.378-.805.535-1.182.158-.38.282-.705.394-.984.224-.562.418-1.172.582-1.826.205-.814.355-1.687.427-2.605h-3.19z' fill='rgba(255,255,255,0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 100px 20px;
    background-repeat: repeat-x;
    z-index: 1;
}

/* Reordenação das seções principais */
.main-content-container {
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

/* Categorias (mantém sua posição original no início) */
.categories {
    order: 0;
}

/* Seção de posts recentes (Adições Recentes) */
.recent-posts {
    order: 1;
}

/* Seção de estatísticas (Números que Falam por Nós) - movida para baixo */
.stats-section {
    order: 2;
}

/* Seção de depoimentos (O que dizem nossos usuários) */
.testimonials-section {
    order: 3;
}

/* Seção CTA final */
.help-cta {
    order: 4;
}

/* Cantos extra arredondados para seções principais */
.category-card,
.post-card,
.testimonial-card,
.admin-card,
.stat-card,
.featured-card,
.category-showcase-card {
    border-radius: var(--radius-lg) !important;
}

/* Elementos menores com cantos médios arredondados */
.btn,
.form-control,
.search-suggestions,
.suggestion-icon {
    border-radius: var(--radius-md) !important;
}

/* Media Queries para Modal e Toast Responsivos */
@media (max-width: 768px) {
    .favorite-modal-content {
        width: 95%;
        padding: 1.5rem;
        max-width: none;
    }

    .favorite-modal-title {
        font-size: 1.25rem;
    }

    .favorite-modal-text {
        font-size: 0.95rem;
    }

    .favorite-modal-buttons {
        flex-direction: column;
    }

    .favorite-modal-btn {
        width: 100%;
        min-width: auto;
    }

    .favorite-toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
        font-size: 0.9rem;
    }
}

/* ...existing code... */
/* Global Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-up-delayed {
    animation: fadeUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-fade-up-more-delayed {
    animation: fadeUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}
/* Download History Cards */
.download-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.download-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.download-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.download-card-body {
    padding: 1.25rem;
}

.download-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.4em;
}

.download-title-thumb {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 6px;
    object-fit: cover;
}

.download-title-thumb-placeholder {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.download-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.download-card-title a:hover {
    color: var(--primary-color);
}

.download-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.download-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.download-card-date i {
    color: var(--primary-color);
}

.download-card-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

a.download-card-category {
    text-decoration: none;
    cursor: pointer;
}

a.download-card-category:hover {
    color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.2);
}

.download-card-actions {
    display: flex;
    gap: 0.75rem;
}

.download-card-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.download-card-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.download-card-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
    color: white;
}

.download-card-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-card-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Empty state for download history */
.download-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 1.5rem;
}

.download-empty-state i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    display: block;
}

.download-empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.download-empty-state p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .download-history-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .download-card-image {
        height: 200px;
    }

    .download-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .download-card-actions {
        flex-direction: column;
    }
}

/* Animation for cards loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.download-card:nth-child(1) { animation-delay: 0.1s; }
.download-card:nth-child(2) { animation-delay: 0.2s; }
.download-card:nth-child(3) { animation-delay: 0.3s; }
.download-card:nth-child(4) { animation-delay: 0.4s; }
.download-card:nth-child(5) { animation-delay: 0.5s; }

/* =================================
   Download Limit Modal Styles
   ================================= */

.download-limit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.download-limit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.download-limit-content {
    position: relative;
    background: linear-gradient(145deg, #1a1c20, #2d2f35);
    border: 2px solid rgba(58, 134, 255, 0.3);
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

.download-limit-icon {
    font-size: 5rem;
    color: #ff006e;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.download-limit-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #3a86ff, #8338ec);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-limit-message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.download-limit-countdown {
    margin: 2rem 0;
}

.countdown-circle {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.countdown-svg {
    transform: rotate(-90deg);
}

.countdown-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 8;
}

.countdown-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

.countdown-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.countdown-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.countdown-text span {
    font-weight: 700;
    color: #3a86ff;
}

.download-limit-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.download-limit-actions .btn {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-limit-actions .btn-gradient {
    background: linear-gradient(135deg, #3a86ff, #8338ec);
    color: white;
    border: none;
}

.download-limit-actions .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(58, 134, 255, 0.4);
}

.download-limit-actions .btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.download-limit-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .download-limit-content {
        padding: 2rem;
        max-width: 95%;
    }

    .download-limit-title {
        font-size: 1.5rem;
    }

    .download-limit-message {
        font-size: 1rem;
    }

    .download-limit-actions {
        flex-direction: column;
    }
}

.site-confirm-overlay,
.site-pix-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(env(safe-area-inset-top, 0px) + 1.25rem) 1rem 1rem;
    background: rgba(5, 10, 20, 0.66);
    backdrop-filter: blur(10px);
    z-index: 1400;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.site-confirm-overlay[hidden],
.site-pix-overlay[hidden] {
    display: none !important;
}

.site-confirm-overlay.is-visible,
.site-pix-overlay.is-visible {
    opacity: 1;
}

.site-confirm-dialog,
.site-pix-dialog {
    width: min(560px, 100%);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-radius: 24px;
    border: 1px solid rgba(58, 134, 255, 0.12);
    box-shadow: 0 26px 70px rgba(5, 23, 58, 0.28);
    position: relative;
    transform: translateY(18px) scale(0.98);
    transition: transform 0.22s ease;
    outline: none;
}

.site-confirm-overlay.is-visible .site-confirm-dialog,
.site-pix-overlay.is-visible .site-pix-dialog {
    transform: translateY(0) scale(1);
}

.site-confirm-dialog {
    padding: 2rem;
    text-align: center;
}

.site-confirm-close,
.site-pix-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.82);
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-confirm-close:hover,
.site-pix-close:hover {
    background: #ffffff;
    color: #1e293b;
    transform: translateY(-1px);
}

.site-pix-close {
    border-color: #fecaca;
    background: #fff5f5;
    color: #dc2626;
}

.site-pix-close:hover {
    color: #b91c1c;
    border-color: #fca5a5;
    background: #fff1f2;
}

.site-confirm-icon {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.16), rgba(131, 56, 236, 0.18));
    color: #2563eb;
    font-size: 1.65rem;
    margin-bottom: 1.1rem;
}

.site-confirm-overlay.is-warning .site-confirm-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(249, 115, 22, 0.18));
    color: #d97706;
}

.site-confirm-overlay.is-danger .site-confirm-icon {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(244, 63, 94, 0.18));
    color: #dc2626;
}

.site-confirm-copy h4,
.site-pix-header h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
}

.site-confirm-copy p,
.site-pix-header p {
    margin: 0.7rem 0 0;
    color: #475569;
    line-height: 1.65;
}

.site-confirm-copy {
    max-width: 420px;
    margin: 0 auto;
}

.site-confirm-actions,
.site-pix-actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.site-confirm-btn,
.site-pix-btn {
    border: none;
    border-radius: 14px;
    padding: 0.95rem 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-width: 200px;
}

.site-confirm-btn:hover,
.site-pix-btn:hover {
    transform: translateY(-1px);
}

.site-confirm-btn.is-secondary,
.site-pix-btn.is-secondary {
    background: #eef2f7;
    color: #334155;
}

.site-confirm-btn.is-primary,
.site-pix-btn.is-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(59, 130, 246, 0.22);
}

.site-confirm-btn.is-warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(249, 115, 22, 0.24);
}

.site-confirm-btn.is-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(220, 38, 38, 0.24);
}

.site-pix-btn.is-close {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 18px 30px rgba(220, 38, 38, 0.2);
}

.site-pix-dialog {
    width: min(640px, 100%);
    max-height: min(88vh, 760px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.site-pix-shell {
    padding: 2rem;
    overflow: auto;
}

.site-pix-header {
    padding-right: 3rem;
    margin-bottom: 1.35rem;
    text-align: center;
}

.site-pix-header-icon {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    margin: 0 auto 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(50, 188, 173, 0.16), rgba(37, 99, 235, 0.16));
    color: #14b8a6;
    font-size: 2rem;
}

.site-pix-summary {
    display: grid;
    gap: 0.85rem;
    padding: 1.1rem 1.15rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(50, 188, 173, 0.1), rgba(58, 134, 255, 0.08));
    border: 1px solid rgba(50, 188, 173, 0.18);
}

.site-pix-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #0f172a;
    font-weight: 600;
    align-items: center;
}

.site-pix-summary-row span:first-child {
    color: #64748b;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-pix-summary-row strong {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    min-width: 0;
}

.site-pix-summary-row.is-amount strong {
    color: #0f766e;
    font-size: 1.28rem;
}

.site-pix-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

#sitePixItemValue .site-pix-plan-badge.is-vip,
.site-pix-summary-row strong .site-pix-plan-badge.is-vip {
    color: #d97706 !important;
}

#sitePixItemValue .site-pix-plan-badge.is-premium,
.site-pix-summary-row strong .site-pix-plan-badge.is-premium {
    color: #2563eb !important;
}

#sitePixItemValue .site-pix-plan-badge.is-donation,
.site-pix-summary-row strong .site-pix-plan-badge.is-donation {
    color: #16a34a !important;
}

.site-pix-plan-badge.is-vip {
    color: #d97706;
}

.site-pix-plan-badge.is-premium {
    color: #2563eb;
}

.site-pix-plan-badge.is-donation {
    color: #16a34a;
}

.site-pix-status {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #eff6ff;
    border: 1px solid rgba(59, 130, 246, 0.16);
    color: #1d4ed8;
}

.site-pix-status i {
    margin-top: 0.15rem;
    font-size: 1.05rem;
}

.site-pix-status strong {
    display: block;
    color: #0f172a;
}

.site-pix-status p {
    margin: 0.18rem 0 0;
    color: #475569;
}

.site-pix-status.is-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.24);
    color: #059669;
}

.site-pix-status.is-error {
    background: rgba(239, 68, 68, 0.09);
    border-color: rgba(239, 68, 68, 0.22);
    color: #dc2626;
}

.site-pix-body {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
}

.site-pix-qr {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 1.5rem;
    border-radius: 22px;
    border: 2px dashed rgba(50, 188, 173, 0.35);
    background: #ffffff;
}

.site-pix-qr img {
    width: min(280px, 100%);
    height: auto;
    border-radius: 16px;
}

.site-pix-loading {
    display: grid;
    gap: 0.85rem;
    justify-items: center;
    text-align: center;
    color: #0f766e;
}

.site-pix-loading i {
    font-size: 2rem;
}

.site-pix-code-card,
.site-pix-steps {
    background: #f8fbff;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    padding: 1rem 1.1rem;
}

.site-pix-code-card h5,
.site-pix-steps h5 {
    margin: 0 0 0.8rem;
    color: #0f172a;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.site-pix-code-actions {
    display: flex;
    gap: 0.75rem;
}

.site-pix-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.site-pix-code {
    flex: 1;
    min-height: 90px;
    resize: none;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font: inherit;
    line-height: 1.55;
    color: #334155;
    background: #ffffff;
}

.site-pix-steps ol {
    margin: 0;
    padding-left: 1.2rem;
    color: #475569;
    line-height: 1.7;
}

.site-pix-steps li + li {
    margin-top: 0.35rem;
}

@media (max-width: 768px) {
    .site-confirm-dialog,
    .site-pix-dialog {
        border-radius: 20px;
    }

    .site-confirm-dialog,
    .site-pix-shell {
        padding: 1.25rem;
    }

    .site-confirm-btn {
        min-width: 0;
        width: 100%;
    }

    .site-confirm-actions,
    .site-pix-actions,
    .site-pix-code-actions {
        flex-direction: column;
    }

    .site-pix-summary-row {
        flex-direction: column;
        gap: 0.35rem;
    }

    .site-pix-qr {
        min-height: 220px;
    }
}
