/* Free Fire Quiz - Estilos Globais */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilitários básicos */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.min-h-screen {
  min-height: 100vh;
}

.bg-white {
  background-color: #ffffff;
}

.bg-black {
  background-color: #000000;
}

.text-white {
  color: #ffffff;
}

.text-black {
  color: #000000;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-700 {
  color: #374151;
}

/* Espaçamentos */
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.p-8 { padding: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Tipografia */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.italic { font-style: italic; }

.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }

/* Botões */
.btn {
  display: inline-block;
  padding: 1.5rem 2rem;
  font-weight: 900;
  font-size: 1.125rem;
  text-align: center;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  width: 100%;
  text-decoration: none;
}

.btn-yellow {
  background-color: #FDB913;
  color: #000000;
}

.btn-yellow:hover {
  background-color: #e5a711;
}

.btn-blue {
  background-color: #0071bc;
  color: #ffffff;
}

.btn-blue:hover {
  background-color: #005a96;
}

.btn-green {
  background-color: #22c55e;
  color: #ffffff;
}

.btn-red {
  background-color: #ef4444;
  color: #ffffff;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Imagens */
img {
  max-width: 100%;
  height: auto;
}

.h-9 { height: 2.25rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-auto { height: auto; }

.w-32 { width: 8rem; }
.w-full { width: 100%; }

.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }

.object-contain { object-fit: contain; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  animation: fadeIn 0.3s;
}

.popup-content {
  background-color: white;
  border-radius: 1rem;
  padding: 2rem;
  margin: 1rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: zoomIn 0.3s;
  max-width: 24rem;
}

.popup-emoji {
  font-size: 3.75rem;
  margin-bottom: 1rem;
}

.popup-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: #2563eb;
  margin-bottom: 0.5rem;
  white-space: pre-line;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Textarea */
textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
  min-height: 150px;
}

textarea:focus {
  outline: none;
  border-color: #FDB913;
}

/* Roleta */
.roulette-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.roulette-wheel {
  width: 18rem;
  height: 18rem;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Desktop Block */
.desktop-block {
  min-height: 100vh;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: #ffffff;
}

.desktop-block-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.desktop-block-title {
  font-size: 2.25rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.desktop-block-text {
  font-size: 1.125rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

/* Responsividade - Esconde conteúdo mobile em desktop */
@media (min-width: 769px) {
  .mobile-content {
    display: none !important;
  }
  .desktop-block {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .desktop-block {
    display: none !important;
  }
  .mobile-content {
    display: flex !important;
  }
}

/* Barra amarela decorativa */
.yellow-bar {
  background-color: #FDB913;
  height: 3rem;
}

/* Sombras */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Rounded */
.rounded-full {
  border-radius: 9999px;
}

.rounded-2xl {
  border-radius: 1rem;
}

/* Relative/Absolute */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Block */
.block {
  display: block;
}

.hidden {
  display: none;
}

/* Flex-1 */
.flex-1 {
  flex: 1 1 0%;
}
