/* ========================================
   COMPONENTS CSS
   Extracted from template files
   ======================================== */


   @media (max-width: 575px) {
    .hide-xs{display: none;}
   }
   @media (max-width: 767px) {
    .hide-sm{display: none;}
   }
   @media (max-width: 991px) {
    .hide-md{display: none;}
   }
   @media (max-width: 1199px) {
    .hide-lg{display: none;}
   }



/* Table of Contents Styles */
.docs-toc {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 0 .5rem 0 0;
  background: #f8f9fa;
  border-radius: 8px;
  margin-left: 20px;
  flex-shrink: 0;
  width: 220px;
}




/* Tabs Styles */
.tabs-container, 
.blog-articles-container {
  display: flex;
  flex-direction: column;
  position: relative;
}

.tabs-container {
  opacity: .5;
  transition: all 0.2s ease;
}

.tabs-container:hover {
  opacity: 1;
}

/* Tab styles removed - using FAB instead */

.toc-container h4,
.blog-articles-container h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 8px;
}

.toc-list,
.blog-articles-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0 1px;
  border-left: 1px solid #e9ecef;
}
.blog-articles-list {
  border-left:initial;
}

.toc-item,
.blog-article-item {
  margin: 0 0 0 -2px;
  padding: 0;
}

.blog-article-item {
  margin: 0 0 0 -1px;
}

.toc-link,
.blog-article-link {
  display: block;
  padding: 8px 0;
  color: #6c757d;
  color: #333;
  text-decoration: none;
  font-size: .77rem;
  line-height: 1.4;
  font-weight: 300;
  border-left: 3px solid transparent;
  padding-left: 12px;
  transition: all 0.2s ease;
}

.blog-article-link {
  padding: 10px;
  padding-left: 12px;
  transition: all 0.2s ease;
  border-radius: 3px;
}

.toc-link:hover,
.blog-article-link:hover {
  color: #555;
  color: #222;
  border-left-color: #999;
  background-color: rgba(0, 0, 0, 0.05);
}

.blog-article-link:hover {
  border-left-color:transparent;
}

.toc-link.active,
.blog-article-item.active .blog-article-link {
  color: #f25;
  border-left-color: #f25;
  /* background-color: rgba(255, 34, 85, 0.05); */
  /* font-weight: 500; */
}


.toc-level-h1 a{ padding-left: 0px; }
.toc-level-h2 a{ padding-left: 12px;  font-weight: 600; color: #555;}
.toc-level-h3 a{ padding-left: 24px;font-weight: 500;}
.toc-level-h4 a{ padding-left: 36px; }
.toc-level-h5 a{ padding-left: 48px; }
.toc-level-h6 a{ padding-left: 60px; }


.blog-level-1 a{ padding-left: 12px; font-weight: 500; color: #333;}
.blog-level-2 a{ padding-left: 24px;  font-weight: 300; color: #555; }

.blog-level-3 a{ padding-left: 36px; font-weight: 300;}
.blog-level-4 a{ padding-left: 48px; }
.blog-level-5 a{ padding-left: 60px; }
.blog-level-6 a{ padding-left: 72px; }


.blog-articles-container h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 8px;
}


/* TOC Title Styles */
.toc-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

/* Floating Action Button Styles */
.articles-fab-wrapper {
  position: sticky;
  bottom: 85px;
  z-index: 990;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin: 0 15px 20px 0;
  pointer-events: none;
}
.articles-fab-wrapper.has-ux-audit-fab {
  bottom: 20px;
}

.articles-fab {
  position: relative;
  /*width: 56px;*/
  /*height: 56px;*/
  background: #f25;
  color: #fff;
  border: none;
  border-radius: 50rem;
  box-shadow: 0 4px 12px rgba(255, 34, 85, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  transform: scale(0.8);
  animation: fabEntrance 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
  margin: 0;
  gap: .5rem;
  padding: .8rem 1.3rem;
  font-family: 'poppins';
  font-weight: 500;
  font-size: .95rem;
  pointer-events: auto;
}

.articles-fab:hover {
  background: #e01e5a;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 34, 85, 0.4);
}

.articles-fab:active {
  transform: scale(0.95);
}

.articles-fab svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.articles-fab:hover svg {
  transform: rotate(5deg);
}

.articles-fab .fab-text {
  white-space: nowrap;
}

@keyframes fabEntrance {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Hide FAB when side drawer is open */
.side-drawer.active ~ .articles-fab {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* Responsive FAB - Icon only below 768px */
@media (max-width: 768px) {
  .articles-fab-wrapper {
    bottom: 80px;
    margin: 0 20px 20px 0;
  }
  
  .articles-fab {
    /* width: 56px; */
    height: 56px;
    padding: 16px;
    justify-content: center;
  }
  
  .articles-fab .fab-text {
    display: none;
  }
  
  .articles-fab svg {
    width: 24px;
    height: 24px;
  }
}

/* Side Drawer Styles */
.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.side-drawer.active {
  visibility: visible;
  opacity: 1;
}

.side-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.side-drawer.active .side-drawer-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

.side-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0);
  transform: translateX(calc(100% + 2rem));
  opacity: 0;
  transition: all 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.side-drawer.active .side-drawer-content {
  transform: translateX(0);
  opacity: 1;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
}

.side-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(-2rem);
  transition: all 0.3s ease-in-out 0.1s;
  height: 4rem;
}

.side-drawer.active .side-drawer-header {
  opacity: 1;
  transform: translateY(0);
  height: 4rem;
}

.side-drawer-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.side-drawer-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 100px;
  color: #6c757d;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(0deg);
}

.side-drawer-close:hover {
  /* background-color: rgba(0, 0, 0, 0.1); */
  color: #333;
  transform: rotate(90deg);
}

.side-drawer-close:active {
  transform: rotate(90deg) scale(0.95);
}

.side-drawer-close svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.side-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 24px 20px;
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.3s ease-in-out 0.2s;
}

.side-drawer.active .side-drawer-body {
  opacity: 1;
  transform: translateY(0); overflow-y: scroll;
}

/* Side Drawer Accordion */
.side-drawer-accordion {
  margin-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
  /*overflow: scroll;*/

}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  transition: color 0.3s ease-in-out;
  text-shadow: initial;
  margin: 0 0 10px;
}

