/*
Theme Name: TinderPet
Theme URI: https://tinderpet.com/
Author: Marina Dilda
Author URI: https://marinadilda.com/
Description: Tema WordPress para adoção de pets com swipe estilo Tinder.
Version: 1.3
*/

/* Desabilita seleção de texto e imagem */
body, 
body * {
  -webkit-user-select: none; 
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

h1 {
  margin: 5px;
}

body {
  font-family: Arial, sans-serif;
  background: #fffaf5;
  margin: 0;
  padding: 0;
}
header {
  display: flex;
  justify-content: center;  /* Centraliza horizontalmente */
  align-items: center;      /* Centraliza verticalmente */
  gap: 30px;                /* Espaço entre o logo e o botão */
  padding: 20px 0;
  flex-wrap: wrap;          /* Quebra se ficar muito apertado em telas pequenas */
}

header h1 {
  margin: 0;
  font-size: 24px;
}

.logo-link {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.favorites-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

header {
  background-color: #24ba7b;
  color: white;
  padding: 10px;
  text-align: center;
}
.login-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  padding: 60px 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.login-layout .contato-footer {
	margin-top: 0px;
}

.login-side-info {
  max-width: 500px;
  text-align: center;
}

.login-top-logo {
  width: 100%;
  margin-bottom: 20px;
}

.login-text {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 20px;
  color: #333;
}

.login-bottom-logo {
  width: 120px;
  opacity: 0.8;
}

.login-form-area {
  max-width: 360px;
  width: 100%;
}
.container .contato-footer {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contato-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.contato-link img {
  height: 22px;
}


.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(107vh - 170px);
    position: relative;
    flex-direction: column; 
}
.bg-patas{
	background-image: url('https://patasprotetoras.com.br/wp-content/uploads/2025/12/fundo-scaled.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
	background-attachment: fixed;
}

.pet-card {
  position: absolute;
  width: 300px;
  max-width: 90vw;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.pet-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.actions {
  margin-top: 0;
  display: flex;
  justify-content: space-around;
}

.action-btn {
  font-size: 24px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-no {
  background-color: #ddd;
}

.btn-yes {
  background-color: #ddd;
  color: white;
}


.restart-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #24ba7b;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: none;
  z-index: 20;
}

.show {
  display: block;
}
.contato-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  padding: 20px ;
  font-size: 16px;
  color: white;
}

.contato-link {
  text-decoration: none;
  color: #000;
  display: flex;
  align-items: center;
}

footer {
  background-color: #f1f1f1;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: #555;
}

.info-inline {
  font-size: 14px;
}

.pet-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 0px 0;
}

.pet-icons .icon {
  font-size: 32px;
  position: relative;
}

.pet-card .icon img {
  height: 50px !important;   /* 🔥 força 50px */
    width: auto;
    display: block;
}

.pet-icons .icon.not::after {
  content: "✖";
  color: #ff0000 !important;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 20px;
  font-weight: bold;
}

p { margin: 0 auto; }
h2 { margin-bottom: 0px; margin-top: 10px; }

/* === Carrossel === */
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.carousel {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-slide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.carousel-slide video {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
  display: block;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(36,186,123,0.7);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.favorites-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 🔥 Sempre 3 colunas */
  gap: 15px;
  margin-top: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}


.favorite-item {
  flex: 0 1 250px;
  max-width: 250px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  padding: 10px;
  transition: transform 0.3s;
}

.favorites-list:has(.favorite-item:first-child):not(:has(.favorite-item:nth-child(2))) {
  justify-content: center;
}

.favorites-list:has(.favorite-item:nth-child(2)):not(:has(.favorite-item:nth-child(3)))::after {
  content: "";
  flex: 0 1 250px;
  max-width: 250px;
  display: block;
}
.favorite-info h3 a {
  color: #24ba7b;          /* Verde da identidade visual */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.favorite-info h3 a:hover {
  color: #1a8f5e;          /* Um tom mais escuro para o hover */
  text-decoration: underline;
}

.remove-favorite {
  margin-top: 8px;
  background: #ccc;
  color: #333;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.remove-favorite:hover {
  background: #24ba7b;
  color: #fff;
}

.favorite-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

.favorite-info {
  margin-top: 8px;
}

.favorite-info h3 {
  font-size: 18px;
  margin: 5px 0;
}

.favorites-button {
  display: inline-block;
  margin-top: 0px;
  background-color: white;
  color: #24ba7b;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #24ba7b;
  transition: background 0.3s ease, color 0.3s ease;
}

.favorites-button:hover {
    background-color: #24ba7b;
    color: white;
    border: 2px solid;
}

.logo-link {
  color: white;
  text-decoration: none;
}

.logo-link:hover {
  text-decoration: underline;
}

/* Container do login */
.tinderpet-login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 65vh;
}

.tinderpet-login-box {
  background: #fff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px #000;
  text-align: center;
  width: 300px;
}

.tinderpet-login-box h2 {
  margin-bottom: 15px;
  color: #24ba7b;
}

.tinderpet-login-box label {
  display: block;
  text-align: left;
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: bold;
}

.tinderpet-login-box input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.tinderpet-login-box button {
  width: 100%;
  background-color: #24ba7b;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tinderpet-login-box button:hover {
  background-color: #1ca56d;
}

#register-message {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

/* Minha Conta */
.minha-conta {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.minha-conta h2 {
  font-size: 26px;
  color: #24ba7b;
  margin-bottom: 15px;
}

.logout-link {
  font-size: 16px;
  color: #24ba7b;
  text-decoration: none;
  font-weight: bold;
  padding-left: 10px;
}

.logout-link:hover {
  color: #1ca56d;
  text-decoration: underline;
}

/* Botões */
.logout-btn,
#btn-editar {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: #24ba7b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.logout-btn:hover,
#btn-editar:hover {
  background: #1ca56d;
}

#editar-conta button[type="submit"] {
     display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #24ba7b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
form#editar-conta label{
	font-weight:bold;
}
div#dados-view p{
	margin-bottom:5px;
}
form#editar-conta p{
	margin-bottom:5px;
}
#editar-conta button[type="submit"]:hover {
  background: #1ca56d;
}

