/* 
  Refactored Components Stylesheet
  Focus: Modularity, reduced redundancy, and consistent interactive states.
*/

/* --- 1. Interactive Buttons & Links --- */
#searchButton,
.quick-link-btn,
.show-more-button,
.sidebar-toggle,
.genre-item {
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#searchButton,
.quick-link-btn,
.show-more-button {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  background-color: var(--primary-color);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Specific Glass effect for Quick Links */
.quick-link-btn {
  width: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(0,0,0,0.2));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.quick-link-btn::before {
  content: ""; position: absolute; inset: 0; height: 50%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
}
.quick-link-btn:hover { transform: translateY(0); box-shadow: none; }
.quick-link-btn.active { border-color: #fff; background-color: var(--primary-color); }

/* --- 2. Circular "Ball" UI Elements --- */
.action-ball,
.color-ball,
.settings-ball,
.scroll-top-ball,
.info-ball {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
}

.action-ball::before,
.color-ball::before,
.info-ball::before {
  content: ""; position: absolute; inset: 0; height: 55%;
  background: radial-gradient(circle at 50% -20%, rgba(255,255,255,0.8), transparent 70%);
  opacity: 0.9; pointer-events: none;
}

.action-ball:hover, .color-ball:hover { transform: scale(1.1); opacity: 1; }

/* --- 3. Genres & Sidebar Navigation --- */
.genre-item {
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--primary-color);
  color: var(--text-color) !important;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  position: relative;
}

.genre-icon {
  width: 28px; height: 28px;
  margin-right: 8px;
  background-color: currentColor;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}

.genre-header {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid var(--primary-color);
  padding: 10px 0;
  margin: 10px 0;
  grid-column: 1/-1;
}

/* --- 4. Tooltips --- */
.global-tooltip {
  position: fixed; z-index: 60000;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(var(--primary-color-rgb), 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

/* --- 5. Intro & Specials --- */
.intro-overlay {
  position: fixed; inset: 0; z-index: 60050;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(0,0,0,0.85), #000);
  backdrop-filter: blur(15px);
}
.intro-card {
  width: 90%; max-width: 400px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(var(--primary-color-rgb), 0.5);
  text-align: center;
}
.intro-logo-img {
  width: 180px; height: 50px; margin: 0 auto 20px;
  background: var(--primary-color);
  -webkit-mask: url('6d-300.png') center/contain no-repeat;
}

/* --- 6. Theme Overrides --- */
[data-theme^="light"] .quick-link-btn,
[data-theme^="light"] #searchButton { color: #000 !important; border-color: rgba(0,0,0,0.1); }

[data-theme="light-yellow"] #searchButton,
[data-theme="light-yellow"] .quick-link-btn { color: #000 !important; }

/* Light theme masked cat icon */
[data-theme^="light"] .sidebar-toggle .cat-head-icon { display: none; }
[data-theme^="light"] .sidebar-toggle::before {
  content: ""; width: 35px; height: 35px; background: #fff;
  -webkit-mask: url("cat-head2.png") center/contain no-repeat;
}

/* --- 7. Responsive --- */
@media (max-width: 768px) {
  .action-ball, .color-ball, .settings-ball { width: 38px; height: 38px; }
  .genre-item { font-size: 0.85rem; padding: 4px 10px; }
}

/* Hidden utility */
.search-container { display: none !important; }