/* ============================================
   SKELI.CZ - Components
   Reusable UI components
   ============================================ */

/* Global Form Elements */
input[type=text],
input[type=password],
input[type=email],
input[type=number],
select,
textarea {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.02em;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 10px;
}

body.light input[type=text],
body.light input[type=password],
body.light input[type=email],
body.light input[type=number],
body.light select,
body.light textarea {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

/* Top Controls (theme, lang, user menu) */
.top-controls {
  font-family: "Bruno Ace SC", sans-serif;
}

.top-controls a,
.top-controls button {
  font-family: inherit;
}

body.light .top-controls {
  color: #111;
}

body.light .top-controls a {
  color: #111;
}

body.light .top-controls button {
  color: #111;
  border-color: rgba(0, 0, 0, 0.35);
}

/* Language Switcher */
.lang-switch {
  position: relative;
}

.lang-switch .menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--panel-strong);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 6px;
  min-width: 140px;
  z-index: 1000;
}

.lang-switch.open .menu {
  display: block;
}

.lang-switch .menu a {
  display: block;
  padding: 6px 8px;
  color: #fff;
  text-decoration: none;
}

body.light .lang-switch .menu a {
  color: #111;
}

.lang-switch .menu a:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* User Dropdown */
.user-dropdown a {
  color: #fff;
}

.user-dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.user-dropdown a.admin {
  color: #ffd700;
}

body.light .user-dropdown {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--panel-border);
}

body.light .user-dropdown a {
  color: #111;
}

body.light .user-dropdown a:hover {
  background: rgba(0, 0, 0, 0.06);
}

body.light .user-dropdown a.admin {
  color: #a37b00;
}

/* Persistent Spotify Bar */
.sp-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid var(--panel-border);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, .45);
  display: none;
}

.sp-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  position: relative;
}

.sp-iframe {
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 12px 12px 0 0;
}

.sp-hide {
  position: absolute;
  right: 10px;
  top: -32px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 4px 10px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

.sp-hide:hover {
  background: rgba(0, 0, 0, 0.8);
}

.sp-minbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  z-index: 9998;
  display: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-minbar i.fa-spotify {
  color: #FF0000;
}

.sp-minbar:hover {
  background: rgba(0, 0, 0, 0.8);
}

body.light .sp-bar {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, .20);
}

body.light .sp-minbar {
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  border-color: rgba(0, 0, 0, 0.15);
}

body.light .sp-hide:hover {
  background: rgba(255, 255, 255, 1);
}
