/*
Theme Name: Ejecty
Description: Um tema WordPress moderno inspirado no design do site Ejecty
Version: 1.0
Author: Ejecty Team
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f8fafc;
    min-height: 100vh;
}

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

/* Cabeçalho */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo img {
    height: 32px;
}

@media (min-width: 768px) {
    .logo img {
        height: 40px;
    }
}

/* Navegação */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #000000;
}

/* Ajuste para o conteúdo não ficar atrás do header fixo */
body {
    padding-top: 80px;
}

/* Conteúdo principal */
main {
    margin: 2rem 0;
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Cards dos posts */
.post {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #374151;
}

.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.page {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    color: #111827;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #111827;
}

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

h1 a:hover {
    color: #374151;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #374151;
}

/* Parágrafos */
p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #374151;
}

/* Links */
a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #374151;
}

/* Botões */
.btn, .wp-block-button__link {
    display: inline-block;
    background: #111827;
    color: white !important;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:hover, .wp-block-button__link:hover {
    background: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Meta informações dos posts */
.post-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding: 12px 20px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #374151;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.post-meta span::before {
    content: '';
}

.post-meta span:not(:first-child)::before {
    content: '•';
    margin-right: 0.75rem;
    color: #9ca3af;
}

.post-meta a {
    color: #6b7280;
}

.post-meta a:hover {
    color: #374151;
}

/* Imagens destacadas */
.post-thumbnail,
.page-thumbnail {
    margin: 1.5rem 0 2rem 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-thumbnail img,
.page-thumbnail img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.post-thumbnail img:hover,
.page-thumbnail img:hover {
    transform: scale(1.02);
}

/* Conteúdo dos posts */
.post-content {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
}

.post-content img:hover {
    transform: scale(1.02);
}

.post-content blockquote {
    border-left: 4px solid #374151;
    background: #f9fafb;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
}

.post-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    color: #374151;
}

.post-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Força todas as imagens a respeitarem o container */
.post img,
.page img,
.post-content img,
.page-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    box-sizing: border-box !important;
    display: block;
}

/* Específico para imagens destacadas */
.wp-post-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

/* Tags dos posts */
.post-tags {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 2rem;
    border: 1px solid #e5e7eb;
}

.post-tags a {
    display: inline-block;
    background: #e5e7eb;
    color: #374151;
    padding: 4px 12px;
    border-radius: 6px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.post-tags a:hover {
    background: #374151;
    color: white;
}

/* Navegação de posts */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.post-navigation a {
    color: #374151;
    font-weight: 500;
}

.post-navigation a:hover {
    color: #000000;
}

/* Paginação */
.pagination {
    text-align: center;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 6px;
    background: #ffffff;
    border: 1px solid rgba(102, 126, 234, 0.2);
    text-decoration: none;
    color: #374151;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagination a:hover {
    background: #374151;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pagination .current {
    background: #111827;
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Rodapé */
footer {
    background: #111827;
    color: #d1d5db;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Página 404 */
.error-404 {
    text-align: center;
    padding: 4rem 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.error-404 h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #374151;
}

.error-actions {
    margin-top: 2rem;
}

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

.search-form input[type="search"] {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    margin-right: 8px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #374151;
    background: white;
    box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.1);
}

.search-form input[type="submit"] {
    padding: 12px 24px;
    background: #111827;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-form input[type="submit"]:hover {
    background: #374151;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsividade */
@media (max-width: 1200px) {
    .content-wrapper {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .content-wrapper {
        padding: 0 16px;
        max-width: 100%;
    }
    
    main {
        padding: 2rem 0;
    }
    
    .post, .page {
        padding: 2rem;
    }
    
    .post-thumbnail,
    .page-thumbnail {
        margin: 1rem 0 1.5rem 0;
    }
    
    .post img,
    .page img,
    .post-content img,
    .page-content img,
    .wp-post-image {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Melhorias de acessibilidade */
:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
} 