/* ============================================================
   estilodomenu.css — Estilos globais de Header, Nav, Login, Footer
   Usado por: index.php, inscricoes.php, presdir.php, formfilia.php,
              gerar_post_helper.php e todas as páginas geradas.
   ============================================================ */

/* ─── Header ─── */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: black;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
}

header h2 {
    color: #f24b16;
    font-family: 'Bebas Neue', sans-serif;
    margin: 0 5px;
    font-weight: 400;
    opacity: 0.7;
}

.ftperfil {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #f637001a;
    box-shadow: 0 0 6px rgba(246, 55, 0, 0.4);
    flex-shrink: 0;
    transition: box-shadow 0.3s ease;
}

.ftperfil:hover {
    box-shadow: 0 0 10px rgba(246, 55, 0, 0.7);
}

/* ─── Logo ─── */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.5rem;
    color: #d32f2f;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.logo-wrapper img {
    width: 55px;
    height: 55px;
    padding: 2px;
    object-fit: contain;
}

.logo-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.788) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-30deg);
    z-index: 2;
    pointer-events: none;
}

.logo:hover .logo-wrapper::after {
    left: 150%;
    transition: left 0.6s ease;
}

.logo-text {
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: 100;
    font-family: 'Bebas Neue', sans-serif;
    color: #f24b16;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* ─── Nav Menu ─── */
.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: rgb(255, 191, 146);
    font-weight: 500;
    width: 85px;
    position: relative;
    z-index: 1;
    font-size: 10px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    margin: 4px 0;
    letter-spacing: 0.5px;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, rgba(56, 18, 0, 1) 0%, rgba(171, 34, 0, 1) 100%);
    transform: skewX(-45deg);
    border-radius: 2px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 98%;
    background: #121212;
    transform: skewX(-45deg);
    border-radius: 2px;
    z-index: -1;
    border-bottom: 2px solid #f24b16;
    transition: width 0.3s ease;
    opacity: 0;
}

.nav-menu a:hover {
    color: #f24b16;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
    opacity: 1;
}

.nav-menu a:hover::before {
    border-color: rgba(242, 75, 22, 0.2);
}

.nav-menu a.active::before {
    border-color: rgba(242, 75, 22, 0.4);
}

/* ─── Botão de Login ─── */
.login-btn {
    font-family: 'Lexend Tera', sans-serif;
    letter-spacing: -1px;
    font-size: 10px;
    background: linear-gradient(180deg, rgba(251, 105, 0, 0.8) 0%, rgba(255, 116, 46, 0.2) 50%, rgba(184, 40, 0, 0.75) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 5px 8px;
    height: 28px;
    cursor: pointer;
    border-radius: 50px 10px 61px 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    box-shadow: 0 0 0 3.1px rgba(0, 0, 0, 0.8), 0 0 0 3.2px #f63700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 3px 15px;
    width: 155px;
    min-width: 100px;
    max-width: 155px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.login-btn::before {
    background: #121212;
}

.login-btn:hover {
    box-shadow: 0 0 0 2px black, 0 0 0 3px #ff3e00;
    transform: none !important;
    color: #ffe2daff;
    animation: piscar2 0.3s ease-in-out;
}

.login-btn i {
    margin-right: 5px;
}

.login-btn img {
    width: 26px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;

    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

@keyframes piscar2 {
    0% {
        box-shadow: 0 0 0 3.1px rgba(0, 0, 0, 0.8), 0 0 0 3.2px #f63700;
    }

    10% {
        box-shadow: 0 0 0 3.1px rgba(0, 0, 0, 0.8), 0 0 0 3.2px #f63700;
    }

    20% {
        box-shadow: 0 0 0 3.1px rgba(0, 0, 0, 0.8), 0 0 0 3.2px #f63700;
    }

    40% {
        box-shadow: 0 0 0 5.3px rgba(0, 0, 0, 0.8), 0 0 0 5.4px #ff6944be;
    }

    60% {
        box-shadow: 0 0 0 3.1px rgba(0, 0, 0, 0.8), 0 0 0 3.2px #f63700;
    }

    70% {
        box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.8), 0 0 0 4.5px #ffddd0ff;
    }

    80% {
        box-shadow: 0 0 0 3.1px rgba(0, 0, 0, 0.8), 0 0 0 3.2px #f63700;
    }

    100% {
        box-shadow: 0 0 0 3.1px rgba(0, 0, 0, 0.8), 0 0 0 3.2px #f63700;
    }
}

/* ─── Link de Logout ─── */
.logout-link {
    font-family: 'Lexend Tera', sans-serif;
    letter-spacing: 2px;
    background: #121212 !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgb(110 110 110 / 10%);
    color: #ffffff !important;
    padding: 5px 12px;
    height: 30px;
    cursor: pointer;
    border-radius: 50px 10px 61px 10px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    box-shadow: 0 0 0 2px rgb(0 0 0 / 65%), 0 0 0 3px #33333378;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 5px;
    margin-left: -4px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    font-size: 10px;
    margin-right: -28px;
}

.nav-menu a.logout-link::before,
.nav-menu a.logout-link::after {
    display: none;
}

.nav-menu a.logout-link {
    background: #121212 !important;
    color: #ffffff !important;
    height: 28px;
    width: 85px;
    border-radius: 50px 10px 61px 10px;
    margin: 2px -9px;
}

.nav-menu a.logout-link:hover {
    color: #e0e0e0 !important;
    margin: 3px -9px;
}

.logout-link:hover {
    box-shadow: 0 0 0 2px black, 0 0 0 3px #121212;
    transform: none !important;
    color: #e0e0e0 !important;
    border-radius: 50px 10px 61px 10px;
    animation: piscar 0.3s ease-in-out;
}

@keyframes piscar {
    0% {
        box-shadow: 0 0 0 2px black, 0 0 0 3px #2a2a2a;
    }

    10% {
        box-shadow: 0 0 0 2px black, 0 0 0 3px #333333;
    }

    20% {
        box-shadow: 0 0 0 2px black, 0 0 0 3px #121212;
    }

    40% {
        box-shadow: 0 0 0 5.3px rgba(0, 0, 0, 0.8), 0 0 0 6.4px #333333;
    }

    60% {
        box-shadow: 0 0 0 2px black, 0 0 0 3px #121212;
    }

    70% {
        box-shadow: 0 0 0 1px black, 0 0 0 3px #2a2a2a;
    }

    80% {
        box-shadow: 0 0 0 2px black, 0 0 0 3px #333333;
    }

    100% {
        box-shadow: 0 0 0 2px black, 0 0 0 3px #121212;
    }
}

/* ─── Hamburger ─── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #ff9a6c;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Menu Toggle (compat) ─── */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #f24b16;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #f63700;
}

/* ─── Footer ─── */
.site-footer {
    position: relative;
    background: repeating-linear-gradient(-45deg, rgb(18 18 18) 0px, rgb(18 18 18) 2px, transparent 2px, transparent 3.2px), repeating-linear-gradient(45deg, rgb(0 0 0) 0px, rgb(14 14 14) 2px, transparent 2px, transparent 3.2px), linear-gradient(rgb(39 39 39), rgb(14 14 14));
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'SF Pro Display', sans-serif;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
    font-family: Zen Dots;
}

.footer-smbr {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: -18px 0px;
}

.footer-content span {
    font-family: Alumni Sans;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 4px;
}

.footer-wave-bg {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
    overflow: hidden;
    margin: 100px 0px;
    transform: rotate(180deg);
}

.footer-wave-bg::before,
.footer-wave-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-position: 0 bottom;
    transform-origin: center bottom;
}

