/*
Theme Name: PNL Q&A
Theme URI: https://pnl.com.br
Author: SBPNL
Author URI: https://sbpnl.com.br
Description: Tema otimizado para perguntas e respostas sobre PNL com busca estilo chat
Version: 1.0.0
License: GPL v2
Text Domain: pnl-qa
*/

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563EB;
    --dark-blue: #1E40AF;
    --light-blue: #EFF6FF;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --white: #FFFFFF;
    --border: #E5E7EB;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
}

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

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--primary-blue);
}

/* Search Chat Box */
.search-chat {
    background: var(--light-blue);
    padding: 60px 0;
    margin: 40px 0;
    border-radius: 12px;
}

.chat-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.chat-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
    text-align: center;
}

.chat-subtitle {
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 30px;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-size: 16px;
    border: 2px solid var(--border);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-button:hover {
    background: var(--dark-blue);
}

/* Search Suggestions */
.search-suggestions {
    background: var(--white);
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: var(--light-blue);
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* Categories Grid */
.categories-section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s;
}

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

.category-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.category-count {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.category-questions {
    list-style: none;
}

.category-questions li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.category-questions li:last-child {
    border-bottom: none;
}

.category-questions a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: color 0.2s;
}

.category-questions a:hover {
    color: var(--primary-blue);
}

/* Single Post */
.single-post {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.post-header {
    margin-bottom: 40px;
}

.post-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
    font-size: 14px;
}

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.post-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--dark-blue);
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin: 20px 0 20px 30px;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-gray);
}

/* Related Posts */
.related-posts {
    background: var(--light-blue);
    padding: 40px;
    border-radius: 12px;
    margin-top: 60px;
}

.related-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.related-list {
    list-style: none;
}

.related-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.related-list a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    text-align: center;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-nav a:hover {
    opacity: 0.8;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Mobile */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .chat-title {
        font-size: 24px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* Schema Markup Helper Classes */
.schema-faq {
    display: none;
}

/* Acessibilidade */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--primary-blue);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
