/**
 * OVERRIDE THEME - pixelemfoco
 * Arquivo para sobrescrever cores de projetos existentes
 * Adicione este arquivo APÓS os CSS existentes
 */

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

/* ==================== VARIÁVEIS GLOBAIS - FORÇA OVERRIDE ==================== */
:root {
    /* MODO CLARO - Padrão */
    --bg-body: #F4F6F8 !important;
    --bg-header: #FFFFFF !important;
    --text-primary: #1C1E21 !important;
    --text-secondary: #4E5D6C !important;
    --btn-primary: #C8943B !important;
    --btn-secondary: #C8943B !important;
    --btn-hover: #C8943B !important;
    --link-action: #4A4A4A !important;
    --border-color: #D0D7DE !important;
    --highlight: #7E57C2 !important;
    --btn-github: #7E57C2 !important;
    
    /* Backgrounds adicionais */
    --bg-card: #FFFFFF !important;
    --bg-input: #FFFFFF !important;
    --bg-sidebar: #FFFFFF !important;
    --bg-modal: #FFFFFF !important;
    
    /* Overrides de cores antigas */
    --color-primary: #C8943B !important;
    --color-primary-dark: #C8943B !important;
    --color-primary-light: #7E57C2 !important;
    --color-dark: #1C1E21 !important;
    --color-dark-gray: #4E5D6C !important;
    --color-gray: #4E5D6C !important;
    --color-light-gray: #D0D7DE !important;
    --color-white: #FFFFFF !important;
    --color-off-white: #F4F6F8 !important;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15) !important;
    --glow-inner: inset 0 1px 2px rgba(255, 255, 255, 0.5) !important;
    
    /* Tipografia */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    
    /* Border radius */
    --radius-sm: 4px !important;
    --radius-md: 8px !important;
    --radius-lg: 12px !important;
    --border-radius-sm: 4px !important;
    --border-radius-md: 8px !important;
    --border-radius-lg: 12px !important;
    
    /* Transitions */
    --transition-all: all 0.3s ease !important;
    --transition-fast: 150ms ease !important;
    --transition-base: 300ms ease !important;
}

[data-theme="dark"] {
    /* MODO ESCURO */
    --bg-body: #0D1117 !important;
    --bg-header: #161B22 !important;
    --text-primary: #E6EDF3 !important;
    --text-secondary: #8B949E !important;
    --btn-primary: #C8943B !important;
    --btn-secondary: #C8943B !important;
    --btn-hover: #C8943B !important;
    --link-action: #4A4A4A !important;
    --border-color: #30363D !important;
    --highlight: #9B6BFF !important;
    --btn-github: #7E57C2 !important;
    
    /* Backgrounds adicionais */
    --bg-card: #161B22 !important;
    --bg-input: #0D1117 !important;
    --bg-sidebar: #161B22 !important;
    --bg-modal: #161B22 !important;
    
    /* Overrides de cores antigas */
    --color-primary: #C8943B !important;
    --color-primary-dark: #C8943B !important;
    --color-primary-light: #9B6BFF !important;
    --color-dark: #E6EDF3 !important;
    --color-dark-gray: #8B949E !important;
    --color-gray: #8B949E !important;
    --color-light-gray: #30363D !important;
    --color-white: #E6EDF3 !important;
    --color-off-white: #161B22 !important;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4) !important;
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
    --shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.5) !important;
    --glow-inner: inset 0 1px 2px rgba(155, 107, 255, 0.2) !important;
}

/* ==================== APLICAÇÃO DAS CORES ==================== */
body {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-family) !important;
}

header,
.header,
nav,
.navbar {
    background-color: var(--bg-header) !important;
    border-bottom-color: var(--border-color) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
}

p, span:not(.logo-pixel):not(.logo-em):not(.logo-foco) {
    color: var(--text-secondary) !important;
}

a {
    color: var(--link-action) !important;
}

a:hover {
    color: var(--btn-primary) !important;
}

/* BOTÕES */
button,
.btn,
input[type="submit"],
input[type="button"],
.btn-primary,
.download-btn {
    background-color: var(--btn-primary) !important;
    color: #FFFFFF !important;
    border-radius: var(--radius-md) !important;
    transition: var(--transition-all) !important;
    border: none !important;
}

button:hover,
.btn:hover,
.btn-primary:hover,
.download-btn:hover {
    background-color: var(--btn-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-hover) !important;
}

.btn-github,
button.github {
    background-color: var(--btn-github) !important;
}

/* INPUTS */
input,
textarea,
select,
.form-control {
    background-color: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
    border-radius: var(--radius-md) !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    border-color: var(--btn-primary) !important;
    box-shadow: 0 0 0 3px rgba(200, 148, 59, 0.1) !important;
}

/* CARDS */
.card,
.apk-item,
.service-card,
.project-item,
.curso-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    border-radius: var(--radius-md) !important;
}

/* TABELAS */
table {
    background-color: var(--bg-card) !important;
}

th {
    background-color: var(--bg-header) !important;
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-color) !important;
}

td {
    color: var(--text-secondary) !important;
    border-bottom-color: var(--border-color) !important;
}

/* BORDAS */
hr,
.divider {
    border-color: var(--border-color) !important;
}

/* DESTAQUES */
.highlight,
.active,
.selected {
    color: var(--highlight) !important;
}

/* FOOTER */
footer,
.footer {
    background-color: var(--bg-header) !important;
    border-top-color: var(--border-color) !important;
}

/* MODAIS */
.modal,
.modal-content {
    background-color: var(--bg-modal) !important;
}

/* SCROLLBAR */
::-webkit-scrollbar-track {
    background: var(--bg-body) !important;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary) !important;
}

/* ==================== TRANSIÇÕES GLOBAIS ==================== */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

button, .btn, a {
    transition: all 0.3s ease !important;
}
