
/* Curry Menu Plugin - Styles (moved from inline) */

.menu-filter {
  display: flex;
  width: 100%;
  border: 1px solid #ddd;
}

.filter-cell {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-right: 1px solid #ddd;
  font-size: 16px;
  background: #f9f8f5;
}

.filter-cell:last-child {
  border-right: none;
}

.filter-text {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
}

.filter-location select {
  padding:10px 14px;
  font-size:1rem;
  border:2px solid #ddd;
  border-radius:8px;
  min-width:320px;
  outline:none;
  transition:0.3s;
}

.spacer {
  flex: 1;
}

.dietary-filter {
  background: #e63946;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
  border-right: none !important;
}

.dietary-filter:hover {
  background: #d62839;
}

.dietary-filter a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Popup modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

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

.modal-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:15px;
}

.modal-header h3 {
  margin:0;
  font-size:1.2rem;
}

.close-filter-allergen {
  cursor:pointer;
  font-size:1.4rem;
  font-weight:bold;
  border:none;
  background:none!important;
  color: black!important;
}

#small-text {
  display:block;
  margin:12px 0;
  color:red;
  font-size:14px;
}

.filter-allergens-group {
  display:flex;
  flex-wrap:wrap;
  gap:15px;
}

.filter-allergens-checkbox {
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  padding:6px 12px;
  border:1px solid #ddd;
  border-radius:8px;
  background:#fafafa;
  transition:0.3s;
}

.filter-allergens-checkbox:hover {
  background:#f0f7ff;
  border-color:red;
  transform:translateY(-2px);
}

.filter-allergens-checkbox input {
  accent-color:red;
  transform:scale(1.2);
}

/* Results styling */
#curry-menu-results { margin-top:18px; }
.cmp-results-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:18px; }
.cmp-item { padding:14px; border:1px solid #eee; border-radius:10px; background:#fff; box-shadow:0 1px 6px rgba(0,0,0,0.03); }
.cmp-item-title { margin:0 0 8px 0; font-size:1.05rem; }
.cmp-item-excerpt { font-size:0.95rem; color:#555; margin-bottom:8px; }
.cmp-item-allergens { font-size:0.85rem; color:#777; }

.cmp-loading { color:#777; }
.cmp-no-results { color:#e63946; font-weight:600; }

/* Responsive */
@media(max-width:700px){
  .menu-filter {flex-direction:column;align-items:stretch;}
  .filter-location select,
  .dietary-filter a {width:100%;justify-content:center;}

  .filter-cell {
    border: 1px solid #ddd;
  }

  .spacer {
    display: none;
  }
}
