/* GERAL E VARIÁVEIS */
:root { --cor-principal: #8a2be2; --cor-destaque: #FFD700; --cor-secundaria: #f4f4f4; --cor-texto: #333; --cor-branca: #ffffff; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; background-color: var(--cor-secundaria); color: var(--cor-texto); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER E NAVEGAÇÃO */
.header { background-color: #fff; padding: 10px 0; border-bottom: 1px solid #ddd; position: relative; }
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.header .logo img { max-width: 200px; height: auto; display: block; }
.header nav { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.nav-pin { display: flex; align-items: center; justify-content: center; position: relative; height: 38px; padding: 0 20px; border-radius: 20px; color: white; text-decoration: none; font-size: 0.9em; font-weight: bold; box-shadow: 0 2px 4px rgba(0,0,0,0.15); transition: transform 0.2s ease; white-space: nowrap; }
.nav-pin:hover { transform: translateY(-2px); }
.nav-pin::after { content: ''; position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top-width: 8px; border-top-style: solid; }
.purple-pin { background-color: var(--cor-principal); }
.purple-pin::after { border-top-color: var(--cor-principal); }
.yellow-pin { background-color: var(--cor-destaque); color: var(--cor-texto); }
.yellow-pin::after { border-top-color: var(--cor-destaque); }
.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 0; z-index: 1001; }
.hamburger .bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: 0.4s; background-color: #333; }

/* TICKER DE VAGAS */
.latest-jobs-ticker { flex-grow: 1; overflow: hidden; min-width: 0; padding: 10px 0; }
.job-pins-container { display: flex; width: max-content; animation: scroll 45s linear infinite; }
.job-pins-container:hover { animation-play-state: paused; }
.job-pin { display: flex; align-items: center; justify-content: center; position: relative; width: auto; min-width: 150px; height: 40px; padding: 0 20px; margin: 0 15px; border-radius: 20px; color: white; text-decoration: none; font-size: 0.9em; font-weight: bold; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,0.2); white-space: nowrap; }
.job-pin::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top-width: 10px; border-top-style: solid; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* BOTÃO PADRÃO UNIFICADO */
.btn-padrao { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 50px; font-size: 1.1em; font-weight: bold; cursor: pointer; text-decoration: none; border: none; transition: transform 0.2s, box-shadow 0.2s; line-height: 1.5; }
.btn-padrao:hover { transform: scale(1.03); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-principal { background-color: var(--cor-principal); color: white; }
.btn-destaque { background-color: var(--cor-destaque); color: var(--cor-texto); }
.btn-sucesso { background-color: #28a745; color: white; }

/* CONTEÚDO INDEX */
.hero { background-color: var(--cor-principal); color: var(--cor-branca); padding: 60px 20px; text-align: center; }
.search-bar { display: flex; justify-content: center; margin-top: 20px; }
.search-bar input { width: 60%; padding: 15px; font-size: 1.1em; border: none; border-radius: 50px 0 0 50px; }
.search-bar button { border-radius: 0 50px 50px 0; }
.quick-post-box { background-color: rgba(255, 255, 255, 0.15); border-radius: 8px; padding: 20px; margin: 40px auto 0 auto; max-width: 800px; text-align: center; }
.quick-post-form { display: flex; gap: 10px; }
.quick-post-form input { flex-grow: 1; padding: 12px; border: none; border-radius: 50px; font-size: 1em; }
.categories { padding: 40px 0; text-align: center; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 20px; }
.category-item { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; height: 80px; padding: 20px; border-radius: 20px; color: white; text-decoration: none; font-size: 1.1em; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: transform 0.2s ease; }
.category-item:hover { transform: translateY(-5px); }
.category-item::after { content: ''; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top-width: 15px; border-top-style: solid; }
.category-item .icon { font-size: 1.8em; margin-bottom: 8px; }
.featured-listings { padding: 40px 20px; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 20px; }
.featured-pin { background-color: var(--cor-branca); border-radius: 15px; padding: 20px; position: relative; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.featured-pin:hover { transform: translateY(-5px); }
.featured-pin::after { content: ''; position: absolute; bottom: -19px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 20px solid var(--cor-branca); }
.featured-pin h3 { margin-top: 0; font-size: 1.2em; }
.featured-pin p { margin: 5px 0; color: #555; }
.featured-pin.purple-border { border-top: 5px solid var(--cor-principal); }
.featured-pin.yellow-border { border-top: 5px solid var(--cor-destaque); }
.cta-section { background-color: #e9ecef; text-align: center; padding: 50px 20px; }
.footer-animation { padding: 40px 20px; text-align: center; }
.footer { background-color: #333; color: var(--cor-branca); text-align: center; padding: 20px; }

/* PÁGINAS DE PLANOS E BANCO DE TALENTOS */
.pricing-header, .page-header { text-align: center; margin-bottom: 40px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.pricing-card { background-color: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 30px; text-align: center; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.recommended { border-top: 5px solid var(--cor-destaque); }
.search-talents { display: flex; gap: 10px; margin-bottom: 40px; }
.search-talents input { flex-grow: 1; padding: 15px; font-size: 1.1em; border: 1px solid #ddd; border-radius: 50px; }
.talent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 20px; }
.talent-card { background-color: var(--cor-branca); border-radius: 15px; padding: 20px; position: relative; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.talent-card:hover { transform: translateY(-5px); }
.talent-card::after { content: ''; position: absolute; bottom: -19px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 20px solid var(--cor-branca); }
.talent-card-header h3 { margin-top: 0; font-size: 1.2em; }
.talent-card-footer { padding-top: 20px; margin-top: 20px; border-top: 1px solid #eee; text-align: center; }

/* PÁGINAS DE FORMULÁRIO */
.form-wrapper { display: flex; align-items: center; justify-content: center; padding: 40px 20px; min-height: calc(100vh - 120px); box-sizing: border-box; }
.form-container, .profile-form-container { background-color: #fff; padding: 0; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); width: 100%; max-width: 500px; overflow: hidden; }
.form-header-pin { background-color: var(--cor-principal); color: white; padding: 25px; position: relative; margin-bottom: 20px; }
.form-header-pin::after { content: ''; position: absolute; bottom: -19px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 20px solid var(--cor-principal); }
.form-header-pin h1, .form-header-pin h2 { margin: 0; text-align: center; font-size: 1.5em; }
.form-content { padding: 30px; }
.switch-buttons { display: flex; justify-content: center; margin-bottom: 30px; border-radius: 5px; overflow: hidden; background-color: #eee; padding: 5px;}
.switch-buttons button { flex: 1; padding: 12px; border: none; background-color: transparent; cursor: pointer; font-size: 1em; font-weight: bold; color: #777; border-radius: 5px; }
.switch-buttons button.active { background-color: var(--cor-principal); color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 1.1em; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; font-size: 16px; }
#form-empresa { display: none; }
.divider { text-align: center; border-bottom: 1px solid #ddd; line-height: 0.1em; margin: 30px 0; }
.divider span { background: #fff; padding: 0 10px; color: #999; }
.social-login { display: flex; flex-direction: column; gap: 15px; }
.social-button { width: 100%; box-sizing: border-box; border: 1px solid #ddd; }
.social-button img { width: 24px; height: 24px; margin-right: 12px; }
.social-button.google { background-color: #fff; color: #444; }

/* BOTÕES PWA */
#install-button { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); right: 20px; padding: 12px 18px; border-radius: 25px; border: none; background-color: var(--cor-principal); color: white; font-size: 16px; font-weight: bold; box-shadow: 0 4px 8px rgba(0,0,0,0.2); cursor: pointer; z-index: 1000; display: none; }
#ios-install-prompt { position: fixed; bottom: 0; left: 0; right: 0; background-color: #f9f9f9; color: #333; padding: 15px; padding-bottom: calc(15px + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid #ddd; z-index: 1000; display: none; font-size: 0.9em; }

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .latest-jobs-ticker { display: none; }
    .header nav { display: none; position: absolute; top: 80px; right: 20px; background-color: white; border-radius: 8px; width: 200px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); flex-direction: column; gap: 0; padding: 10px 0; z-index: 1000; }
    .header nav.active { display: flex; }
    .header nav .nav-pin { margin: 5px 10px; width: auto; }
    .header nav .nav-pin::after { display: none; }
    .hamburger { display: block; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 1.8em; }
    .container { padding: 0 15px; }
    .featured-listings { padding: 30px 15px; }
    .listing-grid { grid-template-columns: 1fr; gap: 30px; }
    .quick-post-box { padding: 15px; margin: 30px auto 0 auto; }
    .quick-post-form { flex-direction: column; }
}