@charset "utf-8";
/* CSS Document */
/* Custom Interactive Styles for Micronutrients Page */
    .micro-hero {
      background: linear-gradient(135deg, rgba(0, 109, 51, 0.08) 0%, rgba(227, 17, 29, 0.05) 100%), #ffffff;
      padding: 50px 0 40px;
      border-bottom: 1px solid #edf1ee;
      text-align: center;
    }
    .micro-hero h1 {
      font-family: var(--heading);
      font-size: 38px;
      color: var(--ink);
      margin: 0 0 12px;
    }
    .micro-hero h1 span {
      color: var(--green);
    }
    .micro-hero p {
      max-width: 680px;
      margin: 0 auto 24px;
      color: var(--muted);
      font-size: 16px;
    }

    /* Filter & Search Bar */
    .filter-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
      align-items: center;
      margin-bottom: 30px;
    }
    .search-box {
      position: relative;
      min-width: 280px;
      max-width: 400px;
      width: 100%;
    }
    .search-box input {
      width: 100%;
      padding: 10px 16px 10px 40px;
      border: 1px solid var(--line);
      border-radius: 25px;
      font-size: 14px;
      outline: none;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .search-box input:focus {
      border-color: var(--green);
      box-shadow: 0 0 0 3px rgba(0, 109, 51, 0.12);
    }
    .search-box svg {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      height: 18px;
      stroke: var(--muted);
      fill: none;
    }
    .filter-btn {
      padding: 8px 18px;
      border: 1px solid var(--line);
      border-radius: 20px;
      background: #fff;
      color: var(--ink);
      font-size: 13.5px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .filter-btn:hover, .filter-btn.active {
      background: var(--green);
      color: #fff;
      border-color: var(--green);
      box-shadow: 0 4px 12px rgba(0, 109, 51, 0.2);
    }

    /* Interactive Micronutrient Grid */
    .micro-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
      margin-bottom: 50px;
    }
    .micro-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 22px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }
    .micro-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 5px;
      height: 100%;
      background: var(--green);
      transition: background 0.2s ease;
    }
    .micro-card.mineral::before {
      background: var(--red);
    }
    .micro-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    }
    .card-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px;
    }
    .card-badge {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      padding: 3px 8px;
      border-radius: 4px;
      background: var(--green-soft);
      color: var(--green-deep);
    }
    .micro-card.mineral .card-badge {
      background: rgba(227, 17, 29, 0.1);
      color: var(--red-deep);
    }
    .card-symbol {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: #f4f8f5;
      color: var(--green);
      display: grid;
      place-items: center;
      font-weight: 800;
      font-size: 16px;
      border: 1px solid #dbe8e0;
    }
    .micro-card.mineral .card-symbol {
      background: #fdf2f3;
      color: var(--red);
      border-color: #f7d5d7;
    }
    .micro-card h3 {
      margin: 0 0 6px;
      font-size: 18px;
      color: var(--ink);
    }
    .micro-card .role-text {
      font-size: 13.5px;
      color: var(--muted);
      margin: 0 0 14px;
      line-height: 1.5;
    }
    .sources-list {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 16px;
    }
    .source-tag {
      font-size: 11.5px;
      background: #f0f4f2;
      color: #333;
      padding: 3px 8px;
      border-radius: 12px;
    }
    .card-footer-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 700;
      color: var(--green);
      margin-top: auto;
    }
    .micro-card.mineral .card-footer-btn {
      color: var(--red);
    }

    /* Interactive Symptom Checker Section */
    .checker-section {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 35px 28px;
      margin-bottom: 50px;
      box-shadow: var(--shadow);
    }
    .checker-header {
      text-align: center;
      margin-bottom: 25px;
    }
    .checker-header h2 {
      font-family: var(--heading);
      font-size: 28px;
      margin: 0 0 8px;
    }
    .symptom-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      margin-bottom: 25px;
    }
    .symptom-chip {
      padding: 9px 16px;
      border: 1.5px solid var(--line);
      border-radius: 25px;
      background: #fff;
      font-size: 13.5px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .symptom-chip:hover, .symptom-chip.selected {
      border-color: var(--red);
      background: rgba(227, 17, 29, 0.06);
      color: var(--red-deep);
    }
    .symptom-chip.selected::after {
      content: "✓";
      font-weight: bold;
    }
    .result-box {
      background: var(--soft);
      border: 1px dashed var(--green);
      border-radius: 8px;
      padding: 20px;
      display: none;
      animation: fadeIn 0.3s ease-in-out;
    }
    .result-box.active {
      display: block;
    }
    .result-box h4 {
      margin: 0 0 10px;
      color: var(--green-deep);
      font-size: 16px;
    }
    .result-items {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 12px;
    }

    /* Nutrient Detail Modal Overlay */
    .micro-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 105;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(10, 25, 18, 0.65);
    }
    .micro-modal-overlay.active {
      display: flex;
    }
    .micro-modal {
      background: #fff;
      border-radius: 12px;
      max-width: 620px;
      width: 100%;
      max-height: 85vh;
      overflow-y: auto;
      padding: 30px;
      position: relative;
      box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    }
    .micro-modal-close {
      position: absolute;
      top: 16px;
      right: 16px;
      border: none;
      background: #f0f0f0;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      cursor: pointer;
      display: grid;
      place-items: center;
      font-weight: bold;
    }

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

    @media (max-width: 768px) {
      .micro-hero h1 { font-size: 28px; }
      .checker-section { padding: 22px 16px; }
      .search-box { max-width: 100%; }
    }