#btn-cancelar {
     display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: #ccc;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

#btn-cancelar:hover {
  background: #999;
  color: white;
}

.single-pet-container {
    max-width: 500px;
    margin: auto;
    padding: 35px;
}

.single-pet-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.single-pet-card img,
.single-pet-card video {
  width: 100%;
  border-radius: 10px;
}
.single-pet-card .icon{
	max-width:50px;
}
.single-pet-card .icon{
	max-width:50px;
}
.single-pet-card .pet-icons{
	justify-content: unset;
}


.pet-details p {
  font-size: 16px;
  margin: 5px 0;
}

.back-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background: #24ba7b;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

.back-btn:hover {
  background: #1ea56c;
}

.pet-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.pet-popup-content {
  position: relative;
  background: #fff;
  max-width: 400px;
  padding: 20px 30px 20px 20px;
  border-radius: 10px;
  text-align: center;
}

.pet-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 24px;
  font-weight: bold;
  color: #ff6b6b;
  cursor: pointer;
  transition: color 0.3s;
}

.pet-popup-close:hover {
  color: #e55555;
}

#pet-popup-text {
  font-size: 16px;
  color: #333;
}

.back-buttons .back-btn {
  display: inline-block;
  text-align: left;
}
.single .carousel-slide img {
    height: auto;
}
.iconoff{
	opacity:0;
}
p {
    font-size: 14px;
}
.info-obs {
    min-height: 50px;
}

.image-overlay-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.image-overlay-wrapper img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.overlay-text {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(255,255,255,0.85);
  color: #333;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
button, .action-btn, .favorites-button {
  touch-action: manipulation;
}

.pagination-container {
  margin: 30px 0;
  text-align: center;
}

.pagination-container ul.page-numbers {
  list-style: none;
  display: inline-flex;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #ddd;
}

.pagination-container ul.page-numbers li {
  margin: 0;
}

.pagination-container ul.page-numbers a,
.pagination-container ul.page-numbers span {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #444;
  background: #f9f9f9;
  border-right: 1px solid #ddd;
  transition: all 0.2s ease;
  font-weight: 500;
}

.pagination-container ul.page-numbers a:hover {
  background-color: #d1ffe6;
  color: #000;
}

.pagination-container ul.page-numbers .current {
  background-color: #33cc99;
  color: #fff;
  font-weight: bold;
}

.pagination-container ul.page-numbers .prev,
.pagination-container ul.page-numbers .next {
  background-color: #f0f0f0;
}

.pagination-container ul.page-numbers li:last-child a,
.pagination-container ul.page-numbers li:last-child span {
  border-right: none;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .login-layout {
    flex-direction: column;
    gap: 0px;
    padding: 40px 15px;
  }
	.contato-footer {
		margin-top: 0;
		padding: 20px 0px 0px 0px;
	}
	.favorites-list {
    grid-template-columns: repeat(2, 1fr); /* 2 colunas no tablet */
  }
}
@media (max-width: 500px) {
	header {  
    gap: 10px;   
}
  .logo-link {
    font-size: 1.2rem;
  }

  .favorites-button {
    font-size: 0.9rem;
	padding: 8px 4px;
  }
 .favorites-list {
    grid-template-columns: 1fr; /* 1 coluna no celular */
  }
}