/* ================================================
   trampo.css — TrampoTec
   Estilos do site
   ================================================ */

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

/* ── BODY ───────────────────────────────────────── */
body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url("./images_data/background_inicio.png") center/cover no-repeat fixed;
    padding-top: 70px;
}

/* ── FUNDO ANIMADO (#bg) ────────────────────────── */
#bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url("./images_data/background_inicio.png") center/cover no-repeat;
    transition: opacity 0.5s ease;
}

/* ── MENU ───────────────────────────────────────── */
menu, .menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 60px;
    z-index: 9999;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    box-sizing: border-box; 
}

menu a, .menu a {
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 15px;
    transition: background 0.25s, transform 0.2s;
}

menu a:hover, .menu a:hover {
    background: rgba(255,255,255,0.16);
    transform: translateY(-1px);
}

/* ── NOVA REGRA: Alinha o ícone na extrema direita ── */
.menu-icon {
    margin-right: auto; /* Truque do Flexbox que empurra este elemento para o final */
    display: flex;
    align-items: center;
}

/* Tamanho controlado para o ícone caber nos 60px de altura do menu */
.menu-logo-img {
    height: 35px; 
    width: auto;
    display: block;
}

/* ── TÍTULOS ────────────────────────────────────── */
h1 { font-size: 36px; color: orange; text-align: center; padding: 20px; margin-bottom: 10px; }
h2 { font-size: 18px; color: white; text-align: center; padding: 10px 20px; margin-bottom: 10px; line-height: 1.6; }

.page-title {
    margin: 30px 0 15px;
    color: orange;
    text-align: center;
    font-size: 36px;
    font-weight: bold;
}

/* ── FORMULÁRIOS ────────────────────────────────── */
form {
    width: 90%;
    max-width: 420px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    padding: 28px 32px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    margin-top: 20px;
    margin-bottom: 40px;
}

label {
    display: block;
    margin-top: 14px;
    font-weight: bold;
    color: orange;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    background: white;
    color: #333;
    box-sizing: border-box;
}

textarea { resize: vertical; min-height: 80px; }

/* ── BOTÕES ─────────────────────────────────────── */
button {
    width: 100%;
    padding: 11px;
    margin-top: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: orange;
    color: black;
}

