/* ===== Base Styles ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(to right, #eef2f3, #dbe9f4);
  padding: 0;
  min-height: 100vh;
  color: #1e293b;
  overflow-x: hidden;
}

/* ========== HEADER & BOTTOM NAV STYLES REMOVED ========== */
/* Note: Header styles ab /components/header/header.css mein hain */
/* Note: Bottom Nav styles ab /components/bottomnav/bottomnav.css mein hain */
/* Note: Drawer menu styles ab /components/header/header.css mein hain */

/* ===== Main Wrapper ===== */
.players-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* ===== PLAYER PAGE STRIPS ===== */
.player-strip {
  background: #fff;  
  box-shadow: 0 2px 16px 0 rgba(30,64,175,0.06);
  border-radius: 15px;
  margin-bottom: 18px;  
  padding: 12px 16px 12px 16px;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.player-search-strip { margin-bottom: 18px; }
.player-trending-strip { margin-bottom: 24px; padding-bottom: 20px; }

/* Search Bar inside the card */
#searchForm {
  display: flex;
  align-items: center;
  max-width: 440px;
  margin: 0 auto;
  padding: 0;
  gap: 0;
  position: relative;
}

#searchBox {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px 0 0 12px;
  font-size: 15px;
  background: #f8fafc;
  outline: none;
  transition: border 0.18s;
}

#searchBox:focus { border-color: #1e40af; }

#searchForm button {
  padding: 12px 24px;
  background: #1e40af;
  color: #fff;
  border: none;
  border-radius: 0 12px 12px 0;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background .22s;
  margin-left: -2px;
  letter-spacing: 0.5px;
}

#searchForm button:hover { background: #2563eb; }

#suggestionList {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  z-index: 10;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 12px rgba(30,64,175,0.07);
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  max-height: 220px;
  overflow-y: auto;
}

#suggestionList li {
  padding: 12px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
  border-bottom: 1px solid #f1f5f9;
}

#suggestionList li:last-child { border-bottom: none; }

#suggestionList li.active,
#suggestionList li:hover {
  background: #f0f6ff;
  color: #1e40af;
  font-weight: 500;
}

/* Trending Title */
.trending-title {
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 10px 0;
  text-align: left;
  margin-bottom: 20px;
  letter-spacing: 0.10em;
  font-family: 'Segoe UI', Arial, sans-serif;
}

#trendingList {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 13px;
  margin-bottom: 0;
}

#trendingList li {
  background: #DFEBF4;
  color: #1e40af;
  padding: 7px 15px;
  border-radius: 13px;
  font-size: 15.5px;
  font-weight: 400;
  font-style: italic;  
  cursor: pointer;
  list-style: none;
  border: 1.1px solid #e0e7ff;
  transition: background 0.16s, color 0.16s;
  box-shadow: 0 1px 5px 0 rgba(30,64,175,0.05);
}

#trendingList li:hover {
  background: linear-gradient(90deg, #1e40af 70%, #6366f1 100%);
  color: #fff;
  border-color: #6366f1;
}

/* MAIN PROFILE BOX */
#playerProfile {
  max-width: 540px;
  margin: 13px auto;
  background: #EBF1F3;
  padding: 15px 18px 15px 18px;
  border-radius: 18px;  
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* ========== INFO TABLE ========== */
.simple-info-table {
  --table-bg: #fff;
  --table-alt-bg: #f6faff;
  --table-text: #23375c;
  --table-border: #e0e5ec;
  --table-border-radius: 6px;
  
  width: min(100%, 430px);
  margin: 0 auto 1.125rem auto;
  border-collapse: separate;
  border-spacing: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background: var(--table-bg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-radius: var(--table-border-radius);
  overflow: hidden;
}

.simple-info-table th,
.simple-info-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--table-border);
  color: var(--table-text);
}

.simple-info-table th {
  font-weight: 600;
  background: var(--table-bg);
}

.simple-info-table tr:last-child td {
  border-bottom: none;
}

