:root {
    --primary: #0f172a;        /* Slate Dark Industrial */
    --primary-light: #1e293b;
    --accent-amber: #f59e0b;   /* Safety Amber */
    --accent-amber-hover: #d97706;
    --accent-blue: #2563eb;    /* Azul Elétrico */
    --bg-light: #f8fafc;
    --surface: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 14px rgba(15,23,42,0.08);
    --shadow-lg: 0 10px 30px rgba(15,23,42,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-tap-highlight-color: transparent; }
body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.5; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
h1, h2, h3, h4, h5 { font-family: 'Outfit', sans-serif; }

/* HEADER & NAVBAR */
.header {
    background-color: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-amber);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
}

.logo-icon {
    background: var(--accent-amber);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.logo:hover .logo-icon {
    transform: rotate(-8deg) scale(1.08);
}

.logo-text { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; white-space: nowrap; }
.logo-text span { color: var(--accent-amber); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover, .nav-link.active { 
    color: #fff; 
    transform: translateY(-1px);
}

.btn-post {
    background: var(--accent-amber);
    color: var(--primary);
    font-weight: 800;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    height: 40px;
}

.btn-post:hover { 
    background: var(--accent-amber-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

@media (max-width: 640px) {
    .header-container { padding: 10px 12px; }
    .logo-text { font-size: 18px; }
    .logo-icon { width: 32px; height: 32px; font-size: 16px; }
    .nav-link { display: none; }
    .btn-post { padding: 8px 12px; font-size: 12px; height: 36px; }
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 28px 16px 36px;
    text-align: center;
    position: relative;
    animation: slideFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content { max-width: 800px; margin: 0 auto; }

.hero-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-amber);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 10px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero h1 { font-size: 26px; line-height: 1.25; margin-bottom: 8px; font-weight: 800; }
@media (min-width: 768px) { .hero h1 { font-size: 38px; } }

.hero p { color: #94a3b8; font-size: 14px; margin-bottom: 12px; }

.hero-subline {
    color: #dbeafe;
    font-size: 15px;
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.7;
    opacity: 0.92;
}

.no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 22px;
    margin-top: 18px;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.no-results i {
    font-size: 30px;
    color: var(--accent-amber);
}

.no-results strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.no-results p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.hidden {
    display: none !important;
}

/* REGRAS GLOBAIS DO DESIGN SYSTEM PARA DROPDOWNS E FORMULÁRIOS */
select, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], textarea {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f59e0b' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 22px;
    padding-right: 32px;
    cursor: pointer;
}

select option {
    background-color: #ffffff;
    color: var(--primary);
    font-weight: 600;
    padding: 8px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-amber) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

/* MICRO-ANIMAÇÕES DIRECIONADORAS APENAS DURANTE A NAVEGAÇÃO */
@keyframes slideFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-container {
    animation: slideFadeUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 767px) {
    .main-container {
        padding-bottom: 24px;
    }
}

/* FOOTER GLOBAL */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 36px 16px 100px;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid #1e293b;
    margin-top: 48px;
    width: 100%;
}

@media (min-width: 768px) {
    .footer { padding-bottom: 36px; }
}

/* PAGINAÇÃO */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 32px 16px 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    transition: all 0.18s ease;
    border: 2px solid transparent;
}

.pagination a {
    color: var(--text-dark);
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.pagination a:hover {
    background: var(--accent-amber);
    border-color: var(--accent-amber);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.pagination .pag-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    cursor: default;
    box-shadow: var(--shadow-md);
}

.pagination .pag-disabled {
    color: var(--text-muted);
    background: var(--bg-light);
    border-color: var(--border);
    cursor: not-allowed;
    opacity: 0.5;
}

.pag-btn-js {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-dark);
    transition: all 0.18s ease;
    box-shadow: var(--shadow-sm);
}

.pag-btn-js:hover {
    background: var(--accent-amber);
    border-color: var(--accent-amber);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}

.pag-btn-js.pag-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    cursor: default;
    box-shadow: var(--shadow-md);
}

.pag-btn-js:disabled,
.pag-btn-js.pag-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}
