/* Global Reset & Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Keep Orbitron font for specific Hack Slash titles */
.hero h1 {
  font-family: 'Orbitron', sans-serif;
}

.about-header h2 {
  font-family: 'Orbitron', sans-serif;
}

.forum-header h1 {
  font-family: 'Orbitron', sans-serif;
}

.recent-topics h2 {
  font-family: 'Orbitron', sans-serif;
}

.leaderboard-header h1 {
  font-family: 'Orbitron', sans-serif;
}

.leaderboard-section h2 {
  font-family: 'Orbitron', sans-serif;
}

.card-collection-header h1 {
  font-family: 'Orbitron', sans-serif;
}

.filter-section h2 {
  font-family: 'Orbitron', sans-serif;
}

.cards-section h2 {
  font-family: 'Orbitron', sans-serif;
}

.profile-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: #ca497f;
  text-shadow: none;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
  text-align: center;
}

.profile-header p {
  color: #555;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.3px;
  text-align: center;
  margin-bottom: 20px;
}

.auth-header h1 {
  font-family: 'Orbitron', sans-serif;
}

/* Background & Base Text */
body {
  background-image: url('background/BG 2.gif'), linear-gradient(135deg, #a03060, #021a40);
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  padding-top: 110px; /* space for fixed navbar */
  position: relative;
}

/* Dark overlay to reduce background distraction */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
  pointer-events: none;
}

/* Navbar Styles */
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(230, 230, 230, 0.95); /* More opaque for better visibility */
  border-bottom: 1px solid rgba(202, 73, 127, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  backdrop-filter: blur(10px); /* Add blur effect for modern look */
}

.navbar-left .logo {
  height: 50px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.patch-icon,
a.patch-icon,
.navbar-right .patch-icon {
  display: none !important; /* Hidden on all devices */
  visibility: hidden !important;
  opacity: 0 !important;
}

.navbar-right button {
  background: #ca497f;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  letter-spacing: 0.3px;
}

.navbar-right button:hover {
  background: #e05590;
}

/* Hero Section */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 3rem;
  color: #ca497f;
  text-shadow: none;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px auto;
  color: #555;
  text-align: center;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.5px;
}

/* Main Container Styles */
.main-container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Container Styles */
.hero-container {
  background: rgba(230, 230, 230, 0.85);
  border: 1px solid rgba(202, 73, 127, 0.1);
  border-radius: 16px;
  padding: 20px;
  max-width: 1160px;
  width: 100%;
  box-shadow: 0 0 20px rgba(202, 73, 127, 0.3);
  margin: 20px auto;
  transition: transform 0.3s ease;
  text-align: center;
}

.hero-container:hover {
  transform: scale(1.03);
  border-color: #ca497f;
}

/* Video Container Styles */
.video-container {
  position: relative;
  width: 100%;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(202, 73, 127, 0.3);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}
