/* ===========================================
   SEMEC Porto Velho - Estilos Base
   =========================================== */

:root {
  --pv-blue-900: #1e3a5f;
  --pv-blue-700: #26476f;
  --pv-yellow-500: #f2c94c;
  --pv-green-600: #70b643;
  --pv-gray-100: #f5f5f5;
  --pv-gray-200: #e5e7eb;
}

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

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: var(--pv-gray-100);
  min-height: 100vh;
}

/* Destaque de busca estilo Ctrl+F */
.site-search-highlight {
  background-color: #fff3a4;
  color: inherit;
  padding: 0 0.15em;
  border-radius: 0.2rem;
  box-shadow: 0 0 0 2px rgba(255, 235, 59, 0.35);
}

/* Estilos do conteúdo principal */
.main-content {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Step Indicator */
.step-indicator {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pv-blue-900);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
}

.step.active {
  background: var(--pv-green-600);
  transform: scale(1.2);
}

/* Sections */
.section {
  background: white;
  margin: 30px 0;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.section-title {
  color: var(--pv-blue-900);
  font-size: 1.8em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid var(--pv-blue-700);
  padding-bottom: 10px;
}

.icon {
  font-size: 2em;
  margin-right: 15px;
}

/* Calculation Box */
.calculation-box {
  background: linear-gradient(135deg, var(--pv-blue-900) 0%, var(--pv-blue-700) 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  margin: 20px 0;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Factor Grid */
.factor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.factor-card {
  background: linear-gradient(135deg, var(--pv-blue-700) 0%, var(--pv-blue-900) 100%);
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

.factor-card:hover {
  transform: scale(1.05);
}

.factor-card h4 {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.factor-value {
  font-size: 2em;
  font-weight: bold;
  margin: 10px 0;
}

/* Example House */
.example-house {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  padding: 25px;
  border-radius: 15px;
  border-left: 5px solid var(--pv-yellow-500);
  margin: 20px 0;
}

.house-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 15px 0;
}

.info-item {
  background: rgba(255, 255, 255, 0.8);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.info-item strong {
  color: var(--pv-blue-900);
  display: block;
  font-size: 1.1em;
}

/* Formula */
.formula-simple {
  background: #ffffff !important;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin: 15px 0;
  font-family: 'Courier New', monospace;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--pv-blue-900) !important;
  border-left: 4px solid var(--pv-green-600);
  border: 2px solid var(--pv-green-600);
}

/* Progress Bar */
.progress-bar {
  background: #ecf0f1;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}

.progress-fill {
  background: linear-gradient(90deg, var(--pv-green-600), #00cec9);
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  transition: width 2s ease;
}

/* Final Result */
.final-result {
  background: linear-gradient(135deg, var(--pv-green-600) 0%, #00cec9 100%);
  color: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  font-size: 1.5em;
  margin: 30px 0;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Tip Box */
.tip-box {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  border-left: 4px solid var(--pv-yellow-500);
}

.tip-box::before {
  content: "💡 ";
  font-size: 1.5em;
}

/* Buttons */
.interactive-button {
  background: linear-gradient(135deg, var(--pv-blue-900) 0%, var(--pv-blue-700) 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px;
  font-family: 'Poppins', sans-serif;
}

.interactive-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.interactive-button-primary {
  background: linear-gradient(135deg, var(--pv-green-600) 0%, #00cec9 100%) !important;
  color: white !important;
  border: none !important;
  padding: 18px 40px !important;
  border-radius: 30px !important;
  font-size: 1.3em !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin: 10px 20px !important;
  box-shadow: 0 8px 25px rgba(112, 182, 67, 0.3) !important;
  animation: pulse 2s infinite !important;
  font-family: 'Poppins', sans-serif !important;
}

.interactive-button-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 35px rgba(112, 182, 67, 0.4) !important;
}

.interactive-button-secondary {
  background: rgba(30, 58, 95, 0.1) !important;
  color: var(--pv-blue-900) !important;
  border: 2px solid var(--pv-blue-900) !important;
  padding: 12px 25px !important;
  border-radius: 20px !important;
  font-size: 1em !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin: 10px !important;
  font-family: 'Poppins', sans-serif !important;
}

.interactive-button-secondary:hover {
  background: rgba(30, 58, 95, 0.2) !important;
  transform: translateY(-1px) !important;
}

@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(112, 182, 67, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(112, 182, 67, 0.5);
  }
  100% {
    box-shadow: 0 8px 25px rgba(112, 182, 67, 0.3);
  }
}

/* Hidden class */
.hidden {
  display: none !important;
}

/* Print styles */
@media print {
  .print-block {
    display: block !important;
  }
  
  header, footer, .step-indicator {
    display: none !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .section {
    padding: 20px;
  }
  
  .section-title {
    font-size: 1.4em;
  }
  
  .factor-grid {
    grid-template-columns: 1fr;
  }
  
  .house-info {
    grid-template-columns: 1fr;
  }
}
