/* Live Kills System - Integrated with existing design */

.modern-kills-card {
  background: #2a2a2a;
  border: 1px solid #404040;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modern-kills-header {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border: none;
  padding: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kills-header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.modern-kills-header .ranking-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.modern-kills-header .ranking-icon i {
  font-size: 1.2rem;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.kills-title-and-subtitle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  flex: 1;
  position: relative;
}

.kills-title-and-subtitle h3 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.kills-subtitle-inline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0;
}

/* Live Indicator */
.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ff0000;
  border-radius: 50%;
  animation: livePulse 1.5s infinite;
  box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
}

.live-text {
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
  }
}

/* Kill Items */
.kill-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin: 0.5rem;
  background: #2a2a2a;
  border-radius: 6px;
  border: 1px solid #404040;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 50px;
}

.kill-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ff6b35, #f7931e);
  border-radius: 0 2px 2px 0;
}

.kill-item:hover {
  background: #333333;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.kill-event-icon {
  margin-right: 1rem;
  color: #ff6b35;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.kill-details {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.05rem;
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: nowrap;
  justify-content: flex-start;
}

.killer-name {
  color: #dc3545 !important;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.killer-name.online {
  color: #dc3545 !important;
  text-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
}

.kill-action {
  color: #cccccc;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.victim-name {
  color: #ffffff !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.victim-name.online {
  color: #ffffff !important;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.victim-name i {
  font-size: 0.8rem;
}

.victim-name i.fas.fa-skull {
  color: #888888;
  margin-right: 4px;
}

/* Level and Guild indicators */
.killer-level,
.victim-level {
  color: #4CAF50;
  font-weight: 500;
  font-size: 0.8rem;
  margin: 0 0.25rem;
}

.killer-class {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}

.kills-class-image {
  width: 24px;
  height: 24px;
  border-radius: 3px;
  margin-left: 0.5rem;
  border: 1px solid rgba(255, 140, 0, 0.3);
  transition: all 0.3s ease;
}

