/* =====================
   MODULE ROOT
===================== */
.ak-explorer {
  font-family: DM Sans, sans-serif;
}

/* Box sizing only inside module */
.ak-explorer *,
.ak-explorer *::before,
.ak-explorer *::after {
  box-sizing: border-box;
}

/* =====================
   WRAPPER
===================== */
.ak-explorer .page-wrapper {
  position: relative;
}

/* =====================
   FILTER TOGGLE BUTTON
===================== */
.ak-explorer .filter-toggle {
  position: sticky;
  top: 20px;
  margin: 20px;
  z-index: 900;
  background: #0e2336;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* =====================
   SIDEBAR OVERLAY
===================== */
.ak-explorer .sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 720px;
  background: #e6e6e4;
  padding: 20px;
  z-index: 1001;
  overflow-y: auto;

  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.ak-explorer .sidebar.is-open {
  transform: translateX(0);
}

/* CLOSE BUTTON */
.ak-explorer .sidebar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
  position: sticky;
  right: 16px;
  top: 0px;
  left: 100%;
}
}

/* BACKDROP */
.ak-explorer .sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ak-explorer .sidebar-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* =====================
   SIDEBAR CONTENT
===================== */
.ak-explorer details {
  border-top: 1px solid #000;
  padding: 12px 0;
}

.ak-explorer summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  padding: 10px;
  width: 250px;
}

.ak-explorer summary::-webkit-details-marker {
  display: none;
}

.ak-explorer summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg) translate(0px, -4px);
  margin-left: 25px;
}

.ak-explorer details[open] > summary::after {
  transform: rotate(-135deg) translate(-4px, 0px);
}

.ak-explorer .filter-options {
  margin-top: 10px;
  padding-left: 5px;
}

.ak-explorer .filter-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}
.ak-explorer.sidebar-open {
  overflow: hidden;
}

/* ACTION BUTTONS */
.ak-explorer .actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  position: sticky;
  bottom: 0px;
  background: #e6e6e4;
}


.ak-explorer button {
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.ak-explorer .clear-btn {
  background: transparent;
  border: 1px solid #0e2336;
  color: #0e2336;
  flex-grow: 1;
}

.ak-explorer .results-btn {
  background: #0e2336;
  color: white;
  flex-grow: 2;
}

.ak-explorer .sidebar > details:nth-child(2) {
border-top: none;
}

/* =====================
   MAIN CONTENT
===================== */
.ak-explorer .content {
  padding: 40px;
}

/* =====================
   GRID
===================== */
.ak-explorer .experience-grid {
  display: grid;
  position: relative;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* =====================
   CARD
===================== */
.ak-explorer .card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 300ms ease, opacity 200ms ease;
  will-change: transform;
  position: relative;
}

.ak-explorer .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.ak-explorer .card-image {
  position: relative;
  height: 200px;
}

.ak-explorer .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ak-explorer .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.ak-explorer .card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ak-explorer .card-meta {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ak-explorer .card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ak-explorer .card-description {
  font-size: 14px;
  color: #555;
  margin-bottom: auto;
}

.ak-explorer .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.ak-explorer .d-none {
  display: none;
}

.ak-explorer a.cover {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ak-explorer .card > a.cover {
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .ak-explorer .sidebar {
    width: 100%;
  }
}
