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

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


:root{
	--btn: #503b39;
    --btn-hover: #4D3C3A;
    --box: #F0E7D8;
}




/* ================================================
   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);
  border: 1px solid #503b39;
  padding: 18px 20px;
}

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

#openShareModal{
background-color: #503b39;
padding: 10px;
}
#openShareModal:hover{
background-color: #422c2b;
}

#shareModal li{
padding-bottom: 10px;
padding-top: 10px;
}

#shareModal button {
background-color: #503b39;
}
#shareModal button:hover {
color: #503b39;
background-color: #CCCCCC;
}


/* ================================================
   GLOSSARY SINGLE TERM PAGE
   ================================================ */
.glossary-term-page {
  max-width: 1100px;
  margin: 0.5em auto!important;
padding: 10px;
  padding-top: 0 !important;
  /*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: #422c2b;
  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: underline;
}

.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;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  color: #e28986;
  padding: 14px;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}
.back-to-glossary:hover {
  color: #ffffff;
}

/* ================================================
   CATEGORY + TAG ARCHIVE PAGES
   ================================================ */
   
   .site-main {
    padding-left: 1.8em!important;
  padding-right: 1.8em!important;
   }
   
.glossary-category-block,
.glossary-category-page,
.glossary-tag-page {
  max-width: 1100px;  
  margin: 0.5em auto!important;


  padding-top: 0 !important;
 /* background: #1e1e1e;*/
  color: #f5f5f5;
  border-radius: 12px;
 /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);*/
}

.entry-header{
display:flex;
justify-content: space-between;
align-items: center;
}

.category-header,
.category-glossary-list
{

}
/* Titles */
.category-title,
.tag-title {
  font-size: 2.3rem;
  margin-bottom: 0.5em;
  line-height: 1.2;

  padding-top: 0.8em;
}

.category-title ,
.tag-title { color: #432d2c; }

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

}

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

.glossary-term-item {
  margin-bottom: 1.2em;
  padding: 0.8em 1em;
  border-left: 3px solid #321a1a;
  border-radius: 4px;
  transition: background 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

.glossary-term-item .term-link {
  color: #786f5e;
  font-weight: 600;
  font-size: 1.25rem;
  
}

.glossary-term-item .term-link:hover {
  color: #786f5e;
  font-weight:bold;
}


.term-excerpt {
  margin-top: 0.3em;
  color: #7a705f;
  font-size: 0.95rem;
  line-height: 1.5;
  text-decoration: none!important;
}

/* 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: #000;
  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: .5em!important;
  }

  .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: #F0E7D8;
  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: #eee9ee;
  transform: translateY(-4px);
}

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

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


.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: #F0E7D8;
  color: #321a1a;
  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 {
  font-weight: 800;
  color: #1e1e1e;
}

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

.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{
	border: 1px solid #000;
    background-color: var(--box);
    border-radius: 10px;
    padding: 10px;
    max-width: 40vw;
}

.glossary-intro h2{
	text-align:center;
}

.glossary-intro li,a{
	color: var(--e-global-color-secondary);
    padding-bottom: 6px;
}


.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: #7a6f60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: underline;
}

.term-title :hover{
font-weight: 900;
}

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


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

.glossary-like-btn{
padding: 8px;
background-color: var(--btn);
}
.glossary-like-btn:hover{ 
padding: 10px;
background-color: var(--btn-hover)!important;
}