/* Base styles - seguindo o design do DataEngineer.Help */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

:root {
    --primary-color: #004aad;
    --primary-hover: #0066ff;
    --secondary-color: #f1f3f8;
    --text-primary: #004aad;
    --gray-100: #f7fafc;
    --gray-200: #edf2f7;
    --gray-600: #718096;
    --gray-800: #2d3748;
    --yellow-400: #f6e05e;
    --yellow-300: #faf089;
    --green-500: #48bb78;
    --red-500: #f56565;
}

/* Correção crítica: garantir que pseudo-elementos não bloqueiem cliques */
.hero::before,
.hero::after {
    pointer-events: none !important;
}

/* Garantir que links e botões estejam sempre clicáveis */
.hero a,
.hero button,
.hero .btn,
.portfolio-card a,
.portfolio-card button,
.portfolio-card .btn,
.card a,
.card button,
.card .btn {
    position: relative;
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* Garantir clicabilidade específica para botões "Ver Portfólio" */
.portfolio-grid .btn,
.dashboard .btn,
.btn[href],
.btn-primary,
.btn-secondary {
    position: relative !important;
    z-index: 15 !important;
    pointer-events: auto !important;
}

/* Regra geral para garantir que todos os elementos interativos funcionem */
a, button, input[type="submit"], input[type="button"], .btn {
    pointer-events: auto !important;
}

/* CORREÇÃO ESPECÍFICA: Garantir que seções com call-to-action não tenham problemas */
section a,
section button,
section .btn,
section[style*="background: white"] a,
section[style*="background: white"] button,
section[style*="background: white"] .btn {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100 !important;
    cursor: pointer !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
}

.bg-primary { background-color: var(--primary-color); }
.text-primary { color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }

/* Header styles */
header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 48px;
    margin-right: 1rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    font-size: 1rem;
}

.nav-menu a, .nav-menu .btn {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    min-width: 0;
}

.nav-menu a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover {
    color: var(--primary-hover);
}

/* Dropdown Legal custom */
.dropdown-legal {
    position: relative;
}
.dropdown-legal > a {
    cursor: pointer;
    white-space: nowrap;
}
.dropdown-menu-legal {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 6px;
    min-width: 180px;
    top: 120%;
    left: 0;
    z-index: 9999;
    padding: 0.5rem 0;
    flex-direction: column;
    white-space: nowrap;
}
.dropdown-menu-legal li {
    width: 100%;
}
.dropdown-menu-legal a {
    padding: 0.5rem 1rem;
    display: block;
    color: var(--primary-color);
    font-size: 1rem;
    text-align: left;
    white-space: nowrap;
}
.dropdown-menu-legal a:hover {
    background: var(--gray-100);
    color: var(--primary-hover);
}
@media (max-width: 900px) {
    .dropdown-menu-legal {
        min-width: 140px;
        font-size: 0.95rem;
    }
    .dropdown-menu-legal a {
        font-size: 0.95rem;
    }
}
@media (max-width: 768px) {
    .dropdown-menu-legal {
        left: 0;
        right: auto;
        min-width: 120px;
        font-size: 0.9rem;
    }
    .dropdown-menu-legal a {
        font-size: 0.9rem;
    }
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero section */
.hero {
    background: white;
    color: var(--primary-color);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* SVG de fundo dos quadradinhos */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20h100M0 40h100M0 60h100M0 80h100M20 0v100M40 0v100M60 0v100M80 0v100' stroke='%23004aad' stroke-width='1' stroke-opacity='0.1' fill='none'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none !important;
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    /* Removido position e z-index desnecessários após limpeza da seção hero */
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 74, 173, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--gray-200);
}

.btn-yellow {
    background-color: var(--yellow-400);
    color: var(--gray-800);
}

.btn-yellow:hover {
    background-color: var(--yellow-300);
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: var(--gray-100);
    border-top: 1px solid var(--gray-200);
}

/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.portfolio-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.portfolio-bio {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-800);
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    color: var(--gray-800);
    background: white;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--gray-600);
    opacity: 1;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #f0fff4;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background-color: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.alert-info {
    background-color: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #90cdf4;
}

/* Navigation breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Footer */
footer {
    background-color: var(--gray-800);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Responsive design */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 0.5rem;
        font-size: 0.95rem;
    }
    .nav-menu a, .nav-menu .btn {
        font-size: 0.95rem;
        padding: 0.5rem 0.5rem;
    }
    .logo h1 {
        font-size: 1.1rem;
    }
}

@media (max-width: 900px) {
    .nav-menu {
        gap: 0.3rem;
        font-size: 0.9rem;
    }
    .nav-menu a, .nav-menu .btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.3rem;
    }
    .logo h1 {
        font-size: 1rem;
    }
    .nav-menu .btn-yellow span {
        display: none;
    }
    .nav-menu .btn-yellow i {
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0.5rem;
    }
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.2rem;
    }
    .logo {
        margin-bottom: 0.5rem;
    }
    .logo h1 {
        font-size: 0.95rem;
    }
    .nav-menu .btn-yellow span {
        display: none;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.py-4 { padding: 1.5rem 0; }
.py-5 { padding: 2rem 0; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

/* Header Search Styles */
.header-search {
    display: flex !important;
    align-items: center;
}

.header-search input {
    color: var(--gray-800) !important;
    background: white !important;
    font-size: 0.9rem;
}

.header-search input::placeholder {
    color: var(--gray-600) !important;
    opacity: 1;
}

.header-search input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 74, 173, 0.1);
    color: var(--gray-800) !important;
}

.header-search button:hover {
    background: var(--primary-hover);
}

/* Responsive - esconder busca em mobile */
@media (max-width: 992px) {
    .header-search {
        display: none !important;
    }
}

/* CORREÇÃO GLOBAL: Garantir que todos os campos de busca tenham texto preto */
input[name="q"],
input[placeholder*="busca"],
input[placeholder*="Busca"],
input[placeholder*="Digite"],
.search-form input,
.header-search input {
    color: var(--gray-800) !important;
    background: white !important;
}

input[name="q"]::placeholder,
input[placeholder*="busca"]::placeholder,
input[placeholder*="Busca"]::placeholder,
input[placeholder*="Digite"]::placeholder,
.search-form input::placeholder,
.header-search input::placeholder {
    color: var(--gray-600) !important;
    opacity: 1;
}

/* Search Results Animations */
.result-card {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 