.simple-info-table tr:nth-child(even) td {
  background-color: var(--table-alt-bg);
}

@media (hover: hover) {
  .simple-info-table tr:hover td {
    background-color: #edf2f7;
  }
}

@media (max-width: 480px) {
  .simple-info-table {
    font-size: 0.9375rem;
  }
  .simple-info-table th,
  .simple-info-table td {
    padding: 0.625rem 0.75rem;
  }
}

#profileTitle {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: #1e40af;
  margin: 1.5rem 0;
  letter-spacing: -0.5px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  position: relative;
  display: inline-block;
  width: 100%;
}

#profileTitle::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  margin: 0.1rem auto 0;
  border-radius: 2px;
}

@media (max-width: 768px) {
  #profileTitle {
    font-size: 1.75rem;
    margin: 1rem 0;
  }
}

/* Profile Picture */
#playerPic {
  display: block;
  margin: 0 auto 1.5rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid white;
  outline: 3px solid #2563eb;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#playerPic:hover { transform: scale(1.05); }

/* Back Button - Compact Version */
#backBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0.5rem 0;
  background: white;
  color: #2563eb;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 300;
  font-style: italic;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

#backBtn:hover {
  background: #eff6ff;
  transform: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#backBtn::before {
  content: '←';
  font-size: 0.7rem;
}