/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
    padding-top: 80px;
  }
  
  .navbar {
    padding: 10px 15px;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
  }
  
  /* Hide patch notes button on mobile */
  .patch-icon {
    display: none !important;
  }
  
  .navbar-left .logo {
    height: 40px;
  }
  
  .navbar-right {
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .navbar-right button {
    padding: 8px 12px;
    font-size: 0.9rem;
    min-height: 36px;
    min-width: 60px;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .main-container {
    padding: 0 10px;
    max-width: 100%;
  }
  
  .hero-container {
    padding: 20px 15px;
    margin: 20px auto;
  }
  
  .play-button img {
    height: 50px;
  }
  
  .secondary-navbar {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    margin: 20px 10px;
  }
  
  .secondary-navbar a {
    font-size: 1rem;
    padding: 12px 20px;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .card {
    padding: 20px 15px;
    margin: 20px auto;
  }
  
  footer {
    margin-top: 30px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px 5px;
    padding-top: 70px;
  }
  
  .navbar {
    padding: 8px 10px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
  }
  
  /* Hide patch notes button on small mobile */
  .patch-icon {
    display: none !important;
  }
  
  .navbar-left .logo {
    height: 35px;
  }
  
  .navbar-right button {
    padding: 5px 10px;
    font-size: 0.8rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .play-button img {
    height: 40px;
  }
  
  .secondary-navbar {
    background: rgba(0, 0, 0, 0.7);
  }
  
  .secondary-navbar a {
    font-size: 0.9rem;
    padding: 6px 12px;
    color: #fff;
  }
  
  .card {
    padding: 10px;
  }
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  margin-right: 15px;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background: #ca497f;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 0;
}

/* Secondary Navbar Container */
.secondary-navbar-container {
  display: flex;
  justify-content: center; /* centers navbar inside page */
  margin-top: 10px;
  width: 100%;
}
.secondary-navbar {
  background: rgba(230, 230, 230, 0.85);
  padding: 10px 0;
  max-width: 800px; /* same as cards */
  width: 100%;      /* stretch to max width */
  display: flex;
  justify-content: center;
  gap: 30px;
  border-radius: 8px;
  border: 1px solid rgba(202, 73, 127, 0.1);
}

.secondary-navbar a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  transition: color 0.3s;
  padding: 10px 20px;
  border-radius: 6px;
}

.secondary-navbar a:hover {
  color: #ca497f;
  background: rgba(202, 73, 127, 0.1);
}

/* Responsive adjustments for secondary navbar */
@media (max-width: 768px) {
  .secondary-navbar {
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
  }
  
  .secondary-navbar a {
    font-size: 1rem;
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  
  .secondary-navbar a:last-child {
    border-bottom: none;
  }
  
  .secondary-navbar a:hover {
    background: rgba(202, 73, 127, 0.2);
    color: #fff;
  }
}

@media (max-width: 480px) {
  .secondary-navbar {
    background: rgba(0, 0, 0, 0.7);
    padding: 8px;
  }
  
  .secondary-navbar a {
    font-size: 0.9rem;
    padding: 10px 12px;
    color: #fff;
  }
}

/* Google Play Button */
.play-button {
  display: block;
  margin: 0 auto 30px auto;
  text-align: center;
  transition: transform 0.2s ease;
}

.play-button img {
  height: 60px;
}

.play-button:hover {
  transform: scale(1.05);
}

/* Cards / Features */
.card {
  background: rgba(255, 255, 255, 0.95); /* More opaque for better visibility */
  border: 1px solid rgba(202, 73, 127, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px); /* Add blur effect */
  padding: 20px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 0 20px rgba(202, 73, 127, 0.3);
  margin: 40px auto;
  transition: transform 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: scale(1.03);
  border-color: #ca497f;
}

.card h2 {
  color: #ca497f;
  margin-bottom: 15px;
  text-shadow: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.card p {
  color: #555;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* Footer */
footer {
  margin-top: 60px;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
}

/* Disable hover animations on non-button containers */
.hero-container:hover,
.card:hover,
.category-card:hover,
.topic-item:hover,
.player-row:hover,
.template-card:hover,
.profile-card:hover,
.stats-grid .stat-card:hover,
.stat-card:hover,
.feature-item:hover,
.about-main-card:hover,
.reply-item:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: inherit !important;
}

/* Also cancel inner image scaling on card hover */
.card-item:hover .card-image,
.card-item:hover,
.card-item.locked:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: inherit !important;
}

/* Forum Styles */
.forum-container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}

.forum-header {
  text-align: center;
  margin-bottom: 40px;
}

.forum-header h1 {
  font-size: 2.5rem;
  color: #ca497f;
  text-shadow: none;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
}

.forum-header p {
  color: #555;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.forum-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.category-card {
  background: rgba(230, 230, 230, 0.85);
  border: 1px solid rgba(202, 73, 127, 0.1);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(202, 73, 127, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(202, 73, 127, 0.5);
  border-color: #ca497f;
}

.category-card h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.category-card p {
  color: #555;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.category-stats {
  display: flex;
  justify-content: space-between;
  color: #a0a0a0;
  font-size: 0.85rem;
}

.recent-topics {
  background: rgba(230, 230, 230, 0.85);
  border: 1px solid rgba(202, 73, 127, 0.1);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(202, 73, 127, 0.3);
}

.recent-topics h2 {
  color: #ca497f;
  margin-bottom: 20px;
  text-align: center;
}

.topic-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(202, 73, 127, 0.1);
  transition: background 0.2s ease;
}

.topic-item:last-child {
  border-bottom: none;
}

.topic-item:hover {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding-left: 15px;
  padding-right: 15px;
  border-color: #ca497f;
}

.topic-info h4 {
  color: #333;
  margin-bottom: 5px;
  font-size: 1rem;
  margin-bottom: 5px;
  font-size: 1rem;
}

.topic-meta {
  color: #a0a0a0;
  font-size: 0.85rem;
}

.topic-stats {
  text-align: right;
  color: #a0a0a0;
  font-size: 0.85rem;
}

/* Reddit-like vote column */
.vote-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.vote-button {
  background: transparent;
  border: none;
  color: #a0a0a0;
  cursor: pointer;
  font-size: 1.1rem;
}

.vote-button.active.upvote { color: #ef4444; }
.vote-button.active.downvote { color: #3b82f6; }

.vote-score {
  font-weight: 700;
  color: #333;
}

/* Topic page layout (post with vote bar) */
.forum-topic-container .post,
.forum-topic-container .reply {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 15px;
}

.forum-topic-container .post .post-content,
.forum-topic-container .reply .post-content {
  grid-column: 2 / 3;
}

.forum-topic-container .post .post-header,
.forum-topic-container .reply .post-header,
.forum-topic-container .post .post-footer,
.forum-topic-container .reply .post-footer {
  grid-column: 2 / 3;
}

.vote-column.small {
  grid-column: 1 / 2;
}

.comments-thread {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(202, 73, 127, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px); /* Add blur effect */
  padding: 16px;
  margin-top: 20px;
}

.comment-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(202, 73, 127, 0.1);
}

.comment-meta {
  color: #777;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.comment-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* Comment Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: min(600px, 92vw);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  border: 1px solid rgba(202, 73, 127, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.modal-body { padding: 16px; }
.modal-actions { padding: 12px 16px; display: flex; gap: 10px; justify-content: flex-end; }

.close-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
}

.open-comment-btn {
  background: #ca497f;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.new-topic-btn {
  background: #ca497f;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  display: block;
  margin: 30px auto;
  font-family: 'Orbitron', sans-serif;
}

.new-topic-btn:hover {
  background: #e05590;
}

.back-link {
  color: #ca497f;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #ffffff;
}

/* Leaderboard Styles */
.leaderboard-container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 40px;
}

.leaderboard-header h1 {
  font-size: 2.5rem;
  color: #ca497f;
  text-shadow: none;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
}

.leaderboard-header p {
  color: #555;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.leaderboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: rgba(230, 230, 230, 0.85);
  border: 1px solid rgba(202, 73, 127, 0.1);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 0 20px rgba(202, 73, 127, 0.3);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
  border-color: #ca497f;
}

.stat-card i {
  font-size: 2.5rem;
  color: #f9a8d4;
  margin-bottom: 15px;
}

.stat-card h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.stat-card p {
  color: #ff008c;
  font-size: 1.8rem;
  font-weight: bold;
}

.leaderboard-section {
  background: rgba(230, 230, 230, 0.85);
  border: 1px solid rgba(202, 73, 127, 0.1);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(202, 73, 127, 0.3);
  margin-bottom: 30px;
}

.leaderboard-section h2 {
  color: #ca497f;
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.5rem;
}

.leaderboard-section h2 i {
  margin-right: 10px;
}

.leaderboard-table {
  width: 100%;
  overflow-x: auto; /* Enable horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  scrollbar-width: thin; /* Thin scrollbar on Firefox */
  scrollbar-color: rgba(202, 73, 127, 0.3) transparent; /* Custom scrollbar color */
}

/* Custom scrollbar styling for WebKit browsers */
.leaderboard-table::-webkit-scrollbar {
  height: 8px;
}

.leaderboard-table::-webkit-scrollbar-track {
  background: rgba(202, 73, 127, 0.1);
  border-radius: 4px;
}

.leaderboard-table::-webkit-scrollbar-thumb {
  background: rgba(202, 73, 127, 0.3);
  border-radius: 4px;
}

.leaderboard-table::-webkit-scrollbar-thumb:hover {
  background: rgba(202, 73, 127, 0.5);
}

.table-header {
  display: grid;
  grid-template-columns: 60px 2.5fr 100px 100px 100px 100px;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 2px solid rgba(202, 73, 127, 0.5);
  border-top: 1px solid rgba(202, 73, 127, 0.3);
  border-left: 1px solid rgba(202, 73, 127, 0.3);
  border-right: 1px solid rgba(202, 73, 127, 0.3);
  font-weight: bold;
  color: #ca497f;
  font-size: 0.9rem;
  background: rgba(202, 73, 127, 0.05);
}

/* Responsive Player column header styling */
@media (min-width: 1200px) {
  .table-header .player-col {
    color: #000000; /* Black text for "Player" header */
    text-align: center; /* Center the "Player" text */
    padding-left: 200px; /* Large screens */
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .table-header .player-col {
    color: #000000; /* Black text for "Player" header */
    text-align: center; /* Center the "Player" text */
    padding-left: 150px; /* Medium-large screens */
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .table-header .player-col {
    color: #000000; /* Black text for "Player" header */
    text-align: center; /* Center the "Player" text */
    padding-left: 100px; /* Medium screens */
  }
}

@media (max-width: 768px) {
  .table-header .player-col {
    color: #000000; /* Black text for "Player" header */
    text-align: center; /* Center the "Player" text */
    padding-left: 20px; /* Small screens */
  }
}

.player-row {
  display: grid;
  grid-template-columns: 60px 2.5fr 100px 100px 100px 100px;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(202, 73, 127, 0.3);
  border-left: 1px solid rgba(202, 73, 127, 0.2);
  border-right: 1px solid rgba(202, 73, 127, 0.2);
  transition: background 0.2s ease;
  cursor: pointer;
}

.player-row:hover {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding-left: 15px;
  padding-right: 15px;
  border-color: #ca497f;
}

.player-row.top-3 {
  background: rgba(249, 168, 212, 0.1);
  border-left: 4px solid #ca497f;
  padding-left: 20px;
}

/* Special styling for top 3 ranks */
.player-row.rank-1 .rank-col {
  color: #000000; /* Black */
  font-weight: bold;
  font-size: 1.2rem;
}

.player-row.rank-2 .rank-col {
  color: #000000; /* Black */
  font-weight: bold;
  font-size: 1.1rem;
}

.player-row.rank-3 .rank-col {
  color: #000000; /* Black */
  font-weight: bold;
  font-size: 1.1rem;
}

/* Enhanced styling for rank 1 (Gold) */
.player-row.rank-1 {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.15));
  border-left: 6px solid #FFD700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4), inset 0 0 20px rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  margin: 2px 0;
}

/* Enhanced styling for rank 2 (Silver) */
.player-row.rank-2 {
  background: linear-gradient(135deg, rgba(230, 230, 250, 0.2), rgba(230, 230, 250, 0.1));
  border-left: 6px solid #E6E6FA;
  box-shadow: 0 0 20px rgba(230, 230, 250, 0.3), inset 0 0 15px rgba(230, 230, 250, 0.08);
  border-radius: 8px;
  margin: 2px 0;
}

/* Enhanced styling for rank 3 (Bronze) */
.player-row.rank-3 {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.2), rgba(255, 140, 0, 0.1));
  border-left: 6px solid #FF8C00;
  box-shadow: 0 0 18px rgba(255, 140, 0, 0.3), inset 0 0 12px rgba(255, 140, 0, 0.08);
  border-radius: 8px;
  margin: 2px 0;
}

