/* KickCommunity Custom Styles */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #18181b; }
::-webkit-scrollbar-thumb { background: #323238; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #53FC18; }

/* Custom animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-live { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.animate-fade-in { animation: fadeIn 0.2s ease-out; }
.animate-slide-up { animation: slideUp 0.3s ease-out; }
.animate-pulse-live { animation: pulse-live 2s infinite; }

/* Chat message animation */
.chat-msg { animation: slideUp 0.15s ease-out; }

/* Sidebar transition */
#sidebar { transition: width 0.2s ease; }

/* Search results */
#search-results:not(.hidden) { animation: fadeIn 0.15s ease-out; }

/* Channel card hover effect */
.group:hover .aspect-video img,
.group:hover .aspect-video > div { transform: scale(1.02); transition: transform 0.3s ease; }

/* Form focus glow */
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 2px rgba(83, 252, 24, 0.15); }

/* Badge styles */
.badge-live { background: #ef4444; color: white; font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 3px; }
.badge-verified { color: #53FC18; }

/* Button loading state */
.btn-loading { opacity: 0.7; pointer-events: none; }
.btn-loading::after { content: '...'; animation: pulse-live 1s infinite; }

/* Toast notification */
.toast {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
  padding: 12px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.toast-success { background: #53FC18; color: black; }

/* Auth Modals */
#auth-modal, #social-modal {
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

#auth-modal .active {
  color: #53FC18;
  border-color: #53FC18;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
}

#social-modal {
  /* Clicks "outside" the dialog pass through: no backdrop close, no accidental focus trap */
  pointer-events: none;
  background: transparent;
}

#social-modal .auth-modal__dialog {
  pointer-events: auto;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

.auth-modal.hidden {
  display: none;
}

.auth-modal__dialog {
  position: relative;
  width: min(100%, 430px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid #2d2f33;
  background: #1a1d22;
  padding: 16px 18px 18px;
}

.auth-modal__close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border: 0;
  margin: 0;
  padding: 2px 6px;
  background: transparent;
  color: #a3a3ad;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.auth-modal__close-btn:hover {
  color: #fff;
}

#social-modal .auth-modal__dialog {
  border: 1px solid rgba(83, 252, 24, 0.55);
  box-shadow: 0 0 0 1px rgba(83, 252, 24, 0.18) inset;
}

.hidden {
  display: none !important;
}

.auth-modal__brand-row {
  margin-bottom: 8px;
  text-align: center;
}

.auth-modal__brand {
  height: 58px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  margin-bottom: 14px;
  border-bottom: 1px solid #3a3d43;
}

.auth-tab {
  flex: 1;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #a3a3ad;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 0;
  cursor: pointer;
  text-align: center;
}

.auth-tab.active {
  color: #53FC18;
  border-color: #53FC18;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  color: #d3d4d8;
  font-size: 12px;
  font-weight: 600;
}

.auth-input {
  width: 100%;
  border: 1px solid #40444d;
  border-radius: 3px;
  background: #0c0e12;
  color: #fff;
  font-size: 14px;
  padding: 8px 10px;
}

.auth-input:focus {
  border-color: #53FC18;
  outline: none;
}

.auth-field {
  position: relative;
}

.auth-password-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border: 0;
  background: transparent;
  color: #8a8f99;
  cursor: pointer;
  line-height: 1;
}

.auth-forgot-row {
  display: flex;
  justify-content: flex-end;
}

.auth-forgot-btn {
  border: 0;
  background: transparent;
  color: #a4a8b0;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.auth-submit-btn {
  width: 100%;
  border: 0;
  border-radius: 3px;
  background: #53FC18;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  padding: 9px 10px;
  cursor: pointer;
}

.auth-submit-btn:hover {
  background: #48df16;
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-error {
  margin: 0;
  min-height: 18px;
  color: #ff6b6b;
  font-size: 12px;
}

.auth-switch-text {
  margin: 2px 0 0;
  text-align: center;
  color: #a3a3ad;
  font-size: 14px;
}

.auth-link-btn {
  border: 0;
  background: transparent;
  color: #53FC18;
  cursor: pointer;
  padding: 0;
}

.auth-link-btn:hover {
  text-decoration: underline;
}

.auth-divider {
  position: relative;
  text-align: center;
  color: #9da2ab;
  font-size: 12px;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34%;
  height: 1px;
  background: #3a3d43;
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-provider-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.auth-provider-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #343840;
  border-radius: 4px;
  background: #101319;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.auth-provider-btn:hover {
  border-color: #53FC18;
}

.auth-legal {
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  text-align: center;
  line-height: 1.45;
  margin: 2px 0 0;
}

.auth-legal-link {
  color: #53FC18;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-legal-link:hover {
  color: #7dff4a;
}

.auth-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #c2c5cb;
  font-size: 12px;
}

