@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
    font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}
.game-container{
    margin: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    justify-content: center;
}
.main{  
  background-color: #111927;
  color: white;
}

/* Genel ayarlar */
.game-card {
  position: relative;
  width: 238px;
  height: 380px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Hover efekti */
.game-card:hover {
  transform: scale(1.05);
}

.game-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px); 
  padding: 10px;
  text-align: center;
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
}
.game-image-container {
  position: relative;
  width: 100%;
  height: 390px; /* Container için sabit yükseklik */
  overflow: hidden;
}
.game-image {
  width: 100%;
  height: 100%; /* Container'ın tamamını kaplasın */
  object-fit: cover;
  object-position: center; /* Resmi yatay ve dikey olarak ortala */
}
.online-status {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: help;
}
.online-status.online {
  background-color: #28a745;
}
.online-status.offline {
  background-color: #dc3545;
}

/* Tablo Style */
.table.dataTable thead th, table.dataTable thead td,
.dataTables_length label,
.dataTables_length select,
.dataTables_filter label,
.dataTables_filter input,
.dataTables_wrapper .dataTables_paginate{
  color: #fff;
}
.table.dataTable.no-footer{
  border-top: 1px solid #fff;
  margin-top: 60px;
}
.dataTables_length select option{
  color: #111927;
}
#OyuncuListesi img{
  width: 35px;
  height: 35px;
}
#OyuncuListesi a{
  text-decoration: none;
  font-size: 24px;
  color: #000;
}
.LobiKodu{
  color: #FF5722;  
}
.sticky-header,
.table tbody{
  background-color: #fff;
}
/* Responsive design */
@media (max-width: 1200px) {
  .game-card {
    width: 48%; /* 2 items per row */
  }
  .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; 
      }
}
@media (min-width: 992px) { 
      .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Menü hizası */
      }
    }

@media (max-width: 992px) {
  .game-card {
    width: 30%; /* 3 items per row */
  }
}

@media (max-width: 768px) {
  .game-card {
    width: 45%; /* 2 items per row */
  }
}

@media (max-width: 576px) {
  .game-card {
    width: 100%; /* 1 item per row */
  }
}

/* Modern Tablo Stili */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: none;
}

.table thead th {
    background: #f8f9fa;
    border: none;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2d3436;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

.table td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #f1f2f6;
    color: #636e72;
    font-size: 0.95rem;
}

/* Modern Buton Stili */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(45deg, #4834d4, #686de0);
    box-shadow: 0 4px 15px rgba(72, 52, 212, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #686de0, #4834d4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(72, 52, 212, 0.2);
}

.btn-secondary {
    background: #f1f2f6;
    color: #2d3436;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #dfe4ea;
    color: #2d3436;
    transform: translateY(-2px);
}

/* Form Elemanları */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 2px solid #f1f2f6;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #4834d4;
    box-shadow: 0 0 0 3px rgba(72, 52, 212, 0.1);
}

/* Card Stili */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: #f8f9fa;
    border-bottom: none;
    padding: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

/* Pagination */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: #4834d4;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #4834d4;
    color: white;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: #4834d4;
    color: white;
}

/* Rank Hizalama */
.rank-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.rank-cell img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

.rank-cell span {
    display: inline-flex;
    align-items: center;
}

/* Lobi Kodu Stili */
.lobby-code {
    background: linear-gradient(45deg, #4834d4, #686de0);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
}

/* Kullanıcı Durumu */
.user-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4834d4;
}

.user-status.online .status-dot {
    background: #2ecc71;
}

.user-status.offline .status-dot {
    background: #e74c3c;
}