/*PAGINA-INDEX*/
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    color: #222;
    scroll-behavior: smooth;
    background: linear-gradient(to bottom, #ff4500, #000);
}

/*header*/
header {
    box-sizing: border-box;
    margin: 20px auto 0;
    width: 1200px;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 1rem;
    border: 2px solid #000;
    border-radius: 25px;
    background-color: #fff;
    position: sticky;
    top: 1px;
    z-index: 10;
    box-shadow: 8px 8px 0 #000;
}
header img{
    transition: 0.5s;
    width: 180px;
    height: 70px;
}
header img:hover {
    width: 184px;
    height: 74px;
}
header .buttons button {
    width: 120px;
    height: 50px;
    margin-left: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}
.criar {
    background-color: #fff;
    border: 1px solid #000;
}
.criar:hover {
    background-color: #000;
    color: #fff;
}
.entrar {
    background-color: #000;
    color: #fff;
}
.entrar:hover {
    background-color: #ff4500;
}

/*sobre*/
@keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

/* Compensa o header sticky ao rolar suavemente até uma seção pelo link-âncora,
   evitando que o topo da seção fique escondido atrás do header */
#sobre,
#funcionalidades,
#junte-se {
    scroll-margin-top: 130px;
}

.sobre {
    box-sizing: border-box;
    width: min(1200px, 90%);
    margin: 4rem auto;
    padding: 3.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 25px;
    box-shadow: 8px 8px 0 #000;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    position: relative;
    overflow: hidden;
}
.sobre article {
    width: 600px;
    position: relative;
    z-index: 1;
}
.sobre article h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 30px;
    text-align: left;
    color: #ff6600;
}
.sobre article p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    text-align: justify;
    color: #333;
}
.sobre img {
    width: 220px;
    height: auto;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}
.sobre img:hover {
    transform: rotate(-5deg) scale(1.05);
}

/*cards*/
.cards{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1100px;
    margin: 2rem auto 5rem;
    padding: 0 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}
.card{
    box-sizing: border-box;
    width: 300px;
    min-height: 260px;
    padding: 2rem 1.8rem;
    border-radius: 18px;
    background-color: #fff;
    border: 2px solid #000;
    box-shadow: 6px 6px 0 #000;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover{
    transform: translateY(-10px);
}
.card h3{
    margin: 0 0 1rem;
    font-size: 1.35rem;
    color: #111;
}
.card p{
    margin: 0;
    max-width: 240px;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

/*junte-se*/
.junte-se {
    box-sizing: border-box;
    width: min(1200px, 90%);
    min-height: 350px;
    margin: 5rem auto;
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    background-color: #111;
    border: 2px solid #000;
    border-radius: 25px;
    box-shadow: 8px 8px 0 #fff;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.junte-conteudo {
    max-width: 550px;
    position: relative;
    z-index: 2;
}
.junte-se img{
    width: 350px;
    height: 350px;
    border-radius: 30px;
}
.junte-tag {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 0.8rem;
    background-color: #ff6600;
    color: #000;
    border: 2px solid #000;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
}
.junte-se h2 {
    margin: 0 0 1rem;
    font-size: 2.5rem;
    color: #fff;
}
.junte-se p {
    margin: 0 0 2rem;
    max-width: 500px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
}
.junte-botoes {
    display: flex;
    gap: 1rem;
}
.junte-botoes button{
    width: 130px;
    height: 48px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
}
.junte-botoes .entrar{
    background-color: #ff6600;
    color: #000;
    border: 2px solid #ff6600;
}
.junte-botoes .entrar:hover{
    background-color: #ff8c00;
    transform: translateY(-3px);
}
.junte-botoes .criar{
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.junte-botoes .criar:hover{
    background-color: #fff;
    color: #000;
    transform: translateY(-3px);
}

/*rodapé*/
footer {
    background-color: #121212;
    color: #ffffff;
    padding: 40px 20px 20px;
    font-family: inherit;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    flex: 1 1 300px;
}

.footer-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 15px;
}

.footer-brand p {
    color: #aaaaaa;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-nav,
.footer-info {
    flex: 1 1 200px;
}

footer h4 {
    color: #ff6b00;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #ff6b00;
}

.footer-info p {
    color: #cccccc;
    margin: 8px 0;
    font-size: 0.95rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
    text-align: center;
    color: #777777;
    font-size: 0.85rem;
}

/*modal de login/cadastro (index.html)*/
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: #ffffff;
    width: min(450px, 90%);
    padding: 2.5rem;
    border-radius: 20px;
    border: 3px solid #000000;
    box-shadow: 10px 10px 0px #ff6600;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ff6600;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 0.3rem;
    color: #111;
    font-size: 1.8rem;
    text-align: center;
}

/* Aba de login inicia oculta; o JS do index.html alterna a exibição entre as abas */
#modalLogin {
    display: none;
}

