/*
Theme Name: Portal Concursos
Theme URI: https://github.com/luc4s/portal-concursos
Description: Um tema WordPress de alto desempenho, focado em portais de notícias e acompanhamento de concursos públicos. Construído do zero com foco estrito em SEO técnico, acessibilidade (WCAG), performance e autoridade de marca (diretrizes de E-E-A-T).
Version: 1.0.0
Author: Antigravity AI
Author URI: https://google.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: portal-concursos
Tags: news, blog, customized-header, editor-style, full-width-template, translation-ready, accessibility-ready

This theme, like WordPress, is licensed under the GPL.
*/

/* ==========================================================================
   1. VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
    /* Color Palette */
    --color-primary: #0f2d59;        /* Navy Blue Institutional */
    --color-primary-dark: #091d3b;   /* Extra Dark Navy */
    --color-secondary: #1b365d;      /* Secondary Navy */
    --color-accent: #d97706;         /* Gold/Amber Accent */
    --color-accent-hover: #b45309;   /* Darker Gold Accent */
    --color-accent-light: #fef3c7;   /* Light Amber for Badges */
    
    /* Neutral Colors */
    --color-text-main: #1e293b;      /* Slate 800 - Body text (High contrast) */
    --color-text-muted: #475569;     /* Slate 600 - Secondary text */
    --color-bg-body: #f8fafc;        /* Slate 50 - Main background */
    --color-bg-card: #ffffff;        /* White background for cards and boxes */
    --color-border: #e2e8f0;         /* Slate 200 - Divisors and borders */
    --color-border-focus: #3b82f6;   /* Blue focus ring */

    /* Alert / Status Colors */
    --color-status-aberto: #16a34a;      /* Active / Open */
    --color-status-aberto-bg: #dcfce7;
    --color-status-previsto: #0284c7;    /* Planned / Foreseen */
    --color-status-previsto-bg: #e0f2fe;
    --color-status-encerrado: #dc2626;   /* Closed / Ended */
    --color-status-encerrado-bg: #fee2e2;

    /* Typography */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Layout Sizes */
    --container-max-width: 1200px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. CSS RESET & ACCESSIBILITY BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
    scroll-behavior: smooth;
    background-color: var(--color-bg-body);
}

body {
    margin: 0;
    color: var(--color-text-main);
    font-size: 1rem;
    background-color: var(--color-bg-body);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; border-bottom: 2px solid var(--color-border); padding-bottom: 0.3em; margin-top: 1.5em; }
h3 { font-size: 1.35rem; margin-top: 1.2em; }
h4 { font-size: 1.15rem; }

/* Paragraphs & links */
p {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast), border var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

a:focus-visible, 
button:focus-visible, 
input:focus-visible, 
select:focus-visible, 
textarea:focus-visible {
    outline: 3px solid var(--color-border-focus);
    outline-offset: 2px;
}

/* Images & Media */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-sm);
}

/* Lists */
ul, ol {
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Screen reader only utility class (WCAG Accessibility) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-bg-body);
    clip: auto !important;
    clip-path: none;
    color: var(--color-primary);
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    position: absolute;
    top: 5px;
    text-decoration: none;
    width: auto;
    z-index: 100000;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 10px;
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}
