.vh-glossary {
  max-width: 1000px;
  margin: 0 auto;
}

/* hint sus */
.glossary-hint {
  text-align: center;
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

/* alfabet */
.glossary-letters {
  text-align: center;
  margin-bottom: 30px;
}

.glossary-letters a {
  margin: 0 6px;
  text-decoration: none;
  color: #003399;
  font-weight: 500;
  transition: all 0.2s ease;
}

.glossary-letters a:hover {
  color: #000;
}

/* grup */
.glossary-group {
  margin-bottom: 50px;
}

.glossary-group h2 {
  font-size: 22px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

/* grid */
.glossary-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 30px;
  margin-top: 15px;
}

/* 🔥 ITEM = CARD INTERACTIV */
.glossary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover clar */
.glossary-item:hover {
  background: #f5f8ff;
  border-color: #1e73be;
  transform: translateY(-2px);
}

/* termen */
.glossary-item .term {
  color: #003399;
  font-weight: 500;
}

/* zona dreapta (icon + hint) */
.glossary-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #1e73be;
  opacity: 0.8;
}

/* icon */
.glossary-meta .icon {
  font-size: 13px;
}

/* hint text */
.glossary-meta .hint {
  transition: all 0.2s ease;
}

/* hover pe hint */
.glossary-item:hover .hint {
  text-decoration: underline;
}

/* responsive */
@media (max-width: 768px) {
  .glossary-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .glossary-meta .hint {
    display: none;
  }
}

@media (max-width: 480px) {
  .glossary-columns {
    grid-template-columns: 1fr;
  }
}

/* POPUP */
#vh-glossary-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
}

.vh-popup-content {
  background: white;
  padding: 25px;
  max-width: 500px;
  border-radius: 12px;
  position: relative;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

.vh-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 18px;
}

/* 🔥 highlight în text */
.glossary-term {
  background: #fff3cd;
  padding: 2px 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.glossary-term:hover {
  background: #ffe8a1;
}