/* ================================================
   BASE.CSS — Variáveis, Reset e Utilitários
   Midnight Edition | MinhaRua App
   ================================================ */

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

/* ================= VARIÁVEIS CSS ================= */
:root {
    /* Cores principais */
    --primary-blue: #0A3D62;
    --accent-orange: #F27D23;
    --bg-off-white: #1A1A1D;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;

    /* Sombras e efeitos */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Z-index (organizado) */
    --z-map: 1;
    --z-controls: 1000;
    --z-panel: 1001;
    --z-header: 1002;
    --z-context-menu: 5000;
    --z-modal: 6000;
    --z-mobile-toggle: 10000;
}

/* ================= RESET UNIVERSAL ================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-off-white);
    color: var(--text-dark);
    line-height: 1.5;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ================= ACESSIBILIDADE ================= */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    background: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

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

/* ================= UTILITÁRIOS ================= */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
    cursor: wait;
    text-align: center;
}

/* Card genérico */
.card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