/* Tab Buttons Container */
.tab-buttons {
  display: flex;
  gap: 1.0rem;
  justify-content: center;
  margin: 1.5rem auto 2rem;
  background: #eff6ff;
  border-radius: 12px;
  padding: 0.5rem;
  max-width: 800px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Tab Buttons */
.tab-btn {
  background: transparent;
  color: #334155;
  border: none;
  font-size: 1.7rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

.tab-btn:hover {
  color: #1e40af;
  background: rgba(59,130,246,0.10);
}

.tab-btn:hover::before {
  width: 60%;
}

.tab-btn.active {
  background: #fff;
  color: #1e40af;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tab-btn.active::before {
  width: 100%;
  background: #2563eb;
}

#tabContent {
  min-height: 200px;
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.08);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  border: 1px solid #e2e8f0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-pane { animation: fadeIn 0.3s ease-out; }

@media (max-width: 768px) {
  .tab-buttons { flex-wrap: wrap; margin: 1rem auto; }
  .tab-btn { padding: 0.5rem 1rem; font-size: 0.9rem; }
  #tabContent { padding: 1rem; }
  #playerProfile { max-width: 98vw; }
  #playerPic { width: 80px; height: 80px; }
}

@media (max-width: 480px) {
  #playerProfile { max-width: 100vw; }
  #playerPic { width: 70px; height: 70px; }
  .simple-info-table { font-size: 0.93rem; }
  .simple-info-table th,
  .simple-info-table td { padding: 0.55rem 0.5rem; }
}

/* Font fix for all sections above */
body, input, button, table, th, td, .player-strip { 
  font-family: 'Segoe UI', Arial, sans-serif !important; 
}

.player-rank-strip {
  margin: 2.5rem auto 0;
  max-width: 500px;
  padding: 1rem 1.5rem;
  background: #EFF6FF;
  color: #1e40af;
  font-weight: 400;
  font-size: 20px;
  border-radius: 12px 12px 12px 12px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(30,64,175,0.06);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.01em;  
}

.player-rank-strip::before {
  content: '🏆';
  font-size: 1.25rem;
  margin-right: 2px;
}

@media (max-width: 768px) {
  .player-rank-strip {
    max-width: 99vw;
    font-size: 1.02rem;
    padding: 0.9rem 0.8rem;
  }
}

/* ======= Compare Player Strip Styling ======= */
.compare-player-strip {
  max-width: 510px;  
  background: #f8fafc;
  border-radius: 1.25rem;
  box-shadow: 0 2px 16px 2px rgba(30, 64, 175, 0.08);
  padding: 12px 16px 12px 16px;  
  flex-direction: column;  
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0 auto 60px auto;
}

.compare-title {
  margin-bottom: 1.8rem;
  color: #000000;
  letter-spacing: 0.10em;
  font-size: 20px;
  font-weight: 600;
  text-align: left;
}

.compare-inputs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.compare-input-wrap {
  position: relative;
  width: 100%;
}

.compare-inputs input[type="text"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.3px solid #d2dbed;
  border-radius: 0.7rem;
  font-size: 1rem;
  color: #172554;
  background: #fff;
  outline: none;
  transition: border-color 0.18s;
}

.compare-inputs input[type="text"]:focus {
  border-color: #25409c;
  box-shadow: 0 0 0 2px #dbeafe;
}

/* Compare suggestion dropdown */
.suggestion-compare-list {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: #fff;
  border: 1.2px solid #d1d5db;
  border-radius: 0 0 11px 11px;
  box-shadow: 0 2px 12px rgba(30,64,175,0.09);
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 180px;
  z-index: 22;
  overflow-y: auto;
}

.suggestion-compare-list li {
  padding: 11px 16px;
  font-size: 14.3px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.13s, color 0.13s;
}

.suggestion-compare-list li:last-child { border-bottom: none; }

.suggestion-compare-list li.active,
.suggestion-compare-list li:hover {
  background: #f0f6ff;
  color: #1e40af;
  font-weight: 500;
}

.compare-btn {
  width: 100%;
  padding: 0.9rem 1rem;
  background: linear-gradient(to right, #25409c, #2563eb);
  color: #fff;
  font-size: 1.13rem;
  border: none;
  border-radius: 0.7rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px 0 rgba(37, 64, 156, 0.09);
  transition: background 0.16s, box-shadow 0.16s;
}

.compare-btn:hover {
  background: linear-gradient(to right, #2563eb, #25409c);
  box-shadow: 0 4px 20px 2px rgba(37, 99, 235, 0.13);
}

@media (max-width: 500px) {
  .compare-player-strip {
    max-width: 92vw;
    padding: 1.0rem 1.0rem 1rem 1.0rem;
  }
  .compare-title {
    font-size: 20px;
  }
  .compare-btn {
    font-size: 1.13rem;
    padding: 0.85rem 0.8rem;
  }
}

/* ===== Compare Result Area ===== */
.compare-result-area {
  margin: 1.2rem auto 60px auto;
  max-width: 530px;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 2px 16px 2px rgba(30, 64, 175, 0.10);
  padding: 2rem 2rem 1.5rem 2rem;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1e293b;
  display: block;
}

@media (max-width: 550px) {
  .compare-result-area {
    max-width: 95vw;
    padding: 1.1rem 0.7rem 1rem 0.7rem;
  }
}

.compare-back-btn {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  padding: 0.42rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 300;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: background 0.17s, color 0.17s;
}

.compare-back-btn:hover {
  background: #dbeafe;
  color: #1e40af;
}

.compare-heading {
  font-size: 1.21rem;
  color: #1e40af;
  font-weight: 700;
  margin: 0 0 0 0;
}

.compare-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.compare-tab-btn {
  background: #f6faff;
  border: none;
  border-radius: 6px;
  font-size: 1.03rem;
  color: #334155;
  font-weight: 500;
  padding: 0.58rem 1.3rem;
  cursor: pointer;
  transition: background 0.18s, color 0.16s;
}

.compare-tab-btn.active, 
.compare-tab-btn:hover {
  background: #2563eb;
  color: #fff;
}

@media (max-width: 600px) {
  .simple-info-table,
  .ranking-table {
    font-size: 15px !important;
  }
  .simple-info-table th,
  .simple-info-table td {
    padding: 8px 4px !important;
  }
}

/* =================== RESPONSIVE FIX =================== */
/* Desktop: footer sticks to bottom */
@media (min-width: 768px) {
  #footer-container {
    margin-top: auto;
  }
}

/* Mobile: footer sits above bottom nav */
@media (max-width: 767px) {
  #footer-container {
    margin-bottom: 55px; /* space for nav */
  }
}