.modal-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #222;
}

.input-group input {
    padding: 0.8rem 1rem;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: #ff6600;
}

.esqueci-senha {
    font-size: 0.8rem;
    color: #ff6600;
    text-decoration: none;
    margin-top: 0.4rem;
    text-align: right;
    font-weight: 600;
}

.esqueci-senha:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 0.9rem;
    background-color: #000;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid #000;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background-color: #ff6600;
    border-color: #ff6600;
    color: #000;
}

.modal-switch {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    color: #555;
}

.modal-switch a {
    color: #ff6600;
    font-weight: bold;
    text-decoration: none;
}

.modal-switch a:hover {
    text-decoration: underline;
}



/* ==================================================================
   PÁGINAS DE DASHBOARD (usuario_home.php e admin_home.php)
   Regras ativas somente quando <html> tem a classe "pagina-dashboard",
   para não afetar em nada o restante do site (ex: index.html).
   Diferenças entre admin e usuário são controladas por
   "pagina-admin" / "pagina-usuario" no <body>.
   ================================================================== */

html.pagina-dashboard * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html.pagina-dashboard,
html.pagina-dashboard body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #121212;
}

html.pagina-dashboard .app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    background-image: url('../imagens/fundo-tela.png');
    background-repeat: repeat;
    background-position: center;
    background-size: auto;
}

/* ---------- Barra lateral (sidebar) ---------- */
html.pagina-dashboard .sidebar {
    width: 70px;
    background-color: #111111;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    border-right: 1px solid #2a2a2a;
    z-index: 100;
}

html.pagina-dashboard .logo-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px;
    border: 2px solid #ff5500;
    position: relative;
    cursor: pointer;
}

html.pagina-dashboard .logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html.pagina-dashboard .admin-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #ff5500;
    color: #fff;
    font-size: 8px;
    font-weight: bold;
    padding: 1px 3px;
    border-radius: 3px;
}

html.pagina-dashboard .nav-icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
}

html.pagina-dashboard .nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: transparent;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    text-decoration: none;
}

html.pagina-dashboard .nav-btn:hover {
    background-color: #2a2a2a;
    color: #ff5500;
}

html.pagina-dashboard .badge-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #ff3333;
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 5px;
}

html.pagina-dashboard .sidebar-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* ---------- Área principal / busca ---------- */
html.pagina-dashboard .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

html.pagina-dashboard .top-search-bar {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    height: 48px;
    background-color: #ffffff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 500;
}

html.pagina-dashboard .search-btn {
    background: none;
    border: none;
    color: #1a2b4c;
    font-size: 18px;
    cursor: pointer;
    margin-right: 10px;
}

html.pagina-dashboard .search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
}

html.pagina-dashboard .clear-btn {
    background: none;
    border: none;
    color: #777;
    font-size: 18px;
    cursor: pointer;
    padding: 0 10px;
}

html.pagina-dashboard .user-profile-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #0d47a1;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    margin-left: 5px;
}

/* No admin, o botão de perfil usa a cor laranja da marca em vez do azul do usuário comum */
html.pagina-dashboard body.pagina-admin .user-profile-btn {
    background-color: #ff5500;
}

/* ---------- Mapa ---------- */
html.pagina-dashboard .map-container {
    width: 90%;
    height: 82%;
    margin: 80px auto auto auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
}

html.pagina-dashboard #map {
    width: 100%;
    height: 100%;
}

/* ---------- Modais ---------- */
html.pagina-dashboard .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

html.pagina-dashboard .modal-overlay.active {
    display: flex;
}

html.pagina-dashboard .modal-window {
    display: none;
    background-color: #222222;
    color: white;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    border: 1px solid #444;
}

/* No admin, os modais (geralmente com tabelas) são mais largos por padrão */
html.pagina-dashboard body.pagina-admin .modal-window {
    max-width: 750px;
}

/* Modal de perfil (usuário e admin) precisa de uma largura própria, menor que a tabela do admin */
html.pagina-dashboard .modal-window.modal-perfil {
    max-width: 550px;
}

html.pagina-dashboard .modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
}

html.pagina-dashboard .modal-close-btn:hover {
    color: #ff5500;
}

