/* ===== CSS VARIABLES ===== */
:root {
  --primary-blue: #1976d2;
  --secondary-blue: #2776f4;
  --accent-red: #de2639;
  --danger-red: #dc3545;
  --success-green: #28a745;
  --border-radius-sm: 0.25rem;
  --border-radius-md: 8px;
  --border-radius-lg: 15px;
  --border-radius-full: 50%;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.6s ease;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-gradient {
  background-color: #1d70f4;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 3rem);
  line-height: 1.2;
}

/* ===== NAVIGATION ===== */
.navbar-brand-circle {
  width: 36px;
  height: 36px;
  background-color: var(--primary-blue);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 24px;
}

/* ===== BUTTONS ===== */
.btn {
  color: var(--accent-red);
  font-weight: 700;
  border-color: var(--secondary-blue);
}

.vote-button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--border-radius-md);
  transition: transform var(--transition-fast);
}

.vote-button:hover {
  transform: translateY(-2px);
}

/* ===== STATISTICS ICONS ===== */
.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
}

.stat-icon.blue { background-color: #dbeafe; color: #3b82f6; }
.stat-icon.red { background-color: #fee2e2; color: #ef4444; }
.stat-icon.purple { background-color: #f3e8ff; color: #8b5cf6; }
.stat-icon.orange { background-color: #fed7aa; color: #f97316; }

/* ===== PROMOTIONAL TEXT ===== */
.promotional-text {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 1.2rem;
}

.promotional-text-mobile {
  color: var(--danger-red);
  font-weight: 700;
  font-size: 0.95rem;
}

/* ===== FORM ELEMENTS ===== */
.radio-options {
  display: flex;
  align-items: safe;
  margin-top: 15px; 
}

.form-check-inline {
  margin-right: 30px;
  padding: 8px 15px;
  border-radius: 50px;
  transition: background-color var(--transition-fast);
}

.form-check-inline:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

.form-check-inline label {
  cursor: pointer;
  font-weight: 500;
}

.form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-right: 8px;
  cursor: pointer;
}

/* ===== PROGRESS BARS ===== */
.progress-custom {
  height: 25px;
  border-radius: var(--border-radius-lg);
  margin: 10px 0;
  background-color: #e9ecef;
  display: flex;
  overflow: hidden;
}

.custom-progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  text-align: center;
  white-space: nowrap;
  font-weight: bold;
  font-size: 0.9rem;
  transition: width var(--transition-medium);
}

.custom-progress-yes { background-color: var(--success-green); }
.custom-progress-no { background-color: var(--danger-red); }

/* ===== RESULTS & STATISTICS ===== */
.result-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  flex-wrap: nowrap;
  gap: 15px;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 0;
}

/* ===== ANIMATIONS ===== */
.question-placeholder {
  height: 1rem;
  background-color: #e5e7eb;
  border-radius: var(--border-radius-sm);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.question-placeholder.w-75 { width: 75%; }
.question-placeholder.w-50 { width: 50%; }

/* ===== UTILITY CLASSES ===== */
.large-text {
  font-size: 24px;
}

/* ===== MODAL OPTIMIZATIONS ===== */
#resultsModal .modal-body { padding: 0.75rem; }
#resultsModal .result-card { padding: 10px; margin-bottom: 10px; }
#resultsModal .question-title { margin-bottom: 5px; font-size: 0.9rem; }
#resultsModal .result-stats { margin-top: 5px; margin-bottom: 5px; }
#resultsModal .stat-number { font-size: 1.1rem; }
#resultsModal .stat-label { font-size: 0.75rem; margin-top: -5px; }
#resultsModal .progress-custom { height: 18px; margin: 5px 0; }
#resultsModal .custom-progress-bar { font-size: 0.75rem; }
#resultsModal .text-center.mt-4 { margin-top: 10px; }

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 576px) {
  .radio-options {
    flex-direction: row;
    justify-content: space-around;
  }

  .form-check-inline {
    margin-right: 10px;
    padding: 6px 10px;
  }

  .result-stats {
    flex-direction: row;
    gap: 10px;
  }

  .stat-item {
    flex: 1;
    min-width: 0;
  }

  .stat-number { font-size: 1.2rem; }
  .stat-label { font-size: 0.8rem; }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
  }
  
  .vote-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 2rem;
  }
  
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1200px) {
  .promotional-text {
    font-size: 1.25rem;
  }
}