/* Content 
.meaning-content,
.related-content,
.etymology-content {
  height: 50px;
  overflow-y: auto;
  padding: 8px;
  font-size: 14px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
}
*/

.etymology,
.related,
.meaning {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
  color: #4a5568;
}

.meaning-content,
.related-content,
.etymology-content {
  max-height: 200px;     /* Limit the height */
  overflow-y: auto;      /* Scroll if needed */
}



/* Button Container */
.word-actions {
      display: flex;
      gap: 20px;
      font-size: 12px;
      color: #333;
      margin-top: 0rem;
    }




.save-btn,
.meaning-btn,
.related-btn,
.etymology-btn {
    display: flex;
    background: none;
    border: none;
    color: #283d53;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    align-items: center;  /* vertical centering */
    gap: 1px;             /* spacing between Note and the icon */
}

    .save-btn:hover,
    .meaning-btn:hover .meaning-btn-text,
    .related-btn:hover .related-btn-text,
    .etymology-btn:hover .etymology-btn-text{
      text-decoration: underline;
      color: rgb(41, 164, 213);
    }

    .save-btn:focus,
    .meaning-btn:focus,
    .related-btn:focus,
    .etymology-btn:focus {
      outline: none;
    }


/* Chevron Icon Styles */
.chevron-icon {
  font-size: 9px;
  transition: transform 0.2s ease;
}

[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}


/* Style for "Saved" state */
.saved {
  color: rgb(10, 175, 10); /* green */
  cursor: default;
  text-decoration: none;
}

.saved:hover {
  text-decoration: none;
  color: goldenrod;
}


/* meaning ****************** */

.meaning-item {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.meaning-item:hover {
    background-color: #f1f1f1;
}

.definition {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #333;
}

.def-number {
    font-weight: bold;
    color: #4a90e2;
    margin-right: 6px;
}

.examples {
    font-size: 14px;
    color: #555;
}

.ex-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c3e50;
}

.examples ul {
    list-style: disc inside;
    margin: 0;
    padding-left: 16px;
}

.examples li {
    margin-bottom: 4px;
}

.divider {
    height: 1px;
    background-color: #ddd;
    margin: 16px 0;
}

.no-meaning {
    font-style: italic;
    color: #999;
    padding: 12px;
    background-color: #f0f0f0;
    border-radius: 8px;
}




/* Container for the related forms */
.related-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 0.6rem;
    line-height: 1.6;
    color: #333;
}

/* Style for the related words list */
.related-content {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Individual related word items */
.related-word {
    background-color: #f0f6ff;
    color: #6b7280; /*1a73e8*/
    padding: 0.2rem 0.4rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #d2e3fc;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Hover effect for related words */
.related-word:hover {
    background-color: #e1ecff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Title for the related forms section
.related-content::before {
    content: "Related Forms:";
    display: block;
    width: 100%;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
*/



/* Etymology container */
.etymology-content {
    font-family: "Georgia", "Times New Roman", serif;
    color: #333;
    line-height: 1.7;
    padding: 1rem;
    background-color: #f9f9f9;
    /*border-left: 4px solid #197cc3;*/
    border-radius: 0 4px 4px 0;
}

/* Proto-language references */
.etymology-content [data-proto] {
    font-style: italic;
    color: #5e3a5e;
    font-weight: 500;
}

/* Foreign language terms */
.etymology-content [data-foreign] {
    font-style: italic;
    color: #2a5885;
}

/* Glosses/translations */
.etymology-content [data-gloss] {
    color: #6d4c41;
    quotes: "“" "”";
}

/* Reference numbers */
.etymology-content [data-ref] {
    vertical-align: super;
    font-size: 0.7em;
    color: #666;
}

/* Compare sections */
.etymology-content [data-compare] {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.9em;
    color: #555;
    border-top: 1px dashed #ddd;
    padding-top: 0.8rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .etymology-content {
        font-size: 0.95rem;
        padding: 0.8rem;
        line-height: 1.6;
    }
}