@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-dark: #0a0a0a;
  --bg-panel: #161616;
  --bg-card: #202020;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: #3665f3;
  
  /* eBay Brand Colors */
  --something-blue: #3665f3;
  --something-red: #f9215e;
  --something-green: #00d179;
  --something-yellow: #fec22a;
  
  --text-primary: #ffffff;
  --text-muted: #adadad;
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Scrollbars styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Header & Logo styling */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.ebay-logo {
  font-size: 2rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  letter-spacing: -0.05em;
}

/* eBay Signature Multi-color logo colors */
.ebay-logo span.e { color: #e53238; }
.ebay-logo span.b { color: #0064d2; }
.ebay-logo span.a { color: #fec22a; }
.ebay-logo span.y { color: #86b817; }
.ebay-logo span.live {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--something-red);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  letter-spacing: 0.05em;
}

/* Buttons styling */
.btn {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  border-radius: 20px; /* pill shape */
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--something-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #214ec7;
}

.btn-secondary {
  background-color: #3e3e3e;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background-color: #4a4a4a;
}

.btn-danger {
  background-color: var(--something-red);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #b51525;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Inputs styling */
.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

input, textarea, select {
  font-family: var(--font-family);
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--something-blue);
}

/* Badges styling */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-live {
  background: var(--something-red);
  color: #fff;
}

.badge-success {
  background: rgba(0, 209, 121, 0.15);
  color: var(--something-green);
  border: 1px solid rgba(0, 209, 121, 0.3);
}

/* Layout switchers for vertical phone aspect ratio */
.ebay-live-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  height: calc(100vh - 160px);
  min-height: 550px;
}

/* Vertical Stream frame simulating eBay Live phone stream */
.vertical-stream-frame {
  position: relative;
  background-color: #000;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stream-overlay-top {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  right: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.stream-overlay-top > * {
  pointer-events: auto;
}

.stream-stats-badge {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.stream-overlay-bottom {
  position: absolute;
  bottom: 0.8rem;
  left: 0.8rem;
  right: 0.8rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.stream-overlay-bottom > * {
  pointer-events: auto;
}

/* Reaction animations (Floating Hearts) */
.likes-container {
  position: absolute;
  bottom: 4rem;
  right: 0.8rem;
  width: 60px;
  height: 250px;
  pointer-events: none;
  z-index: 9;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: 0;
  right: 15px;
  font-size: 1.5rem;
  user-select: none;
  animation: floatUp 2.5s ease-out forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
    transform: translateY(-20px) scale(1.1) rotate(5deg);
  }
  50% {
    transform: translateY(-120px) scale(1) rotate(-10deg);
  }
  100% {
    transform: translateY(-250px) scale(0.7) rotate(15deg);
    opacity: 0;
  }
}

.like-action-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--something-red);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(221, 30, 49, 0.4);
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.like-action-btn:hover {
  transform: scale(1.1);
}

.like-action-btn:active {
  transform: scale(0.9);
}

/* Right Tabbed Panel Workspace */
.ebay-workspace-panel {
  background-color: var(--bg-panel);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Tabs UI Navigation */
.tabs-navigation {
  display: flex;
  background-color: #121212;
  border-bottom: 1px solid var(--border-light);
  padding: 0 0.5rem;
}

.tab-btn {
  flex-grow: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.9rem 0;
  cursor: pointer;
  text-align: center;
  transition: color var(--transition);
  position: relative;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: var(--something-blue);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 15%;
  right: 15%;
  height: 3px;
  background-color: var(--something-blue);
  border-radius: 3px 3px 0 0;
}

/* Tab panes switcher logic */
.tab-panes-container {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
}

.tab-pane {
  display: none;
  height: 100%;
  padding: 1.2rem;
  overflow-y: auto;
}

.tab-pane.active {
  display: flex;
  flex-direction: column;
}

/* Product queue card design in eBay format */
.product-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 0.9rem;
  margin-bottom: 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.product-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 70%;
}

.product-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.product-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--something-green);
}

/* eBay Style Active Bid Card */
.ebay-bid-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.ebay-bid-card-header {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--something-blue);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.ebay-product-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.ebay-product-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.ebay-price-section {
  display: flex;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 1rem;
  justify-content: space-between;
}

.price-sub {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.price-lbl {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-val {
  font-size: 1.4rem;
  font-weight: 800;
}

.price-val.current {
  color: var(--something-green);
}

.price-val.bidder {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.quick-bids-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.bid-action-row {
  display: flex;
  gap: 0.5rem;
}

.bid-action-row input {
  flex-grow: 1;
}

/* Feeds & Chat styling */
.feed-container {
  flex-grow: 1;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.7rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 240px;
}

.feed-item {
  font-size: 0.8rem;
  line-height: 1.35;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.feed-item.system-event {
  color: var(--text-muted);
  border-left: 2px solid #555;
  background: rgba(255, 255, 255, 0.01);
}

.feed-item.bid-event {
  border-left: 2px solid var(--something-blue);
  background: rgba(54, 101, 243, 0.06);
}

.feed-item.winner-event {
  border-left: 2px solid var(--something-green);
  background: rgba(0, 209, 121, 0.06);
  font-weight: 600;
}

.feed-item-time {
  font-size: 0.65rem;
  color: var(--text-muted);
  float: right;
  margin-top: 0.1rem;
}

/* Roster viewer listing */
.roster-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.roster-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.02);
}

.roster-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--something-green);
}

/* Modal Join Style */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  max-width: 360px;
  width: 90%;
  text-align: center;
  padding: 2rem 1.5rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  gap: 0.4rem;
  height: 100%;
}

.empty-state-icon {
  font-size: 2.2rem;
  opacity: 0.2;
}

/* eBay Store Streams Cards for landing page */
.ebay-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ebay-store-card {
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 200px;
  transition: var(--transition);
}

.ebay-store-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.ebay-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 850px) {
  .ebay-live-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .vertical-stream-frame {
    height: 480px;
  }
}
