/*
Theme Name: Character Selector Coquette
Theme URI: #
Author: Custom Theme
Author URI: #
Description: Tema WordPress estilo Coquette com seleção de personagens interativa
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: character-selector
Domain Path: /languages
*/

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

html, body {
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
}

body {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #f5a9c1 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Padrão de rosas de fundo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(220, 20, 60, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(220, 20, 60, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 105, 180, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
}

header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 0.8s ease-out;
}

header h1 {
  font-size: 2.5rem;
  color: #c2185b;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

header p {
  font-size: 1.1rem;
  color: #d81b60;
  opacity: 0.9;
  font-style: italic;
}

/* Grid de personagens */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@media (max-width: 768px) {
  .characters-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Card do personagem */
.character-card {
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: slideIn 0.6s ease-out;
}

.character-card:hover {
  transform: translateY(-10px) scale(1.05);
}

.character-card.active {
  transform: scale(1.1);
}

.character-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5f7 0%, #ffe4e9 100%);
  box-shadow: 0 10px 30px rgba(193, 33, 91, 0.2);
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.character-card:hover .character-image-wrapper {
  box-shadow: 0 15px 40px rgba(193, 33, 91, 0.35);
  border-color: #ff69b4;
}

.character-card.active .character-image-wrapper {
  border-color: #c2185b;
  box-shadow: 0 0 30px rgba(193, 33, 91, 0.5);
}

.character-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.character-card:hover .character-image-wrapper img {
  transform: scale(1.1);
}

/* Badge de seleção */
.selection-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.character-card.active .selection-badge {
  opacity: 1;
  transform: scale(1);
}

/* Informações do personagem */
.character-info {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(193, 33, 91, 0.15);
  animation: fadeInUp 0.8s ease-out 0.4s both;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 105, 180, 0.2);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.character-info h2 {
  font-size: 2rem;
  color: #c2185b;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

.character-info p {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  font-style: italic;
  color: #555;
}

.character-info.empty {
  text-align: center;
  color: #999;
  font-style: italic;
}

/* Animações */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Decorações de rosas */
.decoration {
  position: fixed;
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
}

.decoration-rose {
  font-size: 3rem;
}

/* Responsividade */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  .character-info {
    padding: 20px;
    min-height: auto;
  }

  .character-info h2 {
    font-size: 1.5rem;
  }

  .character-info p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  header p {
    font-size: 0.9rem;
  }

  .character-info {
    padding: 15px;
  }

  .character-info h2 {
    font-size: 1.3rem;
  }

  .character-info p {
    font-size: 0.9rem;
  }
}

/* Animação de brilho - passa uma única vez */
@keyframes singleShimmer {
  0% {
    box-shadow: inset -1000px 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: inset 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  100% {
    box-shadow: inset 1000px 0 0 0 rgba(255, 255, 255, 0);
  }
}

.character-card.active {
  animation: singleShimmer 1.2s ease-in-out 1 !important;
}

/* Efeito de sombra para card ativo */
.character-card.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  pointer-events: none;
}
