/* Mob Drop Modal CSS - Split Panel Design */
.mob-drop-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-drop-modal-backdrop.closing {
  opacity: 0;
}

/* Modern modal container - COMPACT SPLIT PANEL LAYOUT */
.mob-drop-modal {
  position: relative;
  width: 100%;
  max-width: 65rem; /* More compact - 1040px */
  max-height: min(600px, 75vh); /* Reduced height */
  background: #0f172a;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 0.75rem; /* Smaller radius */
  padding: 0;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modern header - COMPACT & STICKY */
.mob-drop-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem; /* Reduced padding */
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.7));
  position: relative;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
}

.mob-drop-modal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mob-drop-modal h3 {
  font-size: 1.1rem; /* Smaller font */
  font-weight: 600;
  color: #f1f5f9;
  margin: 0;
  letter-spacing: -0.025em;
}

.mob-drop-modal-title i {
  color: #ff6b6b;
  font-size: 1.25rem;
}

/* Close button - Top right */
.mob-drop-modal .btn-cancel {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  font-size: 1.125rem;
}

.mob-drop-modal .btn-cancel:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  transform: rotate(90deg);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* COMPACT SPLIT PANEL LAYOUT */
.mob-drop-modal-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* LEFT PANEL - Mob List & Search - COMPACT */
.mob-drop-left-panel {
  width: 16rem; /* 256px - More compact */
  border-right: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.6);
  max-height: 100%;
}

/* RIGHT PANEL - Mob Detail & Drops - SCROLLABLE - COMPACT */
.mob-drop-right-panel {
  flex: 1;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem; /* Reduced padding */
}

#mobDropDetailContent {
  width: 100%;
  min-height: min-content;
}

/* Search section - Left Panel - COMPACT */
.mob-drop-modal-search-section {
  padding: 0.75rem; /* Reduced padding */
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  flex-shrink: 0;
}

.mob-drop-modal .search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(100, 116, 139, 0.5);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-drop-modal .search-input-wrapper:focus-within {
  background: rgba(15, 23, 42, 1);
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.mob-drop-modal .search-icon {
  color: #64748b;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  transition: color 0.2s;
}

.mob-drop-modal .search-input-wrapper:focus-within .search-icon {
  color: #6366f1;
}

.mob-drop-modal .search-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  outline: none;
}

.mob-drop-modal .search-input-wrapper input::placeholder {
  color: #64748b;
  opacity: 0.7;
}

.mob-drop-modal .search-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.mob-drop-modal .search-clear-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Results container - Left Panel Scrollable - COMPACT */
.mob-drop-modal-results {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0.5rem;
  max-height: 450px; /* Reduced height */
}

/* Compact mob list item */
.mob-result-row {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* Reduced gap */
  padding: 0.4rem 0.5rem; /* Reduced padding */
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(71, 85, 105, 0.4);
  border-radius: 0.4rem; /* Smaller radius */
  margin-bottom: 0.2rem; /* Reduced margin */
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-result-row:hover,
.mob-result-row.active {
  background: rgba(255, 107, 107, 0.15);
  border-color: #ff6b6b;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.mob-result-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.mob-result-name {
  color: #f1f5f9;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mob-result-count {
  color: #94a3b8;
  font-size: 0.6875rem;
  white-space: nowrap;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  width: fit-content;
}

/* RIGHT PANEL - Empty State */
.mob-drop-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: #64748b;
}

.mob-drop-empty-state i {
  font-size: 4rem;
  color: #ff6b6b;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.mob-drop-empty-state h4 {
  color: #cbd5e1;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.mob-drop-empty-state p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
}

/* RIGHT PANEL - Mob Detail View - COMPACT */
.mob-detail-view {
  width: 100%;
}

.mob-detail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem; /* Reduced gap */
  padding: 1rem; /* Reduced padding */
  background: rgba(255, 107, 107, 0.05);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 0.5rem; /* Smaller radius */
  margin-bottom: 0.75rem; /* Reduced margin */
  flex-shrink: 0;
}

.mob-detail-name {
  color: #ff6b6b;
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.mob-drop-count {
  color: #cbd5e1;
  font-size: 0.8125rem;
  margin: 0;
  font-style: italic;
  opacity: 0.9;
}

/* Mob Drop Grid Container */
.mob-drops-container {
  width: 100%;
  margin-top: 1rem;
}

.mob-drops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  padding: 0.5rem;
}

.mob-drop-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: all 0.2s;
}

.mob-drop-item:hover {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.mob-drop-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.mob-drop-item-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(251, 191, 36, 0.4);
  object-fit: contain;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.25rem;
}

.mob-drop-item-name {
  flex: 1;
  color: #f1f5f9;
  font-weight: 500;
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mob-drop-item-info {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
}

.mob-drop-item-amount {
  color: #fbbf24;
  font-weight: 600;
}

.mob-drop-item-chance {
  color: #6ee7b7;
  font-weight: 600;
}

/* Responsive düzenlemeler */
@media (max-width: 1024px) {
  .mob-drop-modal {
    max-width: 90vw;
    max-height: min(600px, 85vh); /* Reduced height */
  }
  
  .mob-drop-left-panel {
    width: 16rem; /* Reduced width */
  }
}

@media (max-width: 768px) {
  .mob-drop-modal {
    max-height: min(550px, 85vh); /* Reduced height */
  }
  
  .mob-drop-modal-body {
    flex-direction: column;
  }
  
  .mob-drop-left-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    max-height: 180px; /* Reduced height */
  }
  
  .mob-drop-right-panel {
    width: 100%;
    flex: 1;
    min-height: 0;
  }
  
  .mob-drops-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); /* Smaller minmax */
    gap: 0.4rem; /* Reduced gap */
  }
}

@media (max-width: 480px) {
  .mob-drop-modal {
    max-width: 95vw;
    max-height: min(500px, 90vh); /* Reduced height */
  }
  
  .mob-drop-left-panel {
    max-height: 160px; /* Reduced height */
  }
  
  .mob-drops-grid {
    grid-template-columns: 1fr;
  }
}
