/*
Theme Name: Astra Child
Template: astra
Version: 1.2.0
*/

/* Import Astra parent theme */
@import url("../astra/style.css");

/* ================================================
   TOOLTIP STYLING
   ================================================ */
#tt {
  transition: opacity 0.25s ease-in-out, transform 0.25s ease;
  transform: translateY(4px);
  opacity: 0;
  z-index: 1500;
}

#tt.active {
  transform: translateY(0);
  opacity: 1;
}

#ttcont {
  background: #1e1e1e !important;
  color: #ffffff !important;
  font-family: "Helvetica Neue", sans-serif !important;
  font-size: 1.1rem !important;
  line-height: 1.6 !important;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  padding: 18px 20px;
}

#ttcont::first-line {
  color: #ff9e88;
  font-weight: bold;
  font-size: 1.3rem !important;
}

/* ================================================
   GLOSSARY SINGLE TERM PAGE
   ================================================ */
.glossary-term-page {
  max-width: 900px;
  margin: 2em auto;
  padding: 1.8em;
  background: #1e1e1e;
  color: #000000;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.glossary-term-page h1.entry-title {
  color: #955a72;
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 0.8em;

}

.glossary-term-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.glossary-term-content a {
  color: #e28986;
  text-decoration: none;
}

.glossary-term-content a:hover {
  color: #dddddd;
  text-decoration: underline;
}

.glossary-category-page footer,
.glossary-tag-page footer,
.entry-footer{
padding: 1em;
}

/* Back to Glossary link */
.back-to-glossary {
  display: inline-block;
  margin-top: 2em;
  color: #e28986;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.back-to-glossary:hover {
  color: #ffffff;
}

/* ================================================
   CATEGORY + TAG ARCHIVE PAGES
   ================================================ */
.glossary-category-block,
.glossary-category-page,
.glossary-tag-page {
  max-width: 900px;
  margin: 2em auto;
  padding: 1.8em;
  background: #1e1e1e;
  color: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* Titles */
.category-title,
.tag-title {
  font-size: 2.3rem;
  margin-bottom: 0.5em;
  line-height: 1.2;
  padding-left: 1.8em;
  padding-right: 1.8em;
  padding-top: 0.8em;
}
.category-title { color: #955a72; }
.tag-title { color: #955a72; }

/* Descriptions */
.category-description,
.tag-description {
  font-style: italic;
  color: #aaa;
  margin-bottom: 2em;

}

/* Term lists (shared between cat/tag pages) */
.glossary-term-list {
  list-style: none;
  padding: 0;
  margin: 0;
    padding: 1.8em;
}

.glossary-term-item {
  margin-bottom: 1.2em;
  padding: 0.8em 1em;
  border-left: 3px solid #ff9e88;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.glossary-term-item:hover {
  background: rgba(255, 158, 136, 0.08);
}

.glossary-term-item .term-link {
  color: #ffcce5;
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
}

.glossary-term-item .term-link:hover {
  color: #ffffff;
}

.term-excerpt {
  margin-top: 0.3em;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Pagination */
.pagination {
  margin-top: 2em;
  text-align: center;
}
.pagination a,
.pagination span {
  color: #ffcc66;
  padding: 0.4em 0.7em;
  margin: 0 3px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.pagination a:hover {
  background: rgba(255, 204, 102, 0.15);
  color: #ffffff;
}

/* ================================================
   COPYRIGHT FOOTER
   ================================================ */
.glossary-footer {
  margin-top: 3em;
    padding: 1.8em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
  text-align: center;
  line-height: 1.6;
}

.glossary-footer a {
  color: #e2898c;
  text-decoration: none;
 
}

.glossary-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ================================================
   RESPONSIVE TWEAKS
   ================================================ */
@media (max-width: 768px) {
  .glossary-category-page,
  .glossary-tag-page,
  .glossary-term-page {
    padding: 1.2em;
  }

  .category-title,
  .tag-title,
  .glossary-term-page h1.entry-title {
    font-size: 1.8rem;
  }

  .glossary-term-item .term-link {
    font-size: 1.1rem;
  }
}


.glossary-category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2em;
}

.glossary-category-box {
  background: #2c2c2c;
  color: #fff;
  padding: 1.5em;
  border-radius: 10px;
  text-align: center;
  width: 200px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.2s, transform 0.2s;
}

.glossary-category-box:hover {
  background: #444;
  transform: translateY(-4px);
}

.category-box-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.3em;
  color: #ff9e88;
}

.category-box-count {
  font-size: 0.95rem;
  color: #ccc;
}


.glossary-search-form {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  padding: 1em 0;
}

.glossary-search-form .search-field {
  padding: 0.4em 0.8em;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
}

.glossary-search-form .search-submit {
  background: #e2898c;
  border: none;
  padding: 0.4em 1em;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.glossary-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1em;
}

.glossary-tag-box {
  background: #2a2a2a;
  color: #e2898c;
  padding: 0.8em 1.2em;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
  transition: background 0.2s, color 0.2s;
}

.glossary-tag-box:hover {
  background: #e2898c;
  color: #1e1e1e;
}

.tag-count {
  font-weight: normal;
  margin-left: 5px;
  color: #ccc;
}

.related-work-box {
  margin-top: 2em;
  padding: 1.2em;
  background: #2a2a2a;
  border-left: 4px solid #ff9e88;
  border-radius: 6px;
  color: #fff;
}

.related-work-box h3 {
  color: #ffd700;
  margin-bottom: 0.4em;
}

.related-button {
  display: inline-block;
  margin-top: 0.8em;
  padding: 0.5em 1em;
  background-color: #ffd700;
  color: #1e1e1e;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}
.related-button:hover {
  background-color: #fff;
  color: #000;
}

.glossary-intro a{
color: #ffffff;
}


.glossary-card {
  display: block;
  padding: 1rem;
  border-left: 3px solid #d084a4; /* your current accent color */
  background: #121212;
  margin-bottom: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.glossary-card:hover {
  background: #1a1a1a;
}

.term-title {
  font-weight: 600;
  font-size: 1.25rem;
  color: #e2a9c6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tap-icon {
  color: #aaa;
  font-size: 1.2rem;
  margin-left: 0.5rem;
}


.mobile-hint {
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 1rem;
  padding-left: 1.8em;
}