/*
Theme Name: Drug Muggers Custom
Theme URI: https://drugmuggers.com/
Author: Nick Blanton
Description: Custom Drug Muggers theme replacing Genesis Block Theme and Elementor-rendered pages.
Version: 1.0.0
Text Domain: drugmuggers-custom
*/

:root {
  --dm-primary: #6DBE45;
  --dm-secondary: #ffffff;
  --dm-accent: #5B9BD5;
  --dm-text: #1f2933;
  --dm-muted: #555555;
  --dm-footer: #333333;
  --dm-panel: rgba(255, 255, 255, 0.95);
}

* {
  box-sizing: border-box;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--dm-text);
  background: #ffffff;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--dm-primary);
}

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

button,
input,
textarea {
  font: inherit;
}

.dm-site-header {
  background: var(--dm-primary);
  padding: 10px;
  text-align: center;
}

.dm-header-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.dm-brand {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.dm-brand a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: #ffffff;
  text-decoration: none;
}

.dm-brand img {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
}

.dm-brand-title {
  margin: 0;
  color: #ffffff;
  max-width: none;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.dm-tagline {
  margin: 7px 0 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.dm-main {
  min-height: 75vh;
}

.dm-hero {
  min-height: 75vh;
  background-position: center center;
  background-size: cover;
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1px 15px 50px;
}

.dm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
}

.dm-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 604px;
}

.dm-page-container {
  width: 100%;
  max-width: 754px;
  margin: 0 auto;
  padding: 1px 15px;
}

.dm-heading {
  margin: 70px 0 40px;
  color: var(--dm-text);
  text-align: center;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 600;
}

.dm-new-med-heading {
  margin: 50px 0 30px;
}

.custom-intake-form,
.dm-medication-form {
  width: 100%;
}

.custom-intake-form label,
.dm-medication-form label,
.drug-input-label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.custom-intake-form input,
.dm-medication-form input,
.drug-search-input {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  color: var(--dm-text);
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 16px;
}

.startButton,
#check-nutrients,
.dm-medication-submit {
  width: 100%;
  margin: 15px 0;
  padding: 10px;
  color: #ffffff;
  background: var(--dm-accent);
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
}

.dm-medication-submit {
  background: var(--dm-primary);
}

.drug-app-container {
  max-width: 600px;
  margin: 20px auto;
}

.help-note {
  margin-top: 0;
}

.selected-drugs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.drug-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: var(--dm-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
}

.drug-pill .remove-drug {
  margin: 0;
  padding: 0;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.suggestions-list {
  position: relative;
  z-index: 999;
  max-height: 150px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cccccc;
  list-style: none;
}

.suggestions-list li {
  padding: 8px 10px;
  cursor: pointer;
}

.suggestions-list li:hover {
  background: #f0f0f0;
}

.results-message {
  margin-top: 25px;
}

.no-results {
  color: #666666;
  font-style: italic;
}

.error-message {
  color: #cc0000;
}

.unknown-drugs {
  margin-top: 20px;
  padding: 15px;
  background: #fff7e6;
  border: 1px solid #f0c36d;
  border-radius: 6px;
}

.dm-missing-medication {
  margin-top: 30px;
  font-weight: 400;
}

.dm-results-page {
  min-height: 75vh;
  padding: 30px 15px 50px;
}

.dm-results-panel {
  width: 100%;
  background: var(--dm-panel);
}

.results-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 15px;
}

.results-left {
  flex: 1 1 60%;
  min-width: 280px;
}

.results-right {
  flex: 1 1 35%;
  text-align: center;
}

.results-full {
  flex: 1 1 100%;
  margin-top: 0;
  padding: 0;
  border-radius: 12px;
}

.results-heading {
  margin: 0 0 40px;
  text-align: left;
  font-size: 28px;
  line-height: 1.2;
}

.product-section-heading {
  margin: 0 0 40px;
  font-size: 24px;
}

.suzy-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.suzy-caption {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
}

.recommendation-note {
  margin-bottom: 20px;
  font-size: 16px;
  font-style: italic;
}

.nutrient-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
  padding: 25px 25px 1rem;
  background: #f6f7f9;
  border-bottom: 1px solid #cccccc;
  border-radius: 20px;
}

.nutrient-info {
  flex: 1 1 65%;
  padding-right: 1rem;
}

.product-recommendation {
  flex: 1 1 35%;
  text-align: center;
}

.product-recommendation strong {
  font-size: 20px;
}

.product-image {
  max-width: 100%;
  height: auto;
}

.brand {
  margin-bottom: 0;
  font-style: italic;
}

.buy-button {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 20px;
  padding: 8px 16px;
  color: #ffffff;
  background: var(--dm-primary);
  border-radius: 4px;
  text-decoration: none;
}

.nutrient-description a {
  color: var(--dm-primary);
  text-decoration: underline;
}

.readMore {
  font-weight: 600;
}

.drug-list ul {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

.drug-list li {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #bdbdbd;
}

.drug-name {
  font-weight: 600;
}

.clinical-note,
.nutrient-depletions {
  font-size: 15px;
}

.clinical-note-intro,
.nutrient-depletions-intro {
  color: #ff0000;
}

.dm-results-note {
  max-width: 1000px;
  margin: 30px auto 0;
  padding: 0 15px;
}

.dm-medication-form {
  margin-bottom: 100px;
}

.dm-form-field {
  margin-bottom: 10px;
  padding: 0 5px;
}

.dm-form-status {
  margin-top: 12px;
  font-weight: 600;
}

.dm-form-status.success {
  color: #2e7d32;
}

.dm-form-status.error {
  color: #cc0000;
}

.dm-site-footer {
  color: #ffffff;
  background: var(--dm-footer);
}

.dm-footer-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 15px 10px;
  text-align: center;
}

.dm-footer-inner p {
  margin: 0 0 20px;
}

.dm-disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid #ffffff;
}

.dm-disclaimer p {
  margin: 0;
}

.dm-copyright {
  margin-top: 20px;
  font-size: 17px;
}

body.dm-no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

@media (max-width: 1024px) {
  .dm-brand img {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 768px) {
  .results-right {
    display: none;
  }

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

  .product-image {
    width: 250px;
  }

  .nutrient-info,
  .product-recommendation {
    flex: 1 1 100%;
    padding-right: 0;
  }

  .product-recommendation {
    padding-top: 20px;
    border-top: solid #555555;
  }

  .nutrient-info {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767px) {
  .dm-brand a {
    flex-direction: row;
    gap: 12px;
  }

  .dm-brand-title {
    font-size: 28px;
  }
}