/* Glow animations */
@keyframes goldGlow {
  from { text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4); }
  to { text-shadow: 0 0 20px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.6); }
}

@keyframes silverGlow {
  from { text-shadow: 0 0 12px rgba(230, 230, 250, 0.7), 0 0 25px rgba(230, 230, 250, 0.3); }
  to { text-shadow: 0 0 18px rgba(230, 230, 250, 0.9), 0 0 35px rgba(230, 230, 250, 0.5); }
}

@keyframes bronzeGlow {
  from { text-shadow: 0 0 10px rgba(255, 140, 0, 0.6), 0 0 20px rgba(255, 140, 0, 0.3); }
  to { text-shadow: 0 0 15px rgba(255, 140, 0, 0.8), 0 0 30px rgba(255, 140, 0, 0.5); }
}

.player-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.player-avatar {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.player-name {
  color: #333;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 5px;
}

.player-clan {
  color: #a0a0a0;
  font-size: 0.8rem;
}

.rank-col, .level-col, .wins-col, .stats-col {
  display: flex;
  align-items: center;
  color: #242424;
  font-size: 0.9rem;
}

.rank-col {
  font-weight: bold;
  color: #000000; /* Black for all ranks */
  padding-left: 10px; /* Move rank text to the right */
}

/* Desktop player column styling */
@media (min-width: 769px) {
  .player-col {
    display: flex;
    align-items: center;
    min-width: 0; /* Allow flex item to shrink */
  }
  
  .player-name {
    padding-left: 20px; /* Move only the player name text to the right (desktop only) */
  }
}

/* Mobile player column styling */
@media (max-width: 768px) {
  .player-col {
    display: flex;
    align-items: center;
    min-width: 0; /* Allow flex item to shrink */
  }
  
  .player-name {
    padding-left: 10px; /* Move only the player name text to the right (mobile) */
  }
}

.top-3 .rank-col {
  font-size: 1.1rem;
}

/* Stats Column Styles */
.stats-col {
  flex: 1;
  justify-content: center;
}

.stats-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
}

