/* Estilos gerais */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #F3F4F6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

a {
    color: #1E3A8A;
    transition: all 0.3s ease;
}

a:hover {
    color: #F97316;
    text-decoration: none;
}

/* Variáveis de cores */
:root {
    --primary: #1E3A8A;
    --primary-light: #E0E7FF;
    --primary-rgb: 30, 58, 138;
    --secondary: #F97316;
    --dark: #1F2937;
    --light: #F3F4F6;
    --white: #FFFFFF;
    --gray: #6B7280;
    --accent: #F97316;
    --light-gray: #E5E7EB;
}

/* Header */
.site-header {
    background-color: var(--primary);
    padding: 1.5rem 0;
}

.site-title {
    font-size: 2.2rem;
    margin-bottom: 0;
    color: var(--white);
}

.site-description {
    font-size: 1rem;
    opacity: 0.9;
    color: var(--white);
}

/* Navbar */
.navbar {
    padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-nav .nav-item.active .nav-link {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Hero Section */
.hero-section {
    background-color: var(--primary);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 58, 138, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
}

.btn-primary:hover {
    background-color: #E86A10;
    border-color: #E86A10;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: var(--white);
    border-top: 1px solid var(--light-gray);
    padding: 1rem 1.5rem;
}

/* Sections */
.section {
    padding: 40px 0;
}

.section + .section {
    padding-top: 20px;
}

.section-title {
    margin-bottom: 30px;
    position: relative;
}

.section-title.text-center:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    margin: 15px auto 0;
}

/* Ajustes para os cards na página Sobre */
.qualification-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.qualification-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.feature-box {
    padding: 25px 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* About Section */
.about-section {
    background-color: var(--white);
}

.about-img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Página Sobre */
.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid var(--primary);
}

.section-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.timeline {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background-color: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-badge {
    position: absolute;
    left: -50px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.timeline-content {
    padding: 20px;
    background-color: var(--secondary);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 600;
}

.qualification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qualification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.qualification-item i {
    margin-top: 3px;
}

.cta-section {
    background-image: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(30, 58, 138, 0.8) 100%);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

/* Responsividade */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .navbar-collapse {
        background-color: var(--primary);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }
}

/* Modo Escuro */
.dark-mode {
    --primary: #1a365d;
    --secondary: #1a202c;
    --white: #2d3748;
    --accent: #ed8936;
    --dark: #e2e8f0;
    --light-gray: #4a5568;
    color: #e2e8f0;
    background-color: #171923;
}

.dark-mode .card,
.dark-mode .feature-box,
.dark-mode .timeline-content {
    background-color: #2d3748;
    color: #e2e8f0;
}

.dark-mode .card-title,
.dark-mode .section-title,
.dark-mode .section-subtitle,
.dark-mode .timeline-content h4 {
    color: #90cdf4;
}

.dark-mode .navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.dark-mode .footer {
    background-color: #1a365d;
}

.dark-mode .btn-outline-primary {
    color: #90cdf4;
    border-color: #90cdf4;
}

.dark-mode .btn-outline-primary:hover {
    background-color: #90cdf4;
    color: #1a202c;
}

.dark-mode .btn-outline-light {
    color: #e2e8f0;
    border-color: #e2e8f0;
}

/* Animações e Efeitos */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.slide-in-left {
    animation: slideInLeft 1s ease-in-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-in-out;
}

.zoom-in {
    animation: zoomIn 0.5s ease-in-out;
}

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

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

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

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Efeitos de Hover */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: all 0.6s ease;
}

.btn:hover::after {
    left: 100%;
}

.feature-box {
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: scale(1.2);
    color: var(--accent);
}

/* Estilos para imagem de perfil */
.profile-image {
    border: 5px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* Ajuste para modo escuro */
[data-theme="dark"] .profile-image {
    border-color: var(--dark-secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* Switch para Dark Mode */
.dark-mode-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin-bottom: 0;
}

.dark-mode-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dark-mode-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.dark-mode-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .dark-mode-slider {
    background-color: var(--accent);
}

input:checked + .dark-mode-slider:before {
    transform: translateX(22px);
}

.dark-mode-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 0.5rem;
    height: 100%;
}

.dark-mode-icon {
    font-size: 1rem;
    color: var(--white);
}

/* Estatísticas com contador */
.stats-container {
    background-color: var(--primary);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
}

.stats-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%);
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
}

