/* ================================
   RESET
================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    font-family: "Inter", sans-serif;
    color: #f8fafc;

    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(59, 130, 246, 0.14),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 100%,
            rgba(56, 189, 248, 0.08),
            transparent 35%
        ),
        #0f172a;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ================================
   HEADER
================================ */

.header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);

    background: rgba(15, 23, 42, 0.7);

    backdrop-filter: blur(12px);
}

.header-inner {
    width: min(900px, calc(100% - 32px));
    min-height: 68px;

    margin: 0 auto;

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

    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;

    height: 48px;
    width: auto;
}

.logo img {
    display: block;

    width: auto;
    height: 48px;

    max-width: 190px;

    object-fit: contain;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-links a {
    padding: 8px 11px;

    border-radius: 8px;

    color: #94a3b8;

    font-size: 11px;
    font-weight: 600;

    transition: 0.2s ease;
}

.auth-links a:hover {
    color: #e0f2fe;

    background: rgba(56, 189, 248, 0.05);
}

.auth-links .btn-register {
    border: 1px solid rgba(56, 189, 248, 0.22);

    background: rgba(37, 99, 235, 0.12);

    color: #7dd3fc;
}

.auth-links .btn-register:hover {
    border-color: rgba(56, 189, 248, 0.4);

    background: rgba(37, 99, 235, 0.2);
}


/* ================================
   MAIN
================================ */

main {
    width: min(900px, calc(100% - 32px));

    margin: 0 auto;
}


/* ================================
   INTRO
================================ */

.intro {
    padding: 58px 0 42px;
}

.intro-label {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #38bdf8;

    font-family: "IBM Plex Mono", monospace;
    font-size: 8px;
    letter-spacing: 1.2px;
}

.status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #38bdf8;

    box-shadow:
        0 0 8px rgba(56, 189, 248, 0.6);
}

.intro h1 {
    max-width: 650px;

    margin-top: 13px;

    color: #e2e8f0;

    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.intro p {
    margin-top: 10px;

    color: #64748b;

    font-size: 13px;
}


/* ================================
   TOOLS
================================ */

.tools {
    padding: 24px;

    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(23, 37, 84, 0.92),
            rgba(15, 23, 42, 0.96)
        );

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.22);
}

.tools-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 18px;
}

.section-label {
    color: #38bdf8;

    font-family: "IBM Plex Mono", monospace;
    font-size: 8px;
    letter-spacing: 1px;
}

.tools-header h2 {
    margin-top: 6px;

    color: #e2e8f0;

    font-size: 19px;
    font-weight: 600;
}

.tools-count {
    color: #475569;

    font-family: "IBM Plex Mono", monospace;
    font-size: 10px;
}


/* ================================
   GRID
================================ */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 13px;
}


/* ================================
   TOOL CARD
================================ */

.tool-card {
    min-height: 235px;

    display: flex;
    flex-direction: column;

    padding: 18px;

    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 16px;

    background:
        rgba(15, 23, 42, 0.5);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-2px);

    border-color: rgba(56, 189, 248, 0.25);

    background:
        rgba(23, 37, 84, 0.55);
}

.tool-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tool-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 11px;

    background: rgba(56, 189, 248, 0.05);

    color: #7dd3fc;

    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 600;
}

.color-icon {
    color: #bae6fd;

    font-size: 18px;
}

.binary-icon {
    color: #7dd3fc;
}

.tool-type {
    color: #475569;

    font-family: "IBM Plex Mono", monospace;
    font-size: 7px;
    letter-spacing: 1px;
}

.tool-content {
    flex: 1;

    padding-top: 25px;
}

.tool-content h3 {
    color: #e2e8f0;

    font-size: 16px;
    font-weight: 600;
}

.tool-content p {
    margin-top: 7px;

    color: #64748b;

    font-size: 11px;
    line-height: 1.65;
}

.tool-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding-top: 14px;

    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.tool-bottom > span {
    color: #475569;

    font-family: "IBM Plex Mono", monospace;
    font-size: 7px;
}

.tool-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 10px;

    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 8px;

    background: rgba(56, 189, 248, 0.04);

    color: #7dd3fc;

    font-size: 9px;
    font-weight: 600;

    transition: 0.2s ease;
}

.tool-bottom a:hover {
    border-color: rgba(56, 189, 248, 0.35);

    background: rgba(56, 189, 248, 0.08);
}

.tool-bottom strong {
    font-size: 13px;
}


/* ================================
   FOOTER
================================ */

.footer {
    width: min(900px, calc(100% - 32px));

    margin: 45px auto 0;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 0;

    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand strong {
    color: #cbd5e1;

    font-size: 11px;
}

.footer-brand span {
    color: #475569;

    font-size: 8px;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: #64748b;

    font-size: 8px;

    transition: 0.2s ease;
}

.footer-links a:hover {
    color: #7dd3fc;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;

    padding: 11px 0;

    border-top: 1px solid rgba(148, 163, 184, 0.05);

    color: #334155;

    font-family: "IBM Plex Mono", monospace;
    font-size: 7px;
}


/* ================================
   RESPONSIVO
================================ */

@media (max-width: 650px) {

    .tools {
        padding: 20px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 500px) {

    .header-inner,
    main,
    .footer {
        width: calc(100% - 22px);
    }

    .header-inner {
        min-height: 62px;
    }

    .intro {
        padding: 42px 0 30px;
    }

    .intro h1 {
        font-size: 29px;
    }

    .tools {
        padding: 17px;

        border-radius: 18px;
    }

    .tools-header {
        align-items: flex-start;
    }

    .tool-card {
        min-height: 220px;

        padding: 16px;
    }

    .footer-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px;
    }
}


@media (max-width: 360px) {

    .auth-links a:first-child {
        display: none;
    }

    .logo-name {
        font-size: 14px;
    }

    .intro h1 {
        font-size: 26px;
    }

    .tools-count {
        display: none;
    }

    .tool-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .tool-bottom a {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 7px;
    }
}

@media (max-width: 500px) {

    .logo {
        height: 42px;
    }

    .logo img {
        height: 42px;
        max-width: 165px;
    }
  }

/* =========================
   USUÁRIO LOGADO
========================= */

.usuario-logado {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 5px 6px 5px 5px;

    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 999px;

    background: rgba(15, 23, 42, 0.65);

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.usuario-logado:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(59, 130, 246, 0.35);
}


/* FOTO */

.usuario-foto {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid rgba(59, 130, 246, 0.45);

    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.usuario-foto:hover {
    border-color: #3b82f6;
    transform: scale(1.04);
}


/* INFORMAÇÕES */

.usuario-info {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.usuario-info strong {
    color: #f8fafc;

    font-size: 13px;
    font-weight: 600;

    line-height: 1.2;

    white-space: nowrap;
}

.usuario-info span {
    margin-top: 2px;

    color: #64748b;

    font-size: 10px;

    line-height: 1.2;
}


/* LOGOUT */

.logout-button {
    border: 0;
    outline: none;

    padding: 7px 10px;

    border-radius: 8px;

    background: rgba(239, 68, 68, 0.08);

    color: #f87171;

    font-family: inherit;
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.logout-button:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .usuario-logado {
        gap: 6px;
        padding: 4px;
    }

    .usuario-foto {
        width: 34px;
        height: 34px;
    }

    .usuario-info {
        display: none;
    }

    .logout-button {
        padding: 6px 8px;
    }

}