.stats-dropdown {
  background: rgba(202, 73, 127, 0.1);
  border: 1px solid rgba(202, 73, 127, 0.3);
  border-radius: 8px;
  padding: 5px 10px;
  color: #242424;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.stats-dropdown:hover {
  background: rgba(202, 73, 127, 0.2);
  border-color: rgba(202, 73, 127, 0.5);
}

.stats-dropdown:focus {
  outline: none;
  border-color: #ca497f;
  box-shadow: 0 0 0 2px rgba(202, 73, 127, 0.2);
}

.stats-value {
  font-weight: 500;
  color: #242424;
}

.season-info {
  background: rgba(230, 230, 230, 0.85);
  border: 1px solid rgba(202, 73, 127, 0.1);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 0 20px rgba(202, 73, 127, 0.3);
}

.season-info h3 {
  color: #ca497f;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.season-info h3 i {
  margin-right: 10px;
}

.season-info p {
  color: #555;
  font-size: 1rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .leaderboard-stats {
    grid-template-columns: 1fr;
  }
  
  .table-header, .player-row {
    grid-template-columns: 60px 3fr 120px 100px 100px 100px; /* Wider player column and level column for mobile */
    gap: 30px; /* Much larger gap for mobile */
    font-size: 0.9rem; /* Same as desktop font size */
    min-width: 750px; /* Increased to accommodate much wider layout */
  }
  
  .player-info {
    gap: 10px;
  }
  
  /* Move player column contents much further to the left for extreme separation from level */
  .player-col {
    justify-content: flex-start;
    padding-left: 0;
    margin-left: -30px; /* Move contents much further left */
  }
  
  .player-name {
    text-align: left;
    margin-left: -20px; /* Much more left margin for player name */
  }
  
  .player-avatar {
    margin-left: -15px; /* Move avatar much further left */
  }
  
  .player-avatar {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .player-name {
    font-size: 0.9rem;
  }
  
  .player-clan {
    font-size: 0.7rem;
  }
}

/* Card Collection Styles */
.card-collection-container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}