.stat-text {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Estilos para a seção de categoria */
.categoria-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
}

.categoria-header:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.categoria-badge {
    background-color: var(--primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.categoria-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.categoria-header .lead {
    font-size: 1.1rem;
    font-weight: 400;
}

.categoria-header .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.categoria-header .badge:hover {
    transform: translateY(-2px);
}

/* Estilos para os novos elementos de categorias */
.categoria-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: var(--white);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.categoria-chip:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.2);
}

.categoria-chip i {
    margin-right: 6px;
    font-size: 0.8rem;
}

.categoria-header {
    transition: all 0.3s ease;
}

.categoria-header:hover {
    box-shadow: 0 8px 15px rgba(var(--primary-rgb), 0.1);
}

.categoria-badge {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.categoria-filter {
    padding: 16px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.categoria-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 768px) {
    .categoria-filter .d-flex {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .categoria-filter h5 {
        margin-bottom: 10px;
    }
}

/* Estilos para os cards de post */
.post-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-card .badge {
    transition: all 0.3s ease;
}

.post-card .badge:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

/* Header Moderno de Categoria */
.categoria-header-modern {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.categoria-header-modern:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

.categoria-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(30, 58, 138, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(249, 115, 22, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.categoria-badge-large {
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.categoria-badge-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 58, 138, 0.15) !important;
}

.categoria-icon-wrapper {
    transition: all 0.3s ease;
}

.categoria-badge-large:hover .categoria-icon-wrapper {
    transform: rotate(10deg) scale(1.1);
}

/* Cards de Artigos Aprimorados */
.post-card-enhanced {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg, #fff);
}

.post-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15) !important;
}

.post-image-wrapper {
    height: 240px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card-enhanced:hover .post-image {
    transform: scale(1.08);
}

.post-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(4px);
}

.post-card-enhanced:hover .post-overlay {
    opacity: 1;
}

.post-overlay .btn {
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card-enhanced:hover .post-overlay .btn {
    transform: scale(1);
}

.post-card-enhanced .card-title a {
    transition: color 0.3s ease;
}

.post-card-enhanced:hover .card-title a {
    color: var(--primary) !important;
}

.post-meta {
    font-size: 0.875rem;
}

/* Responsividade para Header de Categoria */
@media (max-width: 768px) {
    .categoria-header-modern {
        padding: 2rem !important;
    }
    
    .categoria-badge-large {
        flex-direction: column;
        text-align: center;
    }
    
    .categoria-icon-wrapper {
        margin-bottom: 0.5rem !important;
    }
    
    .post-image-wrapper {
        height: 200px;
    }
}

/* Estilos para a seção de categorias na barra lateral */
.sidebar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.sidebar-category {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #4a6bff 100%);
    color: var(--white);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.sidebar-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--white);
    text-decoration: none;
}

.sidebar-container {
    margin-bottom: 2rem;
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Melhorias para a página de post */
.post-hero {
    margin-bottom: 2rem;
}

.post-container {
    margin-bottom: 2rem;
}

.recent-post-item.active {
    background-color: rgba(var(--primary-rgb), 0.05);
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.recent-post-item.active .recent-post-title {
    color: var(--primary);
    font-weight: 700;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .post-hero {
        height: 300px;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-nav-link {
        padding: 0.8rem;
    }
    
    .post-nav-title {
        font-size: 0.9rem;
    }
}
