/* Layout horizontal dos signos */
.hao-horizontal-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 20px 0;
  padding: 10px;
  overflow-x: auto;
  max-width: 100%;
}

.hao-sign-horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 85px;
  max-width: 85px;
  flex-shrink: 0;
}

.hao-sign-horizontal:hover {
  background-color: #f8f9fa;
  border-color: #007cba;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hao-icon-container {
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 8px;
}

.hao-sign-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hao-sign-name {
  font-weight: bold;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.hao-sign-period {
  font-size: 11px;
  color: #666;
  line-height: 1.2;
}

/* Responsividade */
@media (max-width: 768px) {
  .hao-horizontal-grid {
    gap: 6px;
    padding: 5px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hao-sign-horizontal {
    min-width: 70px;
    max-width: 70px;
    padding: 6px 4px;
  }
  
  .hao-icon-container {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
  }
  
  .hao-sign-name {
    font-size: 12px;
  }
  
  .hao-sign-period {
    font-size: 10px;
  }
}

/* Modal - Garantir que funcione sempre */
.hao-modal {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(0, 0, 0, 0.8) !important;
  z-index: 999999 !important;
  justify-content: center !important;
  align-items: center !important;
}

.hao-modal.show {
  display: flex !important;
}

.hao-modal-dialog {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 20px !important;
}

.hao-modal-content {
  background: white !important;
  border-radius: 8px !important;
  padding: 30px !important;
  max-width: 500px !important;
  width: 90% !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
  position: relative !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.hao-close {
  position: absolute !important;
  top: 15px !important;
  right: 20px !important;
  font-size: 28px !important;
  font-weight: bold !important;
  color: #999 !important;
  cursor: pointer !important;
  line-height: 1 !important;
  background: none !important;
  border: none !important;
}

.hao-close:hover {
  color: #333 !important;
}

/* Loading Spinner */
.hao-spinner {
  border: 4px solid #f3f3f3 !important;
  border-top: 4px solid #667eea !important;
  border-radius: 50% !important;
  width: 40px !important;
  height: 40px !important;
  animation: spin 1s linear infinite !important;
  margin: 20px auto !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#hao-loading {
  text-align: center !important;
  padding: 40px !important;
  color: #666 !important;
}

/* Conteúdo do horóscopo */
.hao-horoscope-result h3 {
  color: #333 !important;
  margin-bottom: 20px !important;
  font-size: 24px !important;
  text-align: center !important;
}

.hao-horoscope-text {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #555 !important;
  margin-bottom: 20px !important;
}

.hao-date {
  font-size: 12px !important;
  color: #999 !important;
  text-align: center !important;
  margin: 0 !important;
}

.hao-error {
  color: #d32f2f !important;
  text-align: center !important;
  padding: 20px !important;
  font-size: 16px !important;
}
