/* ==========================================================
   How Cooked Am I? Calculator — Styling & Aesthetic Design
   ========================================================== */

.cooked-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 60px 16px;
}

.cooked-header {
  text-align: center;
  margin-bottom: 32px;
}

.cooked-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 69, 0, 0.12);
  border: 1px solid rgba(255, 69, 0, 0.3);
  color: #ff4500;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.cooked-title {
  font-size: 36px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}

.cooked-subtitle {
  font-size: 16px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Card Container */
.cooked-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 840px) {
  .cooked-grid {
    grid-template-columns: 1fr;
  }
}

.cooked-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cooked-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
}

/* Form Controls */
.cooked-form-group {
  margin-bottom: 18px;
}

.cooked-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.cooked-label-val {
  color: #ff4500;
  font-weight: 800;
}

.cooked-input-range {
  width: 100%;
  accent-color: #ff4500;
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  cursor: pointer;
}

.cooked-input-text,
.cooked-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cooked-input-text:focus,
.cooked-select:focus {
  outline: none;
  border-color: #ff4500;
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.15);
  background: #ffffff;
}

.cooked-inline-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Action Buttons */
.cooked-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.cooked-btn-primary {
  flex: 2;
  background: linear-gradient(135deg, #ff4500 0%, #ff1d58 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 20px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 69, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cooked-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 69, 0, 0.4);
}

.cooked-btn-secondary {
  flex: 1;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cooked-btn-secondary:hover {
  background: #e2e8f0;
}

/* Result Card */
.cooked-result-card {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #1e293b;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  display: none;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gauge Arc */
.cooked-gauge-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 16px auto;
}

.cooked-svg-gauge {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.cooked-svg-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 12;
}

.cooked-svg-fill {
  fill: none;
  stroke: #ff4500;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 0.8s ease-out, stroke 0.3s ease;
}

.cooked-gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.cooked-score-num {
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -1px;
}

.cooked-score-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Result Level Badge */
.cooked-badge {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid currentColor;
  margin-bottom: 16px;
}

.cooked-quote {
  font-size: 17px;
  font-style: italic;
  color: #e2e8f0;
  margin-bottom: 24px;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 4px solid #ff4500;
}

/* Status Breakdown Tags */
.status-tags-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}

.status-tag {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tag-success {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.diagnosis-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #cbd5e1;
  text-align: left;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Share Section */
.share-section {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: left;
}

.share-title {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-textarea {
  width: 100%;
  height: 110px;
  background: #020617;
  border: 1px solid #334155;
  border-radius: 12px;
  color: #e2e8f0;
  font-family: monospace;
  font-size: 13px;
  padding: 12px;
  resize: none;
  margin-bottom: 14px;
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

@media (max-width: 600px) {
  .share-buttons-grid {
    grid-template-columns: 1fr;
  }
}

.btn-share-wa {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.btn-share-wa:hover {
  opacity: 0.9;
}

.btn-share-copy {
  background: #3b82f6;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.btn-share-copy:hover {
  opacity: 0.9;
}

.btn-share-img {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.btn-share-img:hover {
  opacity: 0.9;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #334155;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}
