/* ==========================================================================
   Rooms I Manage Page Styles - Modern Firetalk Glass & Universal Theme
   ========================================================================== */

/* Hero Banner */
.rooms-manage-hero {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(249, 115, 22, 0.08) 50%, rgba(14, 165, 233, 0.08) 100%), var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 44px 20px 54px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.rooms-manage-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 180px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.rooms-hero-title {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  position: relative;
}

.rooms-hero-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
}

/* Centered Container */
.rooms-manage-container {
  max-width: 920px;
  width: 100%;
  margin: -24px auto 60px;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
}

.rooms-manage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

/* Tab Headers */
.manage-tabs-nav {
  display: flex;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 8px 0;
  gap: 6px;
  overflow-x: auto;
}

.manage-tab-btn {
  flex: 1;
  min-width: 140px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 3px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.manage-tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.manage-tab-btn.active {
  background: var(--bg-surface);
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Tab Panes */
.manage-tabs-content {
  padding: 28px;
}

.manage-pane {
  display: none;
}

.manage-pane.active {
  display: block;
}

.rooms-list-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Room Item Card */
.room-manage-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  position: relative;
}

.room-manage-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.room-thumb-col {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  position: relative;
}

.room-thumb-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: block;
}

.room-icon-box {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.badge-18 {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #dc2626;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Room Info Details */
.room-info-col {
  flex: 1;
  min-width: 0;
}

.room-item-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.room-item-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.room-item-title a:hover {
  color: var(--primary-color);
}

.room-item-cat {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.room-item-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-sep {
  color: var(--border-strong);
}

.status-open {
  color: #10b981;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-open::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.status-closed {
  color: var(--text-muted);
  font-weight: 500;
}

.room-item-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-manage-room-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--primary-color);
  background-image: var(--flame-gradient);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-manage-room-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  color: #ffffff;
}

.btn-unjoin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-unjoin-pill:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: var(--primary-color);
}

.btn-unjoin-pill.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.room-item-followers {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.heart-icon {
  color: #ef4444;
  font-size: 13px;
}

/* Inactive Badge */
.room-inactive-badge-wrap {
  position: absolute;
  top: 14px;
  right: 18px;
}

.badge-inactive {
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* Empty States */
.empty-state-box {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--text-muted);
  opacity: 0.7;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .rooms-manage-container {
    padding: 0 12px;
    margin: -16px auto 40px;
  }

  .manage-tabs-content {
    padding: 18px 14px;
  }

  .room-manage-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }

  .room-thumb-col {
    width: 100%;
    height: 140px;
  }

  .room-thumb-img, .room-icon-box {
    width: 100%;
    height: 100%;
  }

  .room-inactive-badge-wrap {
    position: static;
    margin-bottom: 8px;
  }
}