html.pagina-dashboard .modal-window h3 {
    margin-bottom: 15px;
    color: #ff5500;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Texto de apoio padrão usado logo abaixo do título de vários modais */
html.pagina-dashboard .modal-descricao {
    color: #aaa;
    font-size: 13px;
    margin-bottom: 15px;
}

/* ---------- Utilitários de texto (evitam repetir cor/tamanho soltos) ---------- */
html.pagina-dashboard .texto-secundario {
    color: #aaa;
    font-size: 13px;
}

html.pagina-dashboard .mensagem-vazia {
    color: #aaa;
    margin-top: 10px;
}

html.pagina-dashboard .mensagem-sucesso {
    color: #00c853;
    font-weight: bold;
    margin-top: 10px;
}

html.pagina-dashboard .status-aprovada {
    color: #00c853;
    font-weight: bold;
}

html.pagina-dashboard .text-danger {
    color: #d50000;
}

html.pagina-dashboard .perfil-admin-desc {
    margin-top: 10px;
    font-size: 14px;
    color: #aaa;
}

/* ---------- Formulários dentro dos modais (perfil e cadastro de quadra) ---------- */
html.pagina-dashboard .form-field {
    margin-bottom: 12px;
}

html.pagina-dashboard .form-field.form-field-final {
    margin-bottom: 20px;
}

html.pagina-dashboard .form-field label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
}

html.pagina-dashboard .form-field input,
html.pagina-dashboard .form-field textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #333;
    color: #fff;
}

html.pagina-dashboard .form-field textarea {
    resize: none;
}

html.pagina-dashboard .form-field input[type="file"] {
    padding: 8px;
}

html.pagina-dashboard .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

html.pagina-dashboard .form-hint {
    display: block;
    font-size: 11px;
    color: #aaa;
    margin-top: 3px;
}

html.pagina-dashboard .form-actions {
    display: flex;
    gap: 10px;
}

html.pagina-dashboard .form-perfil-edicao {
    display: none;
    margin-top: 15px;
}

html.pagina-dashboard .btn-submit-quadra {
    width: 100%;
    background: #ff5500;
    padding: 12px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

html.pagina-dashboard .btn-salvar {
    flex: 1;
    background: #00c853;
    padding: 10px;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

html.pagina-dashboard .btn-cancelar {
    background: #555;
    padding: 10px;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

html.pagina-dashboard .btn-block {
    width: 100%;
    padding: 8px;
}

/* ---------- Modal de perfil (visualização) ---------- */
html.pagina-dashboard .perfil-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

html.pagina-dashboard .perfil-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ff5500;
    overflow: hidden;
    background: #333;
    flex-shrink: 0;
}

html.pagina-dashboard .perfil-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

html.pagina-dashboard .perfil-nome {
    font-size: 20px;
    color: #fff;
}

html.pagina-dashboard .perfil-bio {
    color: #aaa;
    font-size: 13px;
    margin-top: 4px;
    font-style: italic;
}

html.pagina-dashboard .perfil-contato {
    color: #888;
    font-size: 12px;
    margin-top: 6px;
}

html.pagina-dashboard .perfil-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #1a1a1a;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

html.pagina-dashboard .perfil-stats .stat-label {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
}

html.pagina-dashboard .perfil-stats .stat-valor {
    font-size: 22px;
    font-weight: bold;
    margin-top: 5px;
}

html.pagina-dashboard .perfil-stats .stat-valor.reputacao {
    color: #ffb400;
}

html.pagina-dashboard .perfil-stats .stat-valor.avaliacoes {
    color: #ff5500;
}

html.pagina-dashboard .btn-editar-perfil {
    background-color: #ff5500;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

/* ---------- Painel administrativo: cadastros imediatos ---------- */
html.pagina-dashboard .admin-acoes-rapidas-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

html.pagina-dashboard .admin-acao-rapida {
    background: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

html.pagina-dashboard .admin-acao-rapida h4 {
    color: #ff5500;
    margin-bottom: 5px;
}

html.pagina-dashboard .admin-acao-rapida p {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 10px;
}

/* ---------- Painel administrativo: tabelas ---------- */
html.pagina-dashboard .admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

html.pagina-dashboard .admin-table th,
html.pagina-dashboard .admin-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #333;
    vertical-align: middle;
}

html.pagina-dashboard .admin-table th {
    background-color: #1a1a1a;
    color: #ff5500;
}

html.pagina-dashboard .quadra-img-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #444;
    display: block;
}

html.pagina-dashboard .btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 5px;
}

html.pagina-dashboard .btn-success { background: #00c853; color: white; }
html.pagina-dashboard .btn-danger  { background: #d50000; color: white; }
html.pagina-dashboard .btn-warning { background: #ffab00; color: black; }
html.pagina-dashboard .btn-info    { background: #29b6f6; color: white; }

html.pagina-dashboard .form-inline {
    display: inline-block;
}

html.pagina-dashboard .search-admin-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #444;
    background: #333;
    color: #fff;
    margin-bottom: 15px;
}
