/* Main Page Layout */
.page-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Roboto', sans-serif;
  }
  
  .title-section {
    margin-bottom: 10px;
    text-align: center;
  }
  
  .title-section h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 5px;
  }
  
  .title-section h2 {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
  }
  
  /* Profile Content Layout */
  .profile-content {
    background-color: #EFDCAB;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  .profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
  }
  
  /* Player Info Card */
  .player-info-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .profile-image {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #4682b4;
    margin-bottom: 1px;
  }
  
  .player-info {
    width: 100%;
    text-align: center;
  }
  
  .player-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #2c3e50;
  }
  
  .player-info p {
    margin: 10px 0;
    color: #555;
  }
  
  .player-info strong {
    font-weight: 600;
    color: #333;
  }
  
  .bio {
    margin-top: 2px;
    padding: 10px;
    background-color: #f1f5f9;
    border-radius: 6px;
  }
  
  .bio h4 {
    font-size: 1rem;
    color: #3498db;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .edit-profile-button {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
  }
  
  .edit-profile-button:hover {
    background-color: #2980b9;
  }
  
  /* Stats and Badges Section */
  .stats-badges-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  /* Stats Card */
  .stats-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .stats-card h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  .stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .stat-item {
    text-align: center;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
  }
  
  .stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
  }
  
  /* Recent Activity Card */
  .recent-activity-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .recent-activity-card h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  .table-wrapper {
    overflow-x: auto;
  }
  
  .activity-table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .activity-table th {
    padding: 12px;
    text-align: left;
    background-color: #f1f5f9;
    color: #2c3e50;
    font-weight: 600;
  }
  
  .activity-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
  }
  
  .win-row {
    background-color: rgba(46, 204, 113, 0.1);
    background-color: #D5E5D5;    
  }
  
  .loss-row {
    background-color: rgba(231, 76, 60, 0.1);
  }
  
  .opponent-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
  }
  
  .opponent-link:hover {
    text-decoration: underline;
  }
  
  .result-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.8rem;
  }
  
  .win {
    background-color: #2ecc71;
    color: white;
  }
  
  .loss {
    background-color: #e74c3c;
    color: white;
  }
  
  .no-recent-activity {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
  }
  
  /* Badges Card */
  .badges-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .badges-card h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  .badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
  }
  
  .badge-item {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    position: relative;
    transition: transform 0.2s;
  }
  
  .badge-item:hover {
    transform: translateY(-3px);
  }
  
  .badge-image {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
  }
  
  .badge-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
  }
  
  .badge-date {
    font-size: 0.8rem;
    color: #7f8c8d;
  }
  
  .info-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .info-icon:hover {
    color: #2980b9;
  }
  
  .no-badges {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
  }
  
  /* Tooltip styles */
  [data-tooltip] {
    position: relative;
  }
  
  [data-tooltip]:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
  }  
  
  [data-tooltip]:hover:after {
    opacity: 1;
  }
  



/* --- End Simplified Player Level Display Styling --- */


.player-level-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.player-level-icon-container {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.level-icon-large {
  width: 150px;  /* Adjust size as needed */
  height: auto; /* Adjust size as needed */
}

.level-icon-raw-large {
  font-size: 64px; /* For icon fonts - adjust as needed */
  display: block;
}

.level-icon-large-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
}

.player-level-display {
  background-color: #EAD196;
  color: #88304E;
  align-items: center;
  border: 2px solid #FFA725;
  border-radius: 8px;
  padding: 5px;
}





@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&display=swap');

.artistic-player-display {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  margin: 1.5rem 0;
}

.username-frame {
  position: relative;
  border-left: 2px solid #F4B942;
  border-right: 2px solid #F4B942;
  padding: 0.6rem 2rem;
  background-color: #6A9C89;
}

