/**
 * PCI Design System v2.0 - "Slate & Gold"
 * Identidade Gráfica Unificada para Portais PCIP
 * 
 * Este ficheiro contém as variáveis e classes de utilidade para manter a 
 * coerência visual em todos os módulos e sites relacionados.
 */

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

:root {
    /* --- CORES PRINCIPAIS (PALETE SLATE) --- */
    --pci-navy: #0f172a;
    /* Azul Escuro Profundo (Sidebar/Fondos) */
    --pci-navy-light: #1e293b;
    /* Azul Marinho Médio */
    --pci-accent: #3b82f6;
    /* Azul Vibrante (Ações/Destaques) */
    --pci-gold: #c5a059;
    /* Ouro (Detalhes Institucionais) */

    /* --- CORES DE ESTADO --- */
    --pci-success: #22c55e;
    --pci-danger: #ef4444;
    --pci-warning: #f59e0b;
    --pci-info: #06b6d4;

    /* --- CORES DE FUNDO E TEXTO --- */
    --pci-bg-page: #f8fafc;
    --pci-text-main: #1e293b;
    --pci-text-muted: #64748b;
    --pci-border: #e2e8f0;

    /* --- ESTRUTURA --- */
    --pci-sidebar-width: 320px;
    --pci-radius-xl: 1.5rem;
    /* 24px */
    --pci-radius-lg: 1rem;
    /* 16px */
    --pci-radius-md: 0.75rem;
    /* 12px */

    /* --- SOMBRAS (SHADOWS) --- */
    --pci-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --pci-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --pci-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- ESTILOS GERAIS --- */
body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--pci-bg-page);
    color: var(--pci-text-main);
}

/* --- TIPOGRAFIA --- */
.pci-heading {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gold {
    color: var(--pci-gold) !important;
}

.text-accent {
    color: var(--pci-accent) !important;
}

.section-tag {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--pci-accent);
    margin-bottom: 0.75rem;
    display: block;
}

/* --- COMPONENTES UI --- */

/* Cartões Premium */
.pci-card {
    background: white;
    border: 1px solid var(--pci-border);
    border-radius: var(--pci-radius-lg);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pci-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--pci-shadow-lg);
    border-color: var(--pci-accent);
}

/* Botões Customizados */
.btn-pci {
    padding: 0.75rem 1.5rem;
    border-radius: 50rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-pci-primary {
    background: var(--pci-accent);
    color: white;
    border: none;
}

.btn-pci-primary:hover {
    background: #2563eb;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    color: white;
}

/* Badges e Tags */
.pci-badge {
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
}

.pci-badge-success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.pci-badge-accent {
    background: rgba(59, 130, 246, 0.1);
    color: var(--pci-accent);
}

/* --- GLASSMORPHISM --- */
.pci-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.pci-glass-dark {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
}

/* --- NAVEGAÇÃO LATERAL (SIDEBAR) --- */
.pci-sidebar {
    width: var(--pci-sidebar-width);
    background: var(--pci-navy);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    color: white;
    padding: 2rem;
    z-index: 1000;
}

.pci-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--pci-radius-md);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 0.5rem;
}

.pci-nav-item:hover,
.pci-nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.pci-nav-item.active {
    background: var(--pci-accent);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
}

/* --- CONTEÚDO --- */
.pci-main-content {
    margin-left: var(--pci-sidebar-width);
    padding: 3rem;
}

/* --- UNIFIED WHITE HEADER STYLE --- */
.pci-header-white {
    background: white !important;
    border-bottom: 1px solid var(--pci-border) !important;
    padding: 0.75rem 0 !important;
    height: 90px;
    display: flex;
    align-items: center;
}

.pci-logo-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pci-logo-divider {
    width: 1px;
    height: 40px;
    background: var(--pci-border);
}

.pci-brand-text {
    border-left: 2px solid var(--pci-gold);
    padding-left: 1rem;
    line-height: 1.2;
}

.pci-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--pci-accent);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

.pci-brand-subtitle {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--pci-text-muted);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 1px;
}

.pci-nav-pills .nav-link {
    color: var(--pci-text-main);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.pci-nav-pills .nav-link:hover {
    color: var(--pci-accent);
    background: rgba(59, 130, 246, 0.05);
}

.pci-nav-pills .nav-link.active {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--pci-accent) !important;
}

.btn-area-reservada {
    background: var(--pci-accent);
    color: white;
    border-radius: 0.75rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-area-reservada:hover {
    background: #2563eb;
    color: white;
    box-shadow: var(--pci-shadow-md);
    transform: translateY(-1px);
}

@media (max-width: 992px) {
    .pci-sidebar {
        display: none;
    }

    .pci-main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .pci-header-white {
        height: auto;
        padding: 1rem 0 !important;
    }
}