/* Modernized OGP Style - Wasp Theme Integration (Dark List Variant) */

/* Global styles */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #121212;
  font-size: 15px;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  color: #f1f1f1;
  background-image: none !important;
  text-shadow: none;
  overflow-x: hidden;
}

*::selection {
  background: #000;
  color: #ffffff;
}

a:link, a:visited {
  text-decoration: none;
  color: #58a6ff;
}

a:hover, a:active {
  color: #ff007c;
}

textarea {
  background-color: #1e1e1e;
  border: 1px solid #444;
  color: #f1f1f1;
  border-radius: 5px;
  padding: 8px;
}

#topmenu {
  padding: 1em;
  background-color: #1f1f1f;
  border-bottom: 1px solid #333;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

#topmenu > li {
  display: inline;
  padding: 0 12px;
  list-style: none;
}

.status_icon_onl {
  background-color: #28a745; /* Yeşil */
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 50%;
}

.status_icon_nrs {
  background-color: #dc3545; /* Kırmızı */
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 50%;
}

.status_icon_pen {
  background-color: #ffc107; /* Sarı */
  width: 14px;
  height: 14px;
  display: inline-block;
  border-radius: 50%;
}


/* Wasp-style table */
.table-container {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  background-color: #1e1e1e;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  border-left: 4px solid #b9b9b9;
  border-right: 4px solid #b9b9b9;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  color: #f1f1f1;
}

.table-container thead tr {
  background-color: #272727;
}

.table-container th, .table-container td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #333;
  font-weight: 600;
}

/* Zebra rows */
.table-container tbody tr:nth-child(odd) {
  background-color: #1f1f1f;
}

.table-container tbody tr:nth-child(even) {
  background-color: #292929;
}

.player-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px; /* sayı ile bar arası boşluk */
}

/* Player bar */
.player-bar {
  background-color: #3a3a3a;
  border-radius: 10px;
  height: 8px;
  width: 90px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2); /* Daha ince beyaz kenar */
}

.player-wrapper .bar-label {
  font-size: 13px;
  color: #fff;
  font-weight: bold;
  margin-bottom: 2px;
}

.player-bar .bar-fill {
  background-color: #ffffff !important; /* beyaz */
  height: 100%;
  width: 0%;
  transition: width 0.3s ease-in-out;
  border-radius: 10px;
}

.player-bar span {
  position: absolute;
  top: -18px; /* Barın üstüne yerleştirildi */
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #ffffff;
  font-weight: bold;
}

/* Buttons */
.connect-btn {
  background-color: #ff007c;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.connect-btn:hover {
  background-color: #d60068;
}

.search-btn {
  background-color: #00bfff;
  color: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  margin-left: 8px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.search-btn:hover {
  background-color: #00a7da;
}

/* Icons */
img.game-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.status_icon_onl, .status_icon_nrs {
  display: inline-block;
  width: 8px;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background-color: #ff3b3b;
  margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .table-container {
    width: 95%;
    margin: 20px auto;
  }

  .table-container table, .table-container thead, .table-container tbody, .table-container th, .table-container td, .table-container tr {
    display: block;
  }

  .table-container tr {
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 10px;
    background-color: #1f1f1f;
  }

  .table-container td {
    padding: 8px 10px;
    text-align: right;
    position: relative;
  }

  .table-container td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: bold;
    color: #aaa;
    text-transform: uppercase;
  }
}

/* Utility */
.center { text-align: center; }
.inline { display: inline-block; }