.card-collection-header {
  text-align: center;
  margin-bottom: 40px;
}

.card-collection-header h1 {
  font-size: 2.5rem;
  color: #ca497f;
  text-shadow: none;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
}

.card-collection-header p {
  color: #555;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.card-collection-interface {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.filter-section {
  background: rgba(230, 230, 230, 0.85);
  border: 1px solid rgba(202, 73, 127, 0.2);
  border-radius: 16px;
  padding: 25px;
  height: fit-content;
  box-shadow: 0 4px 15px rgba(202, 73, 127, 0.1);
}

.filter-section h2 {
  color: #ca497f;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.filter-section h2 i {
  margin-right: 10px;
}

.filter-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.filter-group select {
  padding: 10px 12px;
  border: 1px solid rgba(202, 73, 127, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 1);
  color: #333;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-group select:hover {
  border-color: rgba(202, 73, 127, 0.5);
  background: rgba(255, 255, 255, 1);
}

.filter-group select:focus {
  outline: none;
  border-color: #ca497f;
  box-shadow: 0 0 0 2px rgba(202, 73, 127, 0.2);
}

.filter-group select option {
  background: white;
  color: #333;
  padding: 8px;
}

.card-count {
  margin-top: 20px;
  padding: 15px;
  background: rgba(202, 73, 127, 0.1);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: #ca497f;
}

.cards-section {
  background: rgba(230, 230, 230, 0.85);
  border: 1px solid rgba(202, 73, 127, 0.2);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(202, 73, 127, 0.1);
}

.cards-section h2 {
  color: #ca497f;
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.cards-section h2 i {
  margin-right: 10px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.cards-grid::-webkit-scrollbar {
  width: 8px;
}

.cards-grid::-webkit-scrollbar-track {
  background: rgba(202, 73, 127, 0.1);
  border-radius: 4px;
}

.cards-grid::-webkit-scrollbar-thumb {
  background: rgba(202, 73, 127, 0.3);
  border-radius: 4px;
}

.cards-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(202, 73, 127, 0.5);
}

/* No Results Message */
.no-results-message {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.no-results-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.9));
  border: 2px solid rgba(202, 73, 127, 0.2);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(202, 73, 127, 0.1);
}

.no-results-card i {
  font-size: 48px;
  color: rgba(202, 73, 127, 0.5);
  margin-bottom: 20px;
}

