/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

body {
    font-family: Arial;
    background: radial-gradient(circle at top, #1b1b1b, #0a0a0a);
    color: #e0e0e0;
}

/* MENU */
.menu {
    background: linear-gradient(90deg, #0f0f0f, #1a1a1a);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    font-weight: bold;
    color: orange;
}

/* LINKS */
.menu-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu-links a {
    color: white;
    text-decoration: none;
    position: relative;
}

/* LINHA ANIMADA */
.menu-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: orange;
    left: 0;
    bottom: -3px;
}

.menu-links a:hover::after {
    width: 100%;
}

/* SUBMENU */
.submenu {
    position: absolute;
    background: #222;
    padding: 10px;
    display: none;

    opacity: 0;
    transform: translateY(10px);
}

.dropdown:hover .submenu,
.dropdown.open .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE MENU */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* CONTAINER */
.container {
    padding: 20px;
}

.page-header h1 {
    color: #ff9800;
    text-shadow: 0 0 10px rgba(255,140,0,0.4);
}

/* SEARCH */
.search {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    background: #111;
    border: 1px solid #333;
    color: #fff;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

/* CARD */
.card {
    background: linear-gradient(145deg, #1c1c1c, #111);
    border: 1px solid rgba(255,140,0,0.2);
    padding: 10px;
    border-radius: 8px;

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

.card:hover {
    transform: scale(1.03);
    border-color: orange;
}

.code {
    font-family: monospace;
    color: #ffa726;
}

/* BOTÃO COPY */
.copy-btn {
    background: #222;
    border: 1px solid #444;
    color: #aaa;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}

.copy-btn:hover {
    background: orange;
    color: black;
}

.copy-btn.copied {
    background: #4caf50;
    color: white;
}

/* TOAST */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #222;
    padding: 12px 18px;
    border-left: 4px solid orange;
    border-radius: 6px;

    opacity: 0;
    transform: translateY(20px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .menu-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #111;
    }

    .menu-links.active {
        display: flex;
    }

    .submenu {
        position: relative;
        display: none;
        background: #333;
    }

    .dropdown.open .submenu {
        display: block;
    }

}