:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Estilos do Cabeçalho */
.navbar {
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: none;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
}

.logo span {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-right: 2px;
    transform-origin: center;
}

.logo:hover span {
    transform: rotate(-360deg);
    color: var(--secondary-color);
}

/* Efeito cascata na rotação (invertido a ordem dos delays) */
.logo span:nth-child(11) { transition-delay: 0.05s; }
.logo span:nth-child(10) { transition-delay: 0.1s; }
.logo span:nth-child(9) { transition-delay: 0.15s; }
.logo span:nth-child(8) { transition-delay: 0.2s; }
.logo span:nth-child(7) { transition-delay: 0.25s; }
.logo span:nth-child(6) { transition-delay: 0.3s; }
.logo span:nth-child(5) { transition-delay: 0.35s; }
.logo span:nth-child(4) { transition-delay: 0.4s; }
.logo span:nth-child(3) { transition-delay: 0.45s; }
.logo span:nth-child(2) { transition-delay: 0.5s; }
.logo span:nth-child(1) { transition-delay: 0.55s; }

.search-bar {
    position: relative;
    width: 255px;
}

.search-bar input {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
}

/* Posicionamento do ícone de pesquisa */
.search-bar .fa-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-bar .fa-search:hover {
    color: var(--secondary-color);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.search-result-item {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f5f5f5;
}

.search-result-category {
    color: var(--secondary-color);
    font-size: 0.8em;
    margin-bottom: 3px;
}

.search-result-item h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 0.9em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    color: var(--primary-color);
    text-decoration: none;
    padding: 5px 0;
}

/* Efeito de linha que sobe */
.nav-links a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

/* Efeito de preenchimento que desce */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    opacity: 0.1;
    transition: height 0.3s ease;
    z-index: -1;
}

/* Ativa os efeitos no hover */
.nav-links a:hover::before {
    transform: scaleY(1);
}

.nav-links a:hover::after {
    height: 100%;
}

/* Ajuste para o link ativo */
.nav-links a.active {
    color: var(--secondary-color);
}

/* Estilos dos Posts em Destaque */
.featured-posts, .latest-posts {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.featured-posts h2, .latest-posts h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.featured-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-image {
    height: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-category {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.card-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.card-content p {
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: 1.5rem;
    color: #a0aec0;
    font-size: 0.9rem;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .card-image {
        height: 200px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos da Newsletter */
.newsletter {
    background: white;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.newsletter-form button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Estilos do Rodapé */
footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
}

/* Ajuste no cursor para elementos clicáveis */
.card-content h2, .card-image {
    cursor: pointer;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    opacity: 1;
    visibility: visible;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.tech-animation {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.tech-animation i {
    position: absolute;
    color: #00ff88;
    animation: techFloat 3s ease-in-out infinite;
    opacity: 0;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.tech-animation i:nth-child(1) { left: 20%; animation-delay: 0.2s; }
.tech-animation i:nth-child(2) { left: 40%; animation-delay: 0.5s; }
.tech-animation i:nth-child(3) { left: 60%; animation-delay: 0.8s; }
.tech-animation i:nth-child(4) { left: 80%; animation-delay: 1.1s; }
.tech-animation i:nth-child(5) { left: 30%; animation-delay: 1.4s; }
.tech-animation i:nth-child(6) { left: 70%; animation-delay: 1.7s; }

@keyframes techFloat {
    0% {
        top: -20px;
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 200px;
        opacity: 0;
        transform: translateY(-20px) rotate(360deg);
    }
}

.loading-text {
    text-align: center;
    color: white;
    margin-top: 2rem;
}

.loading-text span {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #00ff88, #00b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.loading-text p {
    font-size: 1.1rem;
    opacity: 0.8;
    color: #a0aec0;
}

/* Legal Pages Styles */
.legal-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.legal-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-content section {
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content p {
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .legal-content {
        padding: 0 1rem;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.3rem;
    }
}

/* Latest Posts Section */
.latest-posts-section {
    padding: 2rem;
}

.latest-posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.latest-posts .post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.latest-posts .post-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.latest-posts .post-card:hover {
    transform: translateY(-5px);
}

/* Responsivo */
@media (max-width: 1200px) {
    .latest-posts {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .latest-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .latest-posts {
        grid-template-columns: 1fr;
    }
}

/* Recent Posts Section */
.recent-posts-section {
    padding: 2rem;
}

.recent-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.recent-posts .post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.recent-posts .post-card img {
    width: 100%;
    height: 250px; /* Altura reduzida */
    object-fit: cover;
}

.recent-posts .post-card:hover {
    transform: translateY(-5px);
}

/* Responsivo */
@media (max-width: 768px) {
    .recent-posts {
        grid-template-columns: 1fr;
    }
    
    .recent-posts .post-card img {
        height: 200px; /* Altura ainda menor em telas pequenas */
    }
}

/* Estilos comuns para todos os post cards */
.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-info {
    padding: 1.5rem;
    position: relative;
}

.category {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.date {
    color: #666;
    font-size: 0.9rem;
}

.post-card h3 {
    margin: 1rem 0;
    color: #333;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.post-card:hover h3 {
    color: var(--primary-color);
}

.post-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Recent Posts específico */
.recent-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Latest Posts específico */
.latest-posts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Responsivo */
@media (max-width: 1200px) {
    .latest-posts {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .latest-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .recent-posts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .latest-posts {
        grid-template-columns: 1fr;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
    display: none;
}

.cookie-banner.hidden {
    opacity: 0;
    pointer-events: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-content a {
    color: #4CAF50;
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.accept {
    background-color: #4CAF50;
    color: white;
}

.accept:hover {
    background-color: #45a049;
}

.reject {
    background-color: #f44336;
    color: white;
}

.reject:hover {
    background-color: #da190b;
}

@media (max-width: 768px) {
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
} 