/*
Theme Name: Taxi Digital Central de Ajuda
Theme URI: https://taxidigital.net
Description: Tema personalizado para Central de Ajuda do Taxi Digital com sistema de FAQ e artigos
Author: Taxi Digital
Version: 1.0
License: GPL v2 or later
*/

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

/* Variáveis CSS para cores do Taxi Digital */
:root {
    --taxi-yellow: #FFD700;
    --taxi-black: #1A1A1A;
    --taxi-gray: #6B7280;
    --taxi-gray-light: #F3F4F6;
    --taxi-gray-dark: #374151;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
}

/* Base */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--taxi-black);
    background-color: var(--white);
}

/* Header */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.site-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--taxi-black);
    text-decoration: FAQ TD;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--taxi-yellow);
    background: transparent;
    color: var(--taxi-black);
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-button:hover {
    background: var(--taxi-yellow);
    color: var(--taxi-black);
}

.nav-button.primary {
    background: var(--taxi-black);
    color: var(--white);
    border-color: var(--taxi-black);
}

.nav-button.primary:hover {
    background: var(--taxi-gray-dark);
}

/* Main Container */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    min-height: calc(100vh - 64px);
}

/* Sidebar */
.sidebar {
    width: 320px;
    background: var(--taxi-gray-light);
    border-right: 1px solid var(--border-color);
    height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 1rem;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--taxi-gray);
}

/* Category Navigation */
.category-nav {
    list-style: none;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-button {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: none;
    text-align: left;
    border-radius: 0.5rem;
    color: var(--taxi-gray-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-button:hover,
.category-button.active {
    background: var(--taxi-yellow);
    color: var(--taxi-black);
}

.category-articles {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.article-link {
    display: block;
    padding: 0.5rem;
    color: var(--taxi-gray);
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.article-link:hover {
    background: var(--white);
    color: var(--taxi-black);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.content-wrapper {
    max-width: 1024px;
    margin: 0 auto;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

.welcome-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--taxi-black);
    margin-bottom: 1rem;
}

.welcome-description {
    font-size: 1.125rem;
    color: var(--taxi-gray);
    margin-bottom: 2rem;
}

/* Article Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--taxi-black);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-excerpt {
    color: var(--taxi-gray);
    font-size: 0.875rem;
    line-height: 1.5;
}

.reading-time {
    font-size: 0.75rem;
    color: var(--taxi-gray);
    margin-bottom: 0.5rem;
}

/* Single Article */
.article-header {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--taxi-gray);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--taxi-gray);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--taxi-black);
}

.article-content {
    line-height: 1.8;
    color: var(--taxi-gray-dark);
}

.article-content h2,
.article-content h3 {
    color: var(--taxi-black);
    margin: 1.5rem 0 0.75rem 0;
}

.article-content h2 {
    font-size: 1.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--taxi-yellow);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--taxi-black);
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: all 0.2s;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--taxi-black);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: all 0.2s;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--taxi-gray-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .header-nav {
        display: none;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
}
/* Botão flutuante WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 65px; 
  height: 65px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  text-decoration: none !important; /* remove o sublinhado */
}

/* Ícone dentro do botão */
.whatsapp-button img,
.whatsapp-button i {
  width: 21px;   /*posição do ícone zap */
  height: 24px;
  object-fit: contain;
  display: block;
}