.username-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #F4B942;
  margin: 0;
  letter-spacing: 1px;
  line-height: 1.2;
  position: relative;
  z-index: 2;
  text-shadow: 
    2px 2px 0 rgba(0,0,0,0.2),
    -1px -1px 0 rgba(255,255,255,0.3),
    0 1px 3px rgba(50,50,50,0.3);
  transform: perspective(500px) rotateX(5deg);
  transform-origin: center center;
}

.star-accent {
  font-size: 1.4rem;
  color: #F4B942;
  vertical-align: middle;
  margin: 0 6px;
  text-shadow: 
    2px 2px 2px rgba(0,0,0,0.3),
    -1px -1px 0 rgba(255,255,255,0.2),
    0 0 4px rgba(255,204,0,0.5);
  transform: translateZ(5px);
  display: inline-block;
}

.corner-accent {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6A9C89, #3a6d96);
  box-shadow: 
    inset -2px -2px 3px rgba(0,0,0,0.3),
    inset 2px 2px 3px rgba(255,255,255,0.3),
    0 2px 4px rgba(0,0,0,0.4);
  transform: translateZ(3px);
}

.top-left {
  top: -6px;
  left: -6px;
}

.top-right {
  top: -6px;
  right: -6px;
}

.bottom-left {
  bottom: -6px;
  left: -6px;
}

.bottom-right {
  bottom: -6px;
  right: -6px;
}

.accent-line {
  position: absolute;
  height: 3px;
  width: 70%;
  background: linear-gradient(90deg, #F4B942, #5f9ea0, #F4B942);
  left: 15%;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.4),
    0 0 6px rgba(255,204,0,0.5);
  transform: translateZ(2px);
  border-radius: 1.5px;
  overflow: hidden;
}

.accent-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.3), 
    rgba(255,255,255,0.7), 
    rgba(255,255,255,0.3));
}

.top-line {
  top: 0;
}

.bottom-line {
  bottom: 0;
}





@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&family=Roboto:wght@400;500&display=swap');

.reputation-display {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0.8rem 0;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(to right, rgba(70, 130, 180, 0.1), rgba(70, 130, 180, 0.2), rgba(70, 130, 180, 0.1));
  border-radius: 4px;
}

.reputation-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #555555;
  margin-right: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.reputation-value {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: #4682b4;
  position: relative;
  text-shadow: 
    1px 1px 1px rgba(0,0,0,0.2),
    -1px -1px 0 rgba(255,255,255,0.3);
  background-color: white;
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 
    0 2px 4px rgba(0,0,0,0.15),
    inset 0 1px 3px rgba(255,255,255,0.8);
  margin: 0 4px;
}

.reputation-icon {
  margin-left: 6px;
  color: #F4B942;
  font-size: 0.9rem;
  display: inline-block;
  transform: translateZ(2px);
  text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.reputation-bar {
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(to right, transparent, #4682b4, transparent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}




  /* Responsive Design */
  @media (max-width: 768px) {
    .profile-grid {
      grid-template-columns: 1fr;
    }
    
    .stats-container {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .badges-grid {
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
  }
  
  @media (max-width: 480px) {
    .stats-container {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .page-grid {
      padding: 0;
    }
    
    .player-info-card {
      padding: 0.5rem 0;
    }
    
    .profile-image {
      width: 120px;
      height: 120px;
    }

    .title-section {
      margin-top: 0.5rem;
      margin-bottom: 0;
    }
    
    .title-section h1 {
      font-size: 1.5rem;
    }
    
    .profile-grid {
      gap: 10px;
      padding: 10px 0;
    }
    
    .stats-card,
    .recent-activity-card,
    .badges-card {
      padding: 10px 5px;
    }
    
    .stats-card h3,
    .recent-activity-card h3,
    .badges-card h3 {
      font-size: 1.2rem;
      margin-bottom: 10px;
    }
    
    .stat-item {
      padding: 8px 2px;
    }
    
    .stat-number {
      font-size: 1.4rem;
    }
    
    .badges-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .activity-table th,
    .activity-table td {
      padding: 8px 4px;
      font-size: 0.9rem;
    }
  }