/* Auto-extracted inline <style> blocks from inc/*.php */

/* source: inc/friends_widget.php */
/* ============================================
   FACEIT-Style Friends Widget
   ============================================ */
.fw-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9990;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Toggle Button */
.fw-toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff5500 0%, #ff6b1f 100%);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.fw-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(255, 85, 0, 0.5);
}

.fw-toggle svg {
  width: 22px;
  height: 22px;
}

.fw-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #00d26a;
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0d0d0f;
}

.fw-badge:empty, .fw-badge[data-count="0"] {
  display: none;
}

/* Panel */
.fw-panel {
  position: absolute;
  bottom: 64px;
  right: 0;
  width: 320px;
  max-height: 500px;
  background: #16161a;
  border: 1px solid #2a2a32;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.fw-widget.open .fw-panel {
  display: flex;
}

.fw-widget.open .fw-toggle {
  background: #2a2a32;
  box-shadow: none;
}

/* Header */
.fw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1c1c21 0%, #16161a 100%);
  border-bottom: 1px solid #2a2a32;
}

.fw-title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.fw-close {
  background: none;
  border: none;
  color: #666;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}

.fw-close:hover {
  color: #ff5500;
}

/* Tabs */
.fw-tabs {
  display: flex;
  border-bottom: 1px solid #2a2a32;
  background: #111115;
}

.fw-tab {
  flex: 1;
  padding: 10px 8px;
  background: none;
  border: none;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border-bottom: 2px solid transparent;
}

.fw-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.fw-tab.active {
  color: #ff5500;
  border-bottom-color: #ff5500;
}

.fw-tab span {
  background: #ff5500;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 4px;
}

.fw-tab span:empty {
  display: none;
}

/* Content */
.fw-content {
  flex: 1;
  overflow-y: auto;
  max-height: 350px;
}

.fw-content.hidden {
  display: none;
}

.fw-section {
  padding: 8px 0;
}

.fw-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  padding: 8px 16px 6px;
}

.fw-empty {
  text-align: center;
  padding: 32px 16px;
  color: #666;
  font-size: 13px;
}

.fw-hint {
  text-align: center;
  padding: 16px;
  color: #555;
  font-size: 12px;
}

/* Friend Row */
.fw-friend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.fw-friend:hover {
  background: rgba(255, 255, 255, 0.03);
}

.fw-friend.online .fw-status-dot {
  background: #00d26a;
  box-shadow: 0 0 8px rgba(0, 210, 106, 0.5);
}

.fw-friend.offline {
  opacity: 0.6;
}

.fw-friend.offline .fw-status-dot {
  background: #444;
}

.fw-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  background: #2a2a32;
}

.fw-info {
  flex: 1;
  min-width: 0;
}

.fw-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fw-status {
  font-size: 11px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fw-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fw-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}

.fw-friend:hover .fw-actions {
  opacity: 1;
}

.fw-btn {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  background: #2a2a32;
  color: #fff;
}

.fw-btn:hover {
  background: #3a3a44;
}

.fw-btn.primary {
  background: #ff5500;
  color: white;
}

.fw-btn.primary:hover {
  background: #ff6b1f;
}

.fw-btn.danger {
  background: transparent;
  color: #666;
}

.fw-btn.danger:hover {
  background: rgba(255, 71, 87, 0.1);
  color: #ff4757;
}

.fw-btn.small {
  padding: 4px 8px;
  font-size: 10px;
}

/* Request Row */
.fw-request {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #222;
}

.fw-request:last-child {
  border-bottom: none;
}

.fw-request .fw-actions {
  opacity: 1;
}

/* Search */
.fw-search {
  padding: 12px 16px;
  border-bottom: 1px solid #2a2a32;
}

.fw-search input {
  width: 100%;
  padding: 10px 12px;
  background: #0d0d0f;
  border: 1px solid #2a2a32;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}

.fw-search input:focus {
  border-color: #ff5500;
}

.fw-search input::placeholder {
  color: #555;
}

#fwSearchResults {
  max-height: 250px;
  overflow-y: auto;
}

/* Party Invites */
.fw-party-invites {
  border-top: 1px solid #2a2a32;
  background: rgba(255, 170, 0, 0.05);
}

.fw-party-invites:empty {
  display: none;
}

.fw-party-invite {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 170, 0, 0.1);
}

.fw-party-invite:last-child {
  border-bottom: none;
}

.fw-party-info {
  flex: 1;
}

.fw-party-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffaa00;
}

.fw-party-meta {
  font-size: 11px;
  color: #666;
}

/* Scrollbar */
.fw-content::-webkit-scrollbar {
  width: 6px;
}

.fw-content::-webkit-scrollbar-track {
  background: transparent;
}

.fw-content::-webkit-scrollbar-thumb {
  background: #2a2a32;
  border-radius: 3px;
}

.fw-content::-webkit-scrollbar-thumb:hover {
  background: #3a3a44;
}

/* Animations */
@keyframes fwSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fw-widget.open .fw-panel {
  animation: fwSlideIn 0.2s ease;
}

/* Responsive */
@media (max-width: 400px) {
  .fw-panel {
    width: calc(100vw - 40px);
    right: 0;
  }
}