button:hover { background: #ffb733; transform: translateY(-2px); }
button:active { transform: scale(0.97); }

input[type="button"] {
    width: 100%;
    padding: 11px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid white;
    background: transparent;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

input[type="button"]:hover { background: white; color: black; }

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid white;
}
.btn-secondary:hover { background: white; color: black; }

/* ── MENSAGENS DE ERRO ──────────────────────────── */
.msg-erro, span[id^="msg_"] {
    font-size: 12px;
    color: #ff6b6b;
    display: block;
    margin-top: 3px;
    min-height: 15px;
}

/* ── CARDS DE ESCOLHA (Cadastro) ────────────────── */
#escolha {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cardAluno, .cardEmpresa {
    width: 180px;
    padding: 28px 40px;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    text-align: center;
    border-radius: 15px;
    background: linear-gradient(135deg, rgb(255,130,58), rgb(230,137,50));
    color: white;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cardAluno:hover, .cardEmpresa:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* ── CAIXAS GLASSMORPHISM ───────────────────────── */
.caixa_login, .caixa_cadastroinicio {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

/* ── CARDS DE LISTA (vagas/alunos/empresas) ─────── */
.vagas-list, .alunos-list, .empresas-list {
    width: 90%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 40px;
    padding: 0 8px;
}

.vaga, .aluno, .empresa {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vaga:hover, .aluno:hover, .empresa:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}

.vaga-title, .aluno-title, .empresa-title {
    margin: 0;
    font-size: 20px;
    color: orange;
}

.vaga-summary, .aluno-summary, .empresa-summary {
    margin: 10px 0;
    font-size: 14px;
    color: white;
}

.vaga-extra, .aluno-extra, .empresa-extra {
    display: none;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 10px;
    color: #ddd;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.vaga-extra.show, .aluno-extra.show, .empresa-extra.show {
    display: block;
    opacity: 1;
    max-height: 600px;
}

/* ── BOTÕES TOGGLE / INTERESSE ──────────────────── */
.toggle-button {
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 13px;
    cursor: pointer;
    width: auto;
    font-weight: normal;
}

.toggle-button:hover { background: rgba(255,255,255,0.2); transform: none; }
.toggle-button:disabled { opacity: 0.5; cursor: not-allowed; }

.interesse-btn {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    border: none;
    background: orange;
    color: black;
    font-weight: bold;
    cursor: pointer;
    width: auto;
}

.interesse-btn:hover { background: #ffb733; transform: none; }
.interesse-btn:disabled { background: rgba(255,255,255,0.3); color: rgba(255,255,255,0.6); cursor: not-allowed; }

/* ── FILTROS ────────────────────────────────────── */
.filtros-form {
    width: 90%;
    max-width: 900px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.filtros-form input,
.filtros-form select {
    flex: 1;
    min-width: 150px;
    height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 14px;
    outline: none;
    margin-top: 0;
}

.filtros-form input::placeholder { color: rgba(255,255,255,0.6); }

.filtros-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 24 24' width='20'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    background-color: rgba(255,255,255,0.08);
    cursor: pointer;
}

.filtros-form select option { background: #1e1e1e; color: white; }

.filtros-form button {
    flex: 1;
    min-width: 100px;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: none;
    background: orange;
    color: black;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0;
    width: auto;
}

.filtros-form button:hover { transform: translateY(-2px); background: #ffb733; }

/* ── HABILIDADES (checkbox) ─────────────────────── */
.habilidades-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.habilidades-table td {
    padding: 8px;
    font-size: 13px;
    color: white;
}

.habilidades-table input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
    margin-top: 0;
}

/* ── CONTADOR DE TEXTAREA ───────────────────────── */
.textarea-wrap { position: relative; width: 100%; }

.textarea-contador {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 11px;
    color: gray;
    pointer-events: none;
}

/* ── TOM SELECT ─────────────────────────────────── */
.ts-wrapper.multi .ts-control {
    min-height: 42px;
    max-height: 80px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
}

.ts-control input { color: white !important; }

.ts-wrapper.multi .ts-control > div {
    background: orange;
    color: black;
    border-radius: 8px;
    padding: 4px 8px;
    margin: 2px;
    font-size: 12px;
    font-weight: bold;
}

.ts-dropdown { background: #1e1e1e; color: white; border-radius: 10px; }
.ts-dropdown .option { padding: 10px; }
.ts-dropdown .option:hover, .ts-dropdown .active { background: orange; color: black; }

/* ── EDITAR PERFIL ──────────────────────────────── */
.perfil-form {
    background: rgba(0,0,0,0.8);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    margin-top: 20px;
    margin-bottom: 40px;
}

.perfil-form label { color: orange; }

.perfil-form input,
.perfil-form select,
.perfil-form textarea {
    background: #222;
    border: 1px solid #444;
    color: white;
}

.hab-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    background: #333;
    padding: 10px;
    border-radius: 8px;
}

.hab-item { font-size: 13px; display: flex; align-items: center; gap: 5px; }
.hab-item input { width: auto; margin-top: 0; }

/* ── HERO (inicio.php) ──────────────────────────── */
.hero-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-left { flex: 1; display: flex; flex-direction: column; }
.hero-right { flex: 0 0 auto; width: 300px; }

.caixa_cadastroinicio {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    position: sticky;
    top: 80px;
}

/* ── SOBRE / QUEM SOMOS ─────────────────────────── */
#sobre, #quem-somos {
    scroll-margin-top: 80px;
    margin: 40px auto 0;
    max-width: 900px;
    width: 90%;
}

.sobre-card, .quem-somos-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 22px;
    padding: 40px 35px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
}

.sobre-badge {
    display: inline-block;
    background: rgba(255,165,0,0.18);
    color: orange;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sobre-card p, .quem-somos-card p {
    color: #ddd;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 18px;
}

/* ── TIME ───────────────────────────────────────── */
.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.team-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,165,0,0.3);
    border-color: rgba(255,165,0,0.5);
}

.team-card strong { color: orange; display: block; font-size: 16px; margin-bottom: 8px; }
.team-card p { font-size: 13px; color: #aaa; margin: 0; }

/* ── LOGIN ──────────────────────────────────────── */
.login-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding-top: 0;
}

.caixa_login {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 36px;
    text-align: center;
    width: 90%;
    max-width: 360px;
}

.caixa_login h1 { color: orange; font-size: 28px; margin-bottom: 20px; padding: 0; }

.caixa_login a {
    display: block;
    text-align: left;
    font-size: 14px;
    margin: 10px 0 4px;
    color: white;
    text-decoration: none;
}

/* ── FOOTER ─────────────────────────────────────── */
footer {
    width: 100%;
    margin-top: auto;
    padding: 20px;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

footer.fixed {
    position: absolute;
    bottom: 0;
    left: 0;
    border-top: none;
}

/* ── RESPONSIVO ─────────────────────────────────── */
@media (max-width: 900px) {
    .hero-section { flex-direction: column; padding: 30px 24px; }
    .hero-right { width: 100%; }
    form { width: 95%; padding: 20px; }
    .perfil-form { width: 95%; }
}