.footer-wave-bg::before {
    z-index: -2;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' fill='%231f1309' opacity='.5'%3E%3C/path%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: wave-bg-move 14s linear infinite;
}

.footer-wave-bg::after {
    z-index: -1;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' fill='%230a1c22' opacity='.6'%3E%3C/path%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: wave-bg-move 20s linear infinite reverse;
}

@keyframes wave-bg-move {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ─── Footer Instagram Button (Uiverse style) ─── */
.footer-ig-wrapper {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.footer-ig-label {
    color: #5b5b5b;
    font-family: sarpanch;
    font-size: 9px;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.footer-ig-wrapper:hover .footer-ig-label {
    color: white;
    text-shadow: 0 0 10px #888a8a;
}

.footer-ig-btn {
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    box-shadow:
        inset 1px 1px 2px #fff,
        0 0 5px #4442;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.68, 0.85, 0.265, 1.85);
    cursor: pointer;
    text-decoration: none;
}

.footer-ig-btn svg {
    transition: all 0.5s cubic-bezier(0.68, -0.85, 0.265, 1.55);
    fill: #b0b0b0;
}

.footer-ig-btn:hover {
    background-color: #5a5a5a;
    transform: perspective(180px) rotateX(60deg) translateY(2px);
    box-shadow: 0px 10px 10px #00000052;
}

.footer-ig-btn:hover svg {
    transform: translate3d(0px, 20px, 30px) perspective(80px) rotateX(-60deg) translateY(2px) translateZ(10px);
    fill: white;
}

/* ─── Responsive: Tablet ─── */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
        z-index: 1010;
    }

    .menu-toggle {
        display: block;
    }

    .logo-text {
        font-size: 11px;
    }

    header h2 {
        display: none;
    }

    header {
        padding: 0.8rem 1rem;
        gap: 0.5rem;
        justify-content: space-between;
    }

    .logo {
        flex: 0 1 auto;
        min-width: 0;
    }

    .menu-toggle {
        margin-left: auto;
        flex-shrink: 0;
        z-index: 1022;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(18, 6, 0, 0.97);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 2rem;
        border-left: 1px solid rgba(255, 107, 0, 0.3);
    }

    .nav-menu.open,
    .nav-menu.active {
        right: 0;
        z-index: 1005;
    }

    .nav-menu a {
        width: 100%;
        max-width: 200px;
        padding: 12px 0;
        font-size: 14px;
        text-align: center;
    }

    .nav-menu a::before,
    .nav-menu a::after {
        display: none;
    }

    .login-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-ig-wrapper {
        position: static;
        margin: 10px auto 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .footer-ig-btn {
        width: 25px;
        height: 25px;
        margin-top: 35px;
    }

    .footer-ig-label {
        font-size: 9px;
    }
}

/* ─── Responsive: Mobile pequeno ─── */
@media (max-width: 576px) {
    .logo-text {
        font-size: 0.65rem;
        max-width: 400px;
    }

    .nav-menu {
        width: 85%;
    }

    .login-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
        text-align: center;
        width: 220px;
        max-width: 220px;
    }

    .menu-toggle {
        font-size: 1.5rem;
    }

    .site-footer {
        padding: 60px 15px;
    }
}