.no-results-card h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 24px;
}

.no-results-card p {
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}

.card-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 240, 240, 0.9));
  border: 2px solid rgba(202, 73, 127, 0.2);
  border-radius: 12px;
  padding: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-item:hover {
  transform: translateY(-5px);
  border-color: rgba(202, 73, 127, 0.4);
  box-shadow: 0 8px 25px rgba(202, 73, 127, 0.2);
}

.card-image-container {
  width: 100%;
  background: linear-gradient(135deg, rgba(202, 73, 127, 0.1), rgba(160, 48, 96, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.card-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.card-item:hover .card-image {
  transform: scale(1.05);
}

.card-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(202, 73, 127, 0.6);
  font-size: 2rem;
  gap: 10px;
}

.card-image-placeholder i {
  font-size: 3rem;
}

.card-image-placeholder span {
  font-size: 0.9rem;
  font-weight: 600;
}

.card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-shrink: 0;
}

.card-cost {
  background: linear-gradient(135deg, #ca497f, #a03060);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  min-width: 40px;
  text-align: center;
}

.card-type {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card-type.hacking {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
}

.card-type.defending {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
}

.card-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 15px;
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.card-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.stat {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.stat.atk {
  background: rgba(255, 107, 107, 0.2);
  color: #d63031;
}

.stat.hp {
  background: rgba(78, 205, 196, 0.2);
  color: #00b894;
}

.card-rarity {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.card-rarity.common {
  background: #34495e;
  color: white;
}

.card-rarity.elite {
  background: #f39c12;
  color: white;
}

.card-rarity.special {
  background: #8e44ad;
  color: white;
}

.card-category {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.7rem;
  color: #999;
  font-style: italic;
  z-index: 2;
}

.loading-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #ca497f;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-collection-interface {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .filter-section {
    order: 2;
  }
  
  .cards-section {
    order: 1;
  }
  
  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
  
  .card-image-container {
    height: 150px;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .card-name {
    font-size: 1.1rem;
  }
  
  .card-description {
    font-size: 0.85rem;
  }
}

/* Deck Builder Styles (Legacy - keeping for compatibility) */
.deck-builder-container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}

/* Forum Topic container width */
.forum-topic-container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.deck-builder-header {
  text-align: center;
  margin-bottom: 40px;
}

.deck-builder-header h1 {
  font-size: 2.5rem;
  color: #ca497f;
  text-shadow: none;
  margin-bottom: 10px;
}

.deck-builder-header p {
  color: #555;
  font-size: 1.1rem;
}

.deck-builder-interface {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.card-collection {
  background: rgba(230, 230, 230, 0.85);
  border: 1px solid rgba(202, 73, 127, 0.1);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(202, 73, 127, 0.3);
}

.card-collection h2 {
  color: #ca497f;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card-collection h2 i {
  margin-right: 10px;
}

.filter-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  color: #555;
  font-size: 0.9rem;
  font-weight: bold;
}

.filter-group select {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #ffffff;
  padding: 8px 12px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
}

.filter-group select:focus {
  outline: none;
  border-color: #f9a8d4;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  max-height: 500px;
  overflow-y: auto;
}

.card-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(202, 73, 127, 0.15);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(202, 73, 127, 0.4);
  border-color: #ca497f;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-cost {
  background: #ca497f;
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.card-type {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.card-type.attack {
  background: rgba(239, 68, 68, 0.8);
  color: white;
}

.card-type.defense {
  background: rgba(34, 197, 94, 0.8);
  color: white;
}

.card-type.utility {
  background: rgba(59, 130, 246, 0.8);
  color: white;
}

.card-name {
  color: #333;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 1rem;
}

.card-description {
  color: #555;
  font-size: 0.85rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-rarity {
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
}

.card-rarity.common { color: #9ca3af; }
.card-rarity.rare { color: #60a5fa; }
.card-rarity.epic { color: #a855f7; }
.card-rarity.legendary { color: #f59e0b; }

.deck-area {
  background: rgba(230, 230, 230, 0.85);
  border: 1px solid rgba(202, 73, 127, 0.1);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(202, 73, 127, 0.3);
}

.deck-area h2 {
  color: #ca497f;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.deck-area h2 i {
  margin-right: 10px;
}

.deck-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.95); /* More opaque for better visibility */
  border-radius: 8px;
  padding: 12px;
  backdrop-filter: blur(10px); /* Add blur effect */
  text-align: center;
}

.stat-label {
  color: #555;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 5px;
}

.stat-value {
  color: #f9a8d4;
  font-size: 1.2rem;
  font-weight: bold;
}

.deck-cards {
  min-height: 200px;
  margin-bottom: 25px;
}

.empty-deck-message {
  text-align: center;
  color: #555;
  padding: 40px 20px;
}

.empty-deck-message i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #f9a8d4;
}

.deck-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(202, 73, 127, 0.15);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}

.deck-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.deck-card-cost {
  background: #ca497f;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.deck-card-type {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
}

.deck-card-type.attack {
  background: rgba(239, 68, 68, 0.8);
  color: white;
}

.deck-card-type.defense {
  background: rgba(34, 197, 94, 0.8);
  color: white;
}

.deck-card-type.utility {
  background: rgba(59, 130, 246, 0.8);
  color: white;
}

.deck-card-name {
  color: #333;
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.deck-card-rarity {
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
}

.deck-card-rarity.common { color: #9ca3af; }
.deck-card-rarity.rare { color: #60a5fa; }
.deck-card-rarity.epic { color: #a855f7; }
.deck-card-rarity.legendary { color: #f59e0b; }

.remove-card {
  background: rgba(239, 68, 68, 0.8);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  transition: background 0.2s ease;
}

.remove-card:hover {
  background: rgba(239, 68, 68, 1);
}

.deck-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-btn {
  background: #ca497f;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: 'Orbitron', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-btn:hover {
  background: #e05590;
}

.action-btn.save-deck {
  background: #10b981;
}

.action-btn.save-deck:hover {
  background: #059669;
}

.action-btn.clear-deck {
  background: #ef4444;
}

.action-btn.clear-deck:hover {
  background: #dc2626;
}

.deck-templates {
  background: rgba(230, 230, 230, 0.85);
  border: 1px solid rgba(202, 73, 127, 0.1);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 0 20px rgba(202, 73, 127, 0.3);
}

.deck-templates h2 {
  color: #ca497f;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.5rem;
}

.deck-templates h2 i {
  margin-right: 10px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.template-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(202, 73, 127, 0.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.template-card:hover {
  transform: translateY(-3px);
  border-color: #ca497f;
}

.template-card h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.template-card p {
  color: #555;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

/* Profile Styles */
/* Profile Card Styles */
.profile-card {
  background: rgba(230, 230, 230, 0.85);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Card Headings */
.profile-card h2 {
  color: #ff69b4; /* hacker-pink theme */
  margin-bottom: 15px;
  font-family: 'Orbitron', sans-serif;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}

/* Stat Cards inside grid */
.stats-grid .stat-card {
  background: rgba(230, 230, 230, 0.85);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: 0.2s;
}

.stats-grid .stat-card:hover {
  background: rgba(230, 230, 230, 0.85);
}

/* Profile Page Layout Styles */
.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-info-section {
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(230, 230, 230, 0.95);
  border: 1px solid rgba(202, 73, 127, 0.2);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(202, 73, 127, 0.2);
  backdrop-filter: blur(10px);
}

.profile-avatar {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar i {
  font-size: 120px;
  color: #ca497f;
}

.change-avatar-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: #ca497f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(202, 73, 127, 0.3);
}

.change-avatar-btn:hover {
  background: #a03060;
  transform: scale(1.1);
}

.profile-details {
  flex: 1;
}

.profile-details h2 {
  color: #ca497f;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.profile-level {
  color: #333;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.profile-join-date {
  color: #666;
  font-size: 1rem;
  margin-top: 15px;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-shrink: 0;
}

.action-btn {
  background: #ca497f;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  justify-content: center;
}

.action-btn:hover {
  background: #a03060;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(202, 73, 127, 0.3);
}

.action-btn.settings {
  background: #6c757d;
}

.action-btn.settings:hover {
  background: #5a6268;
}

.profile-stats {
  background: rgba(230, 230, 230, 0.95);
  border: 1px solid rgba(202, 73, 127, 0.2);
  border-radius: 20px;
  padding: 30px;
  margin-top: 40px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(202, 73, 127, 0.2);
  backdrop-filter: blur(10px);
}

.profile-achievements,
.profile-decks,
.profile-matches,
.profile-friends {
  background: rgba(230, 230, 230, 0.95);
  border: 1px solid rgba(202, 73, 127, 0.2);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(202, 73, 127, 0.2);
  backdrop-filter: blur(10px);
}

.profile-stats h2,
.profile-achievements h2,
.profile-decks h2,
.profile-matches h2,
.profile-friends h2 {
  color: #ca497f;
  font-size: 2rem;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 500;
}

.profile-stats h2 i,
.profile-achievements h2 i,
.profile-decks h2 i,
.profile-matches h2 i,
.profile-friends h2 i {
  margin-right: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 10px;
}

.login-restriction {
  background: rgba(230, 230, 230, 0.95);
  border: 1px solid rgba(202, 73, 127, 0.2);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(202, 73, 127, 0.2);
  backdrop-filter: blur(10px);
}

.restriction-icon {
  font-size: 4rem;
  color: #ca497f;
  margin-bottom: 20px;
}

.login-restriction h2 {
  color: #ca497f;
  font-size: 2rem;
  margin-bottom: 15px;
}

.login-restriction p {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.restriction-features h3 {
  color: #333;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.feature-item {
  background: rgba(202, 73, 127, 0.1);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(202, 73, 127, 0.2);
  transform: translateY(-2px);
}

.feature-item i {
  font-size: 1.5rem;
  color: #ca497f;
  margin-bottom: 8px;
}

.feature-item h4 {
  color: #333;
  font-size: 0.9rem;
  margin: 0;
}

.login-actions {
  margin-bottom: 20px;
}

.login-btn {
  background: #ca497f;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 15px 30px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #a03060;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(202, 73, 127, 0.3);
}

.guest-info {
  color: #666;
  font-size: 0.9rem;
}

.guest-info i {
  color: #ca497f;
  margin-right: 5px;
}

.guest-info-banner {
  background: rgba(202, 73, 127, 0.1);
  border: 1px solid rgba(202, 73, 127, 0.3);
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
  color: #333;
}

.guest-info-banner i {
  color: #ca497f;
  margin-right: 8px;
}

/* Mobile Responsive Styles for Profile */
@media (max-width: 768px) {
  .profile-container {
    padding: 15px;
  }
  
  .profile-info-section {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 25px 20px;
  }
  
  .profile-avatar i {
    font-size: 100px;
  }
  
  .profile-details h2 {
    font-size: 2rem;
  }
  
  .profile-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .action-btn {
    min-width: 120px;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .profile-stats {
    padding: 25px 20px;
  }
  
  .profile-stats h2 {
    font-size: 1.8rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .login-restriction {
    padding: 30px 20px;
  }
  
  .restriction-icon {
    font-size: 3rem;
  }
  
  .login-restriction h2 {
    font-size: 1.8rem;
  }
  
  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .profile-container {
    padding: 10px;
  }
  
  .profile-info-section {
    padding: 20px 15px;
  }
  
  .profile-avatar i {
    font-size: 80px;
  }
  
  .profile-details h2 {
    font-size: 1.8rem;
  }
  
  .profile-level {
    font-size: 1.1rem;
  }
  
  .action-btn {
    min-width: 100px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .profile-stats {
    padding: 20px 15px;
  }
  
  .profile-stats h2 {
    font-size: 1.6rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .login-restriction {
    padding: 25px 15px;
  }
  
  .restriction-icon {
    font-size: 2.5rem;
  }
  
  .login-restriction h2 {
    font-size: 1.6rem;
  }
  
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* About Section Styles */
.about-section {
  margin: 60px 0;
  padding: 0 20px;
}

.about-main-card {
  background: rgba(230, 230, 230, 0.95);
  border: 1px solid rgba(202, 73, 127, 0.2);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 40px rgba(202, 73, 127, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.about-main-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(202, 73, 127, 0.3);
  border-color: #ca497f;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 30px;
}

.about-header h2 {
  color: #ca497f;
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.about-header h2 i {
  margin-right: 15px;
  color: #ca497f;
}

.about-paragraph {
  max-width: 800px;
  margin: 0 auto;
}

.about-paragraph p {
  color: #555;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.about-paragraph p:last-child {
  margin-bottom: 0;
}

/* Mobile responsiveness for about section */
@media (max-width: 768px) {
  .about-section {
    margin: 40px 0;
    padding: 0 15px;
  }
  
  .about-main-card {
    padding: 30px 20px;
  }
  
  .about-header h2 {
    font-size: 2rem;
  }
  
  .about-paragraph p {
    font-size: 1rem;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .about-main-card {
    padding: 25px 15px;
  }
  
  .about-header h2 {
    font-size: 1.8rem;
  }
  
  .about-paragraph p {
    font-size: 0.95rem;
  }
}

