/* Importação de fonte moderna e limpa */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

/* Estilos Gerais */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #2257ea); /* Azul escuro com gradiente */
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #f0f0f0;
}

form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
}

.language-selector {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    pointer-events: auto;
}

.language-selector a {
    margin: 0 5px;
}

label {
    color: white;
    font-weight: bold;
    font-size: 1.1em;
}

select {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    font-size: 1em;
    background-color: #ffffff;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

select:hover {
    background-color: #f0f0f0;
}

select:focus {
    outline: none;
    border: 2px solid #007BFF;
}


.filtro-modalidade {
    margin: 20px auto;
    text-align: center;
    font-size: 1.1rem;
}

.filtro-modalidade select {
    padding: 6px 12px;
    font-size: 1rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-left: 10px;
}

.modalidades-botoes button {
    margin-top: 10vh;
    background-color: #db0000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 16px 32px; /* Aumentado */
    font-size: 1.2rem;   /* Aumentado */
    min-width: 160px;
}

.modalidades-botoes button:hover {
    background-color: #0077cc;
}

.botao-voltar {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #406697;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.botao-voltar:hover {
    background-color: #003080;
}

.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
  }
  
  .screen__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    clip-path: inset(0 0 0 0);
  }
  
  .screen__background__shape {
    position: absolute;
    border-radius: 32px;
  }
  
  /* BRANCO INCLINADO */
  .screen__background__shape1 {
    width: 130vw;
    height: 130vw;
    background: white;
    top: -105vh;
    left: 180vh;
    transform: rotate(-30deg);
    border-radius: 0;
  }
  
  /* AZUL ESCURO INFERIOR DIREITO */
  .screen__background__shape2 {
    width: 35vw;
    height: 75vh;
    background: #0056b3;
    top: 50vh;
    right: -25vw;
    transform: rotate(30deg);
  }
  
  /* AZUL CLARO CANTO DIREITO */
  .screen__background__shape3 {
    width: 80vw;
    height: 65vh;
    background: #007BFF;
    top: -40vh;
    left: -60vh;
    transform: rotate(150deg);
  }
  
  /* VERMELHO INFERIOR DIREITO */
  .screen__background__shape4 {
    width: 40vw;
    height: 65vh;
    background: #ff0000;
    top: 70vh;
    left: -64vh;
    transform: rotate(150deg);
  }

  .screen__background__shape5 {
    width: 40vw;
    height: 65vh;
    background: #ff0000;
    top: -30vh;
    left: -64vh;
    transform: rotate(30deg);
  }

  /* AZUL CLARO CANTO DIREITO */
  .screen__background__shape6 {
    width: 80vw;
    height: 65vh;
    background: #007BFF;
    top: -40vh;
    left: 100vh;
    transform: rotate(30deg);
  }

  .screen__background__shape7 {
    width: 30vw;
    height: 50vw;
    background: white;
    top: 10vh;
    right: 190vh;
    transform: rotate(20deg);
    border-radius: 0;
    z-index: -2;
  }
  

h1 {
    font-size: 3.5rem;
    text-align: center;
    background: linear-gradient(90deg, #ffffff, #929292, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s infinite linear;
    text-transform: uppercase;
    margin: 30px 0;
}

@keyframes shine {
    0% { background-position: -200px; }
    100% { background-position: 200px; }
}

/* Logo */
.logo-container {
    margin-top: 20px;
}

.logo-ndap {
    width: 150px;
    height: auto;
}

/* Botão */
button {
    background-color: #c90000;
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    margin: 15px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    transition: 0.3s ease;
}
button:hover {
    background-color: #c90000;
    transform: scale(1.05);
}

/* Container dos Troféus */
.trofeu-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    width: 100%;
    padding: 20px;
}



.trofeu-nome {
    
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* Visualizador do Troféu */
.trofeu-viewer {
    width: 100%;
    height: 350px;
    background: #292929;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Descrição do Troféu */
.trofeu-descricao {
    font-size: 1rem;
    color: #ddd;
    margin-top: 15px;
    padding: 10px;
    background: rgba(13, 30, 64, 0.6);
    border-radius: 8px;
    text-align: justify;
}

/* Controles */
.trofeu-controle select {
    margin-top: 10px;
    padding: 6px;
    border-radius: 6px;
    background-color: #fff;
    color: #0d1e40;
    font-weight: 600;
    border: 1px solid #ccc;
}

/* Brilho externo */
.trofeu-card::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    background: linear-gradient(45deg, #ffd700, #ffffff);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.15;
    filter: blur(8px);
}

/* Cartão do Troféu */
.trofeu-card {
    background: rgba(102, 102, 102, 0.508);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    width: 350px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 0.6s ease-in-out;
    position: relative;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.trofeu-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(245, 88, 88, 0.763); /* brilho dourado */
}

.trofeu-card-inner::before {
  content: "";
  display: block;
  padding-top: 100%;
  visibility: hidden;
}

.trofeu-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.trofeu-card.flipped .trofeu-card-inner {
    transform: rotateY(180deg);
}

.trofeu-card-front,
.trofeu-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    top: 0;
    left: 0;
}

.trofeu-card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.trofeu-card-back {
    background: rgba(102, 102, 102, 0.508);
    transform: rotateY(180deg);
}

.info-button {
    position: absolute;
    top: -25px;
    right: -25px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
    z-index: 3;
}

.edit-button{
	position: absolute;
    top: -10px;
    left: -10px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
    z-index: 3;
}

.back-button {
    position: absolute;
    top: -11px;
    right: -10px;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem 0.5rem;
    z-index: 3;
}

.trofeu-img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Animação */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .trofeu-card {
        width: 90%;
    }
    .trofeu-viewer {
        height: 250px;
    }
}