/* ======================================================
   SHARED — Side Nav + Contributor Ticker
   Usado em todas as páginas exceto index.html
   ====================================================== */

/* ---- Side Nav toggle button (fixo no canto superior esquerdo) ---- */
.nav-menu-btn {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 2000;
    background: #00245F;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 36, 95, 0.30);
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.nav-menu-btn:hover {
    background: #1a3d7c;
    transform: scale(1.06);
}
.nav-menu-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

/* ---- Overlay que escurece o fundo ---- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 1900;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.nav-overlay.open {
    display: block;
}

/* ---- Drawer lateral ---- */
.side-nav {
    position: fixed;
    top: 0;
    left: -290px;
    width: 270px;
    height: 100%;
    background: #fff;
    z-index: 2100;
    box-shadow: 4px 0 28px rgba(0, 0, 0, 0.14);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", sans-serif;
    overflow-y: auto;
}
.side-nav.open {
    left: 0;
}

.side-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 18px 18px;
    background-image:
        linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)),
        url('../images/background/background_renda.png');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #e8dede;
    flex-shrink: 0;
}
.side-nav-header h3 {
    font-family: "Great Vibes", cursive;
    color: #00245F;
    font-size: 1.7rem;
    font-weight: 400;
    margin: 0;
}
.side-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #00245F;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.15s;
}
.side-nav-close:hover {
    background: #f0f4ff;
}

.side-nav ul {
    list-style: none;
    padding: 12px 0 20px;
    flex: 1;
}
.side-nav ul li {
    margin: 0;
}
.side-nav ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}
.side-nav ul li a:hover {
    background: #f0f4ff;
    border-left-color: #93aee0;
    color: #00245F;
}
.side-nav ul li a.active {
    background: #eef2ff;
    border-left-color: #00245F;
    color: #00245F;
    font-weight: 700;
}
.side-nav ul li a .nav-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.side-nav-divider {
    height: 1px;
    background: #f0ecec;
    margin: 8px 18px;
}

/* ---- Ticker de contribuidores ---- */
.contributors-ticker-wrap {
    overflow: hidden;
    background: linear-gradient(90deg, #fce4ec 0%, #fff5f7 50%, #fce4ec 100%);
    padding: 8px 0;
    border-top: 1px solid #f4c2ce;
    border-bottom: 1px solid #f4c2ce;
    position: relative;
}
.contributors-ticker-wrap::before,
.contributors-ticker-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 1;
    pointer-events: none;
}
.contributors-ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, #fce4ec, transparent);
}
.contributors-ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, #fce4ec, transparent);
}
.contributors-ticker-inner {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: ticker-scroll 35s linear infinite;
    will-change: transform;
}
.contributors-ticker-inner:hover {
    animation-play-state: paused;
}
.contributors-ticker-inner .ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 20px;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #9b334e;
}
.contributors-ticker-inner .ticker-item .ticker-heart {
    color: #e75480;
    font-size: 11px;
}
.contributors-ticker-inner .ticker-sep {
    color: #e8a4b4;
    font-size: 10px;
    padding: 0 6px;
}
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---- Responsividade: desktop ---- */
@media (min-width: 768px) {
    .nav-menu-btn {
        width: 48px;
        height: 48px;
        top: 18px;
        left: 18px;
    }
    .side-nav {
        width: 290px;
    }
}
