@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

html {
    scroll-behavior: auto !important;
}

:root {
    --bg-dark: #0d1117;
    --text-main: #c9d1d9;
    --accent-green: #3fb950;
    --accent-red: #f85149;
    --accent-amber: #d29922;
    --border: #30363d;
    --font-mono: "Source Sans 3", sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-family: "Source Sans 3", sans-serif;
}


/* Header Global - Estrutura Fixa */
.site-header {
background-color: #0d1117 !important;
    /* min-height: 50px; */
    display: flex;
    align-items: center;
    border-bottom: 1px solid #272727;
}

/* Container fluido com padding controlado */
.site-header .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Navbar sem paddings automáticos do Bootstrap */
.site-header .navbar {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    /* min-height: 50px; Garante altura mínima interna */
}

/* Logo / Marca */
.navbar-brand {
    color: #3fb950 !important;
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 1px;
    font-weight: 700;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    margin-right: 1rem;
}

/* Botão Mobile */
.navbar-toggler {
    padding: 0.25rem 0.5rem; /* Padding pequeno e fixo */
    border: none !important;
}

/* Links do Menu */
.nav-link {
    color: #d9d9d9 !important;
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    padding: 0.5rem 0.8rem !important; /* Padding fixo para evitar saltos */
}

.nav-link:hover, .nav-link.active {
    color: #ffffff !important;
}

/* Botão Mobile (Hambúrguer) */
.navbar-toggler {
    border: none !important; /* Remove borda padrão feia */
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none; /* Remove outline azul ao clicar */
}

.navbar-toggler-icon {
/*    background-image: url("data:image/svg+xml,%3csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");*/
}
.mural-wrapper {
    min-height: 80vh;
}

/* Grid Layout */
.mural-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
}

/* Estilo dos Blocos */
.word-box {
    background-color: #161b22;
    border: 1px solid var(--border);
    padding: 20px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    position: relative;
    border-radius: 6px;
}

.word-box:hover {
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(63, 185, 80, 0.15);
    transform: translateY(-2px);
}


.word-item.is-hidden {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.word-text {
    font-size: 1.25rem;
    font-weight: 700;

    letter-spacing: 0.5px;
    line-height: 1.4;
}

.category-tag {
    font-size: 0.75rem;
    color: #8b949e;
    margin-top: 10px;

}

/* Micro Bullet de Status */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #30363d; /* Cinza escuro (pendente) */
    position: absolute;
    top: 10px;
    right: 10px;
    transition: all 0.3s ease;
}

/* Se tiver conteúdo, fica verde e brilha ligeiramente */
.status-dot.active {
    background-color: var(--accent-green);
    box-shadow: 0 0 5px rgba(63, 185, 80, 0.5);
}

/* Filtros */
.sort-btn {
    font-size: .9rem;
    padding: .05rem .5rem;
}
.sort-btn.active-sort {
    background-color: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
}

.filter-btn {
    font-size: 0.8rem;
    border-radius: 4px;
    border-color: var(--border);
    color: var(--text-main);
}

.filter-btn:hover, .active-filter {
    background-color: var(--accent-green);
    color: #000;
    border-color: var(--accent-green);
}

.cfh-label {
text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8c95a3;
    font-weight: 600;
    font-size: 0.6rem;
    white-space: nowrap;
    opacity: 0.7;
    display: block;
}

.cfh-controls-bar {
    row-gap: 12px; /* Espaço vertical mínimo quando wrap */
}

.terminal-title {
    color: var(--accent-green);
    font-weight: 700;
    letter-spacing: -1px;
}

.severity-bar { height: 6px; border-radius: 3px; }

/* Highlight para Deep Linking */
.highlight-pulse {
    animation: pulse-border 1.5s infinite;
    border-color: var(--accent-green) !important;
}

.text-muted {
    color: rgb(195 195 195 / 75%) !important;
}

.bg-danger {
    background-color: rgb(163 41 52) !important;
}

/* Modal Estilo Terminal */
.modal-content {
    background-color: #161b22;
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 8px;
}

.modal-header { border-bottom: 1px solid var(--border); }

.modal {
    --bs-modal-width: 80% !important;
}

.btn-close { filter: invert(1); }

@media (min-width: 1200px) {
    .modal {
        --bs-modal-width: 1040px !important;
    }
}

.btn-dark {
    --bs-btn-color: #afafaf;
    --bs-btn-bg: #19202a;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(63, 185, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

.counter {
font-size: 0.75rem;
    font-weight: 300;
    padding: 3px 5px;
    position: absolute;
    top: -4px;
    left: 25px;
}

/* Search Box Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto 10px auto;
    position: relative;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 10px auto;
    position: relative;
}

.search-input {
width: 100%;
padding: 12px 20px;
background-color: #161b22;
border: 1px solid var(--border);
color: var(--text-main);
border-radius: 20px;
font-size: 0.9rem;
transition: all 0.3s ease;
}

.search-input:focus {
outline: none;
border-color: #1e3b26;
box-shadow: 0 0px 4px rgb(32 157 50 / 70%);
}

.search-input::placeholder {
color: #484f58;
}

.no-results {
padding: 40px 20px 250px;
width: 100%;
display: none;
}

.no-results h5 {
    margin-bottom: 15px;
}

.email-protect { unicode-bidi: bidi-override; direction: rtl; }

#scrollup {
    position: fixed;
    display: none;
    right: 20px;
    bottom: 30px;
    width: 35px;
    height: 35px;
    z-index: 1000;
    border: none;
    border-radius: .25rem;
    background: #161b22;
    color: #c9d1d9;
    font-size: 24px;
    text-align: center;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    outline: none
}

#scrollup:hover {
    background: #444444;
}

.a2a_svg {
padding: 2px !important;
height: 26px !important;
line-height: 26px !important;
width: 26px !important;
border: 1px solid #30363d;
}

/*************************/

#footer {
background-color: #0d1117;
    border-top: 1px solid #272727;
    padding: 30px 0;
    margin-top: 0;
    font-size: 0.9rem;
    font-weight: 300;
}