/* --- ACTION BUTTONS & SHOW MORE --- */

#searchButton {
  padding: 1.2vh 2.4vw;
  font-size: 0.9rem;
  background-color: var(--primary-color);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
}

[data-theme]:not([data-theme="light-yellow"]) #searchButton { color: #ffffff !important; }
[data-theme="light-yellow"] #searchButton { color: #000000 !important; }
[data-theme^="light"] #searchButton { color: #000000 !important; background-color: var(--primary-color) !important; border-color: rgba(0,0,0,0.08) !important; }
[data-theme^="light"] #searchButton:hover, [data-theme^="light"] #searchButton:focus, [data-theme^="light"] #searchButton:active { color: #ffffff !important; }

.sidebar-toggle { cursor: pointer; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.sidebar-toggle:hover { background: rgba(255, 255, 255, 0.0); }

.cat-head-icon { width: 35px; height: 35px; object-fit: contain; filter: none; }
[data-theme^="light"] .sidebar-toggle .cat-head-icon { filter: none !important; }
[data-theme^="light"] .sidebar-toggle:hover .cat-head-icon, [data-theme^="light"] .sidebar-toggle:active .cat-head-icon { filter: none !important; }
[data-theme^="light"] .sidebar-toggle .cat-head-icon { display: none !important; }

[data-theme^="light"] .sidebar-toggle::before {
    content: ""; display: block; width: 35px; height: 35px; background-color: var(--primary-color);
    -webkit-mask-image: url("cat-head2.png"); -webkit-mask-repeat: no-repeat; -webkit-mask-position: center; -webkit-mask-size: contain;
    mask-image: url("cat-head2.png"); mask-repeat: no-repeat; mask-position: center; mask-size: contain;
}
[data-theme="light-yellow"] .sidebar-toggle::before { background-color: #000000; }

@media (max-width: 768px) {
    .sidebar-toggle { padding: 6px; transform: scale(0.75); transform-origin: top left; font-size: calc(1rem - 2pt); }
    .cat-head-icon { width: 26px; height: 26px; filter: none !important; }
    [data-theme^="light"] .sidebar-toggle::before { width: 26px; height: 26px; }
}

[data-theme]:not([data-theme="light-yellow"]) .sidebar-toggle { color: #ffffff !important; }
[data-theme="light-yellow"] .sidebar-toggle { color: #000000 !important; }

[data-theme] #searchButton:hover, [data-theme] .sidebar-toggle:hover { color: #333333 !important; }
[data-theme]:not([data-theme^="light"]) #searchButton:hover, [data-theme]:not([data-theme^="light"]) .sidebar-toggle:hover { color: #ffffff !important; }
[data-theme="light-yellow"] #searchButton, [data-theme="light-yellow"] .sidebar-toggle { color: #333333 !important; }
[data-theme="light-yellow"] #searchButton:hover, [data-theme="light-yellow"] .sidebar-toggle:hover { color: #ffffff !important; }

.show-more-button {
  display: none;
  width: 100%;
  max-width: 200px; /* ensure the button never exceeds 200px */
  box-sizing: border-box;
  margin: 12px auto 24px auto; /* center the button when shown */
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(to bottom, rgba(255,255,255,0.28), rgba(255,255,255,0.08) 40%, rgba(0,0,0,0.20) 100%);
  color: var(--text-color) !important;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.show-more-button::before { content: ""; position: absolute; inset: 0; height: 55%; top: 0; left: 0; background: linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(255,255,255,0.15)); opacity: 0.9; pointer-events: none; }
.show-more-button > * { position: relative; z-index: 1; }
.show-more-button:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.25); transform: translateY(-1px); opacity: 0.95; background: linear-gradient(to bottom, rgba(255,255,255,0.35), rgba(255,255,255,0.12) 40%, rgba(0,0,0,0.25) 100%); }
[data-theme^="light"] .show-more-button { color: #000000 !important; border-color: rgba(0,0,0,0.15); }

.slideshow-trigger-button {
    background-color: var(--primary-color); color: #ffffff !important; border: none; border-radius: 20px;
    padding: 6px 12px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease;
    display: flex; align-items: center; gap: 5px; margin-left: 15px; flex-shrink: 0;
}
.slideshow-trigger-button:hover { background-color: var(--lighter-primary-color); box-shadow: 0 0 10px var(--lighter-primary-color); transform: scale(1.05); }
.slideshow-trigger-button svg { stroke: #ffffff !important; fill: none; }
[data-theme^="light"] .slideshow-trigger-button { color: #ffffff !important; }
[data-theme^="light"] .slideshow-trigger-button:hover { background-color: var(--primary-color); color: #000000 !important; box-shadow: 0 0 10px var(--primary-color); }