.auth-social-description {
  margin: 0 0 14px;
  text-align: center;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.auth-social-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-social-skip {
  margin-top: 14px;
  color: #d0d3d8;
  font-size: 12px;
  line-height: 1.35;
}

.social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  border: 2px solid #cfd1d5;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.social-btn__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 50%;
}

.social-btn__label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.social-auth-notice {
  border: 1px solid rgba(220, 38, 38, 0.85);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
}

.social-auth-notice__title {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.social-auth-notice__text {
  margin: 0;
  color: #d4d6da;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.social-btn:hover,
.social-btn.active {
  transform: translateY(-1px);
}

.social-btn[data-provider="facebook"]:hover,
.social-btn[data-provider="facebook"].active {
  background: rgba(68, 96, 160, 0.25);
  border-color: #4460A0;
}

.social-btn[data-provider="spotify"]:hover,
.social-btn[data-provider="spotify"].active {
  background: rgba(0, 218, 90, 0.2);
  border-color: #00DA5A;
}

.social-btn[data-provider="x"]:hover,
.social-btn[data-provider="x"].active {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.social-btn[data-provider="steam"]:hover,
.social-btn[data-provider="steam"].active {
  background: rgba(19, 135, 184, 0.24);
  border-color: #1387B8;
}

.social-btn[data-provider="vk"]:hover,
.social-btn[data-provider="vk"].active {
  background: rgba(0, 119, 255, 0.22);
  border-color: #0077FF;
}

.social-btn[data-provider="yandex"]:hover,
.social-btn[data-provider="yandex"].active {
  background: rgba(252, 63, 29, 0.22);
  border-color: #FC3F1D;
}

.social-btn[data-provider="mail"]:hover,
.social-btn[data-provider="mail"].active {
  background: rgba(0, 95, 249, 0.22);
  border-color: #005FF9;
}

.lang-switcher {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 350;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 6px 12px 8px;
  pointer-events: none;
}

.lang-switcher__btn {
  pointer-events: auto;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  color: #9ca3af;
  background: rgba(20, 21, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.lang-switcher__btn:hover {
  color: #fff;
}

.lang-switcher__btn--active {
  color: #000;
  background: #53FC18;
  border-color: #53FC18;
}

.social-btn--loading {
  position: relative;
  opacity: 0.85;
  pointer-events: none;
}

.social-btn--loading::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: auto;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: social-spin 0.7s linear infinite;
}

@keyframes social-spin {
  to { transform: rotate(360deg); }
}

/* Окно «браузера»: заголовок, строка URL, iframe со страницей активации */
.steam-fake-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(10, 14, 18, 0.82);
  backdrop-filter: blur(5px);
  overflow: auto;
}

.steam-fake-overlay.hidden {
  display: none;
}

.steam-fake-browser {
  width: min(100%, 1024px);
  height: min(94vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2d333c;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
  background: #323232;
}

.steam-fake-browser__titlebar {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 0 0 0 12px;
  background: #202020;
  border-bottom: 1px solid #111;
  cursor: move;
  user-select: none;
}

.steam-fake-browser__titlebar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  align-self: center;
  padding: 8px 0;
}

.steam-fake-browser__titlebar-icon {
  flex-shrink: 0;
  display: block;
}

.steam-fake-browser__titlebar-text {
  font-size: 12px;
  color: #e8e8e8;
}

.steam-fake-browser__caption-buttons {
  display: flex;
  flex-shrink: 0;
  align-self: stretch;
}

.steam-fake-browser__caption-btn {
  width: 46px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 300;
  line-height: 1;
}

.steam-fake-browser__caption-buttons .steam-fake-browser__caption-btn + .steam-fake-browser__caption-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.steam-fake-browser__caption-btn--minimize::after {
  content: "";
  display: block;
  width: 11px;
  height: 1px;
  background: #fff;
}

.steam-fake-browser__caption-btn--maximize::after {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border: 1px solid #fff;
  box-sizing: border-box;
}

.steam-fake-browser__caption-btn--maximize:hover,
.steam-fake-browser__caption-btn--minimize:hover {
  background: #1a1a1a;
}

.steam-fake-browser__caption-btn--close {
  font-size: 18px;
}

.steam-fake-browser__caption-btn--close:hover {
  background: #e81123;
  color: #fff;
}

.steam-fake-browser__chrome {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  background: #202125;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.steam-fake-browser__urlbar {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 0;
  background: #202125;
  border: none;
}

.steam-fake-browser__site-controls {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.steam-fake-browser__sliders-icon {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.steam-fake-browser__url {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
}

.steam-fake-browser__url-host {
  color: #ffffff;
}

.steam-fake-browser__url-rest {
  color: #9aa0a6;
}

.steam-fake-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #202124;
  overflow: hidden;
}

.steam-fake-page__frame-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
}

.steam-fake-page__embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.toast-error { background: #ef4444; color: white; }

/* Dropdown */
.dropdown-enter { animation: fadeIn 0.15s ease-out; }
