/* Global Styles - Baseado no EstudoGlobal.css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:wght@300;400;500;600;700&display=swap');

:root {
  --primary-orange: #e86100;
  --primary-orange-light: #f2ad00;
  --primary-orange-hover: #ff6a00;
  --primary-orange-active: #d65500;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --green-50: #f0fdf4;
  --green-500: #10b981;
  --green-600: #059669;
  --yellow-50: #fff7e6;
  --yellow-100: #fef3c7;
  --yellow-200: #fde68a;
  --yellow-500: #f59e0b;
  --yellow-600: #d97706;
  --yellow-700: #b45309;
  --yellow-800: #a16207;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  font-family: 'Noto Serif', serif !important;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: #fff;
  overflow-x: hidden;
}

/* Animações */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes shrinkAndFade {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.75); opacity: 0.5; }
  100% { transform: scale(0); opacity: 0; }
}

@keyframes growAndFade {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.25); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* Tipografia */
.cinzel-text {
  font-family: 'Noto Serif', serif !important;
  letter-spacing: 0.5px;
}

.body-text {
  font-family: 'Noto Serif', serif !important;
  line-height: 1.7;
  color: var(--gray-600);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif', serif !important;
  font-weight: 600;
  color: var(--gray-800);
}

/* Botões */
.btn-gradient {
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-orange-light));
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 12px 0 rgba(232, 97, 0, 0.28), 0 1.5px 4px rgba(0,0,0,0.13);
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  z-index: 1;
  padding: 12px 24px;
  border-radius: 9999px;
  font-family: 'Noto Serif', serif !important;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-gradient:hover, .btn-gradient:focus {
  background: linear-gradient(135deg, var(--primary-orange-hover), #f89d00);
  box-shadow: 0 4px 18px 0 rgba(232, 97, 0, 0.38), 0 2px 8px rgba(0,0,0,0.18);
  transform: translateY(-4px) scale(1.04);
  outline: none;
  text-decoration: none;
  color: #fff;
}

.btn-gradient:hover::before, .btn-gradient:focus::before {
  left: 100%;
}

.btn-gradient:active {
  background: linear-gradient(135deg, var(--primary-orange-active), #e09a00);
  box-shadow: 0 2px 10px rgba(232, 97, 0, 0.25);
  transform: translateY(1px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--gray-600), var(--gray-500));
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(75, 85, 99, 0.2);
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: #fff;
  padding: 12px 24px;
  border-radius: 9999px; /* mais arredondado (formato pill) */
  font-family: 'Noto Serif', serif !important;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--gray-700), var(--gray-600));
  box-shadow: 0 7px 20px rgba(75, 85, 99, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-secondary:active {
  background: linear-gradient(135deg, var(--gray-800), var(--gray-700));
  box-shadow: 0 2px 10px rgba(75, 85, 99, 0.25);
  transform: translateY(1px);
}

/* Botão com gradiente amarelo suave (para Editar e Mostrar mais) */
.btn-amber {
  background: linear-gradient(135deg, #fff7de, #ffc547de);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 12px rgba(232, 190, 0, 0.28), 0 1.5px 4px rgba(0,0,0,0.10);
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: #2e2e2e;
  padding: 12px 24px;
  border-radius: 9999px;
  font-family: 'Noto Serif', serif !important;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-amber::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: 0.5s;
}

.btn-amber:hover, .btn-amber:focus {
  background: linear-gradient(135deg, #ffefb0, #ffbe24);
  box-shadow: 0 4px 18px rgba(232, 190, 0, 0.38), 0 2px 8px rgba(0,0,0,0.14);
  transform: translateY(-3px);
  outline: none;
  text-decoration: none;
  color: #2e2e2e;
}

.btn-amber:hover::before, .btn-amber:focus::before {
  left: 100%;
}

.btn-amber:active {
  background: linear-gradient(135deg, #ffe190, #ffb400);
  box-shadow: 0 2px 10px rgba(232, 190, 0, 0.28);
  transform: translateY(1px);
}

/* Cards */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Form Elements */
.input-field {
  border: 2px solid var(--gray-200);
  background-color: var(--gray-50);
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: 'Noto Serif', serif !important;
  font-size: 16px;
  width: 100%;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary-orange);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(232, 97, 0, 0.1);
}

/* SweetAlert modal input styling: use site font and slightly larger text */
.swal-input-field {
  font-family: 'Noto Serif', serif !important;
  font-size: 16px !important;
}

/* Progress Bar */
.progress-container {
  background: var(--gray-200);
  border-radius: 12px;
  height: 12px;
  overflow: hidden;
  margin: 25px 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow-500), var(--primary-orange));
  border-radius: 12px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

/* Utilities */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

.shrink-fade {
  animation: shrinkAndFade 0.5s forwards;
}

.grow-fade {
  animation: growAndFade 0.5s forwards;
  opacity: 0;
  transform: scale(0.95);
}

.grow-fade.show {
  opacity: 1;
  transform: scale(1);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }

.shadow { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Responsividade */
@media (max-width: 640px) {
  .btn-gradient,
  .btn-secondary {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .input-field {
    padding: 10px 12px;
    font-size: 14px;
  }
}
