/* ============================================
   QUEST4COUPLE - THEME CARDS
   Estilos dos cards de seleção de packs
   ============================================ */

/* === THEME GRID === */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
  padding: 0 10px;
  animation: fadeInGrid 0.6s ease-out;
}

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

/* === THEME CARD === */
.theme-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border: 2px solid transparent;
  position: relative;
}

.theme-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(214, 51, 132, 0.1), rgba(111, 66, 193, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.theme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
  border-color: rgba(214, 51, 132, 0.3);
}

.theme-card:hover::after {
  opacity: 1;
}

.theme-card:active {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* === CARD HEADER === */
.theme-card-header {
  padding: 40px 25px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.theme-card-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.1; }
}

.theme-icon {
  font-size: 3.5em;
  margin-bottom: 15px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.theme-icon-img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  object-fit: contain;
}

.theme-card-header h3 {
  margin: 0 0 8px 0;
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.theme-description {
  font-size: 0.9em;
  opacity: 0.95;
  line-height: 1.4;
}

.theme-spacer {
  margin: 0;
  font-size: 0.9em;
  opacity: 0;
  line-height: 1.4;
  height: 1.26em;
}

/* === CARD FOOTER === */
.theme-card-footer {
  padding: 20px 25px;
  background: rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85em;
  color: #666;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.question-count {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.theme-free {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85em;
  color: #28a745;
  font-weight: 700;
  background: rgba(40, 167, 69, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

/* === PROGRESS BAR === */
.theme-progress {
  margin-top: 8px;
  position: relative;
  padding: 0;
}

/* Container da barra com contorno sempre visível */
.theme-progress-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 8px;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

/* Animação quando a barra cresce */
.theme-progress-bar:not([style*="width: 0%"]) {
  animation: fillBar 0.5s ease-out;
}

@keyframes fillBar {
  from {
    opacity: 0.5;
    transform: scaleX(0.95);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.theme-progress-text {
  font-size: 0.75em;
  color: #666;
  text-align: center;
  font-weight: 600;
  padding-top: 4px;
}

/* === PACK COLORS (baseadas no logo Quest4Couple) === */
.romantico { 
  background: linear-gradient(135deg, #f082a9 0%, #ff9fbf 50%, #e56b8e 100%);
}
.experiencia {
  background: linear-gradient(135deg, #006c80 0%, #008da0 50%, #005563 100%);
}
.pimentinha { 
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8787 50%, #ff4d4d 100%);
}
.poliamor { 
  background: linear-gradient(135deg, #6f42c1 0%, #9d5bd2 50%, #5a32a3 100%);
}
.kinks { 
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #0d0d0d 100%);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .themes-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 5px;
  }
  
  .theme-card-header {
    padding: 30px 20px;
  }
    .theme-icon {
    font-size: 2.5em;
  }
  
  .theme-icon-img {
    width: 60px;
    height: 60px;
  }
  
  .theme-card-header h3 {
    font-size: 1.3em;
  }
  
  .theme-description {
    font-size: 0.85em;
  }
}