.accordion-trigger:hover {
  color: #fff;
}

.accordion-title {
  flex: 1;
  text-align: left;
}

.accordion-icon {
  transition: transform 0.3s ease-in-out;
  flex-shrink: 0;
}

.accordion-trigger.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
  padding: 0;
}

.accordion-content.active {
  max-height: 1000px; /* Adjust based on content */
  padding: 20px 0;
  border-top: 1px solid #eee;
}

.side-drawer-filters {
  margin: 0;
  padding: 0;
}

.side-drawer-filters .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.side-drawer-filters .filter-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #6c757d;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.side-drawer-filters .filter-btn:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.side-drawer-filters .filter-btn.active {
  background: #f25;
  color: #fff;
  border-color: #f25;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(255, 34, 85, 0.3);
}

/* Main Articles Panel Filters */
.main-articles-filters {
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e9ecef;
}

.main-articles-filters .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.main-articles-filters .filter-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #6c757d;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

.main-articles-filters .filter-btn:hover {
  background: #e9ecef;
  color: #495057;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

.main-articles-filters .filter-btn.active {
  background: #f25;
  color: #fff;
  border-color: #f25;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(255, 34, 85, 0.3);
}

.side-drawer-body .blog-articles-container {
  margin: 0;
}

.side-drawer-body .blog-articles-list {
  border-left: none;
  margin: 0;
}

.side-drawer-body .blog-article-item {
  margin: 0 0 4px 0;
  opacity: 0;
  transform: translateY(1rem);
  animation: slideInUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.side-drawer-body .blog-article-link {
  padding: 12px 16px;
  border-radius: 6px;
  border-left: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(0);
}

.side-drawer-body .blog-article-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-left: none;
  transform: translateX(4px);
}

.side-drawer-body .blog-article-item.active .blog-article-link {
  background-color: rgba(255, 34, 85, 0.1);
  color: #f25;
  border-left: none;
  transform: translateX(0);
}

/* Staggered animation delays for side drawer items */
.side-drawer-body .blog-article-item:nth-child(1) { animation-delay: 0.1s; }
.side-drawer-body .blog-article-item:nth-child(2) { animation-delay: 0.15s; }
.side-drawer-body .blog-article-item:nth-child(3) { animation-delay: 0.2s; }
.side-drawer-body .blog-article-item:nth-child(4) { animation-delay: 0.25s; }
.side-drawer-body .blog-article-item:nth-child(5) { animation-delay: 0.3s; }
.side-drawer-body .blog-article-item:nth-child(n+6) { animation-delay: 0.35s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Blog article item visibility classes */
.blog-article-item {
  transition: all 0.3s ease-in-out;
  opacity: 1;
  transform: translateY(0);
  max-height: 100px;
  overflow: hidden;
  margin: 0 0 4px 0;
  padding: 0;
}

.blog-article-item.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  max-height: 100px;
  margin: 0 0 4px 0;
  padding: 0;
}

.blog-article-item.hidden {
  opacity: 0;
  transform: translateY(-5px);
  max-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .docs-toc {
    display: none;
  }
  
  .fluid-fixed {
    flex-direction: column;
  }
  }
  
@media (max-width: 768px) {
  /* Tab responsive styles removed */
  
  .side-drawer-content {
    width: 90vw;
    max-width: 90vw;
    /* Mobile: Keep as side drawer from right */
    top: 0;
    right: 0;
    height: 100%;
    transform: translateX(calc(100% + 2rem));
    border-radius: 0;
  }
  
  .side-drawer.active .side-drawer-content {
    transform: translateX(0);
  }
  
  .side-drawer-header {
    padding: 16px 20px;
  }
  
  .side-drawer-body {
    padding: 16px 20px;
  }
  
  .side-drawer-filters {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  
  .side-drawer-filters .filter-btn {
    padding: 4px 8px;
    font-size: 11px;
  }
}
