/* ====== IMPORTS ====== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;700&family=Roboto:wght@300;400;500;700;900&display=swap');
@import url('mediaframes.css');
@import url('global.css');

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

header.full {
    background: transparent;
    box-shadow: none;
}

header.scrolled {
    background: var(--secondary);
}

/* =======================================================
   NAVBAR
======================================================= */

.navbar {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    padding: 8px;
}

.logo img {
    height: 50px;
}

/* =======================================================
   MENU TOGGLE (BOTÃO HAMBURGUER)
======================================================= */

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    display: none;
    transition: transform .3s ease, color .3s ease;
    box-shadow: 0px 0px transparent;
}

.menu-toggle:hover {
    color: var(--primary);
    transform: scale(1.15);
}

/* =======================================================
   NAV AREA (MOBILE + DESKTOP)
======================================================= */

.nav-area {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* texto no topo */
header.full .nav-area button,
header.full .user-menu {
    color: #fff;
}

/* scrolled */
header.scrolled .nav-area button,
header.scrolled .user-menu {
    color: #e9e9e9;
}

/* =======================================================
   LOGIN BUTTON
======================================================= */

.login-btn {
    background: var(--primary);
    padding: .55rem 1.2rem;
    border-radius: 8px;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: .25s ease;
}

.login-btn:hover {
    box-shadow: 0 0 18px var(--primary);
}

/* =======================================================
   DRAWER LOGIN
======================================================= */

.drawer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(110%);

    width: 100%;
    max-width: 500px;

    background: var(--secondary);
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);

    transition: transform .35s ease;
    z-index: 99999;
}

.drawer.open {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0px 5px 10px black;
}

.drawer h2 {
    font-family: "Tomorrow", sans-serif;
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-color);
    position: relative;
    padding: 10px;
    text-align: center;
}

.drawer h2::before,
.drawer h2::after {
    content: "✦";
    position: absolute;
    color: var(--primary);
    font-size: 1.8rem;
    top: 50%;
    transform: translateY(-50%);
    animation: spinStar 6s linear infinite;
}

.drawer h2::before {
    left: -5px;
}

.drawer h2::after {
    right: -5px;
    animation-direction: reverse;
}

.drawer input {
    width: 100%;
    padding: 12px 30px;
    border-radius: 7px;
    background: var(--primary-plus);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;

}

.drawer form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    outline: none;
}

.drawer button {
    background: var(--primary);
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

.drawer button:hover {
    background: var(--primary);
}

.drawer .btn-register {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #5db3ff;
}


.drawer .footer {
    margin-top: 25px;
    color: #ccc;
    font-size: 0.9rem;
    text-align: center;
}

.drawer .footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.drawer .footer a:hover {
    color: #ff4500;
}

/*GOOGLE*/
.btn-google {
    padding: 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
    max-height: 40px;
    color: white;
}

.btn-google img {
    width: 32px;
    height: 32px;
}

/* =======================================================
   USER MENU (LOGADO)
======================================================= */

.user-menu {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1rem;
    cursor: default;
}

.user-toggle {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: inherit;

    transition: .3s ease;
}

.user-toggle:hover {
    color: #4da3ff;
}

/* Dropdown */
.user-dropdown {
    position: absolute;
    top: 80px;
    display: none;
    flex-direction: column;
    background: #111;
    padding: 12px 0;
    border-radius: 10px;
    box-shadow: 0 0 18px var(--primary);
    z-index: 99;
    animation: fadeInMenu .25s ease;
}

.user-dropdown.open {
    display: flex;
    z-index: 9999;
}

.user-dropdown li {
    list-style: none;
}

.user-dropdown a {
    padding: 10px 18px;
    display: block;
    text-decoration: none;
    color: #e0e0e0;

    transition: .25s ease;
}

.user-dropdown a:hover {
    background: var(--primary);
    color: #fff;
}

/* Fade animation */
@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}