.kills-class-image:hover {
  transform: scale(1.1);
  border-color: #FF8C00;
  box-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

.killer-resets,
.victim-resets {
  color: #FF6B35;
  font-weight: 600;
  margin: 0 0.25rem;
  font-size: 0.8rem;
}

.killer-guild,
.victim-guild {
  color: #FFD700;
  font-weight: 500;
  font-size: 0.8rem;
  margin: 0 0.25rem;
}

.victim-class {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}


/* Player and Guild Links */
.player-link {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border-radius: 4px;
  padding: 2px 4px;
  margin: 0;
}

.player-link:hover {
  background: rgba(255, 107, 53, 0.2);
  color: #ff6b35;
  text-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
  transform: translateY(-1px);
}

.player-link.killer-name {
  color: #dc3545 !important;
}

.player-link.killer-name.online {
  color: #dc3545 !important;
}

.player-link.victim-name {
  color: #ffffff !important;
}

.player-link.victim-name.online {
  color: #ffffff !important;
}

/* Guild with Logo */
.guild-with-logo {
  display: inline-flex;
  align-items: center;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.guild-logo {
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
}

.guild-logo img {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.guild-logo img:hover {
  transform: scale(1.1);
  border-color: #FFD700;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.guild-link {
  text-decoration: none !important;
  color: #FFD700 !important;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  border-radius: 3px;
  padding: 1px 3px;
  text-shadow: 0 0 3px rgba(255, 215, 0, 0.3);
}

.guild-link:hover {
  background: rgba(255, 215, 0, 0.2);
  color: #FFA500 !important;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  transform: translateY(-1px);
}

/* Online status indicators for links - DISABLED (using JavaScript indicators instead) */
.player-link.online::after {
  display: none;
}

/* Online status indicators */
.online-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  font-size: 0.6rem;
  margin: 0 4px;
}

.online-status.online {
  color: #28a745;
  animation: pulse 2s infinite;
}

.online-status.offline {
  color: #dc3545;
}

.kill-location {
  color: #cccccc;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.location-pin {
  color: #4CAF50;
  margin: 0 0.25rem;
  font-size: 0.8rem;
}

.location-name {
  color: #f5f5dc;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.location-coords {
  color: #888888;
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
  margin: 0 0.25rem;
}

.kill-timestamp {
  color: #888888;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.kill-timestamp i {
  font-size: 0.7rem;
}

/* No Kills State */
.no-kills {
  text-align: center;
  padding: 3rem 1rem;
  color: #888888;
}

.no-kills-icon {
  font-size: 3rem;
  color: #555555;
  margin-bottom: 1rem;
}

.no-kills-text h4 {
  color: #cccccc;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.no-kills-text p {
  color: #888888;
  font-size: 0.9rem;
  margin: 0;
}

/* Online status indicators */
.killer-name.online::after,
.victim-name.online::after {
  display: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

/* Animation for updates */
.modern-ranking-list.updated {
  animation: fadeInUpdate 0.3s ease-in-out;
}

@keyframes fadeInUpdate {
  0% {
    opacity: 0.7;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error state styling */
.no-kills .no-kills-icon i.fa-exclamation-triangle {
  color: #f44336;
  animation: pulse 2s infinite;
}

.no-kills .no-kills-text small {
  color: #ff6b6b;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: block;
}

/* Loading state */
.kills-loading {
  text-align: center;
  padding: 2rem;
  color: #888888;
}

.kills-loading .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #404040;
  border-radius: 50%;
  border-top-color: #ff6b35;
  animation: spin 1s ease-in-out infinite;
  margin-right: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Mobile Responsive - Tablet */
@media (max-width: 768px) {
  .modern-kills-header {
    padding: 0.8rem;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  
  .kills-header-content {
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
  }
  
  .modern-kills-header .ranking-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
  }
  
  .modern-kills-header .ranking-icon i {
    font-size: 1rem;
  }
  
  .kills-title-and-subtitle {
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
  }
  
  .kills-title-and-subtitle h3 {
    font-size: 1.2rem;
    line-height: 1.2;
  }
  
  .kills-subtitle-inline {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  .live-indicator {
    padding: 0.2rem 0.6rem;
    flex-shrink: 0;
  }
  
  .live-text {
    font-size: 0.65rem;
  }
  
  .kill-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
  }
  
  .kill-details {
    flex-direction: row;
    align-items: center;
    gap: 0.05rem;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
  }
  
  .kill-event-icon {
    align-self: flex-start;
    margin-bottom: 0.25rem;
  }
  
  .kill-timestamp {
    margin-left: 0.5rem;
    margin-top: 0;
    align-self: center;
    font-size: 0.8rem;
  }
  
  .kills-class-image {
    width: 20px;
    height: 20px;
  }
  
  .guild-logo img {
    width: 18px;
    height: 18px;
  }
  
  .player-link {
    padding: 2px 4px;
    margin: 0 2px;
    font-size: 0.85rem;
    line-height: 1.3;
  }
  
  .guild-link {
    padding: 2px 4px;
    margin: 0 2px;
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  .online-status {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
  
  .kill-action {
    font-size: 0.8rem;
    margin: 0.2rem 0;
  }
  
  .kill-location {
    font-size: 0.8rem;
    margin: 0.2rem 0;
  }
}

/* Mobile Responsive - Small Mobile */
@media (max-width: 480px) {
  .modern-kills-header {
    padding: 0.6rem;
    gap: 0.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .kills-header-content {
    gap: 0.5rem;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .modern-kills-header .ranking-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 0.25rem;
  }
  
  .modern-kills-header .ranking-icon i {
    font-size: 0.9rem;
  }
  
  .kills-title-and-subtitle {
    gap: 0.15rem;
    text-align: center;
    width: 100%;
  }
  
  .kills-title-and-subtitle h3 {
    font-size: 1.1rem;
    line-height: 1.1;
  }
  
  .kills-subtitle-inline {
    font-size: 0.7rem;
    line-height: 1.2;
  }
  
  .live-indicator {
    padding: 0.15rem 0.5rem;
    margin-top: 0.25rem;
  }
  
  .live-text {
    font-size: 0.6rem;
  }
  
  .kill-item {
    padding: 0.6rem;
    margin: 0.4rem;
    border-radius: 6px;
  }
  
  .kill-details {
    font-size: 0.75rem;
    gap: 0.05rem;
    line-height: 1.3;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
  }
  
  .kill-event-icon {
    align-self: center;
    margin-bottom: 0;
  }
  
  .killer-name,
  .victim-name {
    font-size: 0.8rem;
    line-height: 1.2;
    word-break: break-word;
  }
  
  .kill-action {
    font-size: 0.75rem;
    margin: 0;
    text-align: left;
    width: auto;
  }
  
  .kill-location {
    font-size: 0.75rem;
    margin: 0;
  }
  
  .location-name {
    font-size: 0.75rem;
  }
  
  .kill-timestamp {
    font-size: 0.7rem;
    margin-top: 0;
    margin-left: 0.5rem;
    text-align: left;
    width: auto;
  }
  
  .kills-class-image {
    width: 18px;
    height: 18px;
  }
  
  .guild-logo img {
    width: 16px;
    height: 16px;
  }
  
  .player-link {
    padding: 1px 3px;
    margin: 0 1px;
    font-size: 0.8rem;
    line-height: 1.2;
    word-break: break-word;
  }
  
  .guild-link {
    padding: 1px 3px;
    margin: 0 1px;
    font-size: 0.7rem;
    line-height: 1.2;
  }
  
  .online-status {
    width: 8px;
    height: 8px;
    margin: 0 2px;
  }
  
  .guild-with-logo {
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
  }
  
  .guild-logo {
    margin-right: 0;
    margin-bottom: 0.1rem;
  }
}

/* Mobile Responsive - Extra Small Mobile */
@media (max-width: 320px) {
  .modern-kills-header {
    padding: 0.5rem;
    gap: 0.4rem;
  }
  
  .kills-title-and-subtitle h3 {
    font-size: 1rem;
  }
  
  .kills-subtitle-inline {
    font-size: 0.65rem;
  }
  
  .live-text {
    font-size: 0.55rem;
  }
  
  .kill-item {
    padding: 0.5rem;
    margin: 0.3rem;
  }
  
  .kill-details {
    font-size: 0.7rem;
    gap: 0.05rem;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
  }
  
  .killer-name,
  .victim-name {
    font-size: 0.75rem;
  }
  
  .kill-action,
  .kill-location {
    font-size: 0.7rem;
  }
  
  .location-name {
    font-size: 0.7rem;
  }
  
  .kill-timestamp {
    font-size: 0.65rem;
  }
  
  .kills-class-image {
    width: 16px;
    height: 16px;
  }
  
  .guild-logo img {
    width: 14px;
    height: 14px;
  }
  
  .player-link {
    font-size: 0.75rem;
    padding: 1px 2px;
  }
  
  .guild-link {
    font-size: 0.65rem;
    padding: 1px 2px;
  }
  
  .online-status {
    width: 6px;
    height: 6px;
    margin: 0 1px;
  }
}
