/* Base Styles */
body, html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Zyzol;
}

body {
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  position: relative;
  overflow-y: auto;
  padding-bottom: 120px;
}

@font-face {
  font-family: Zyzol;
  src: url(../fonts/Zyzol.otf);
}

/* Container and Typography */
.container {
  text-align: center;
  padding: 70px 15px 50px;  /* Increased top padding */
  width: 100%;
  min-height: auto;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;  /* Ensure proper stacking context */
}

h1 {
  color: rgba(46, 145, 238);
  text-shadow: -1px -1px 0 #fff;
  font-family: Zyzol;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

/* Navigation */
.nav-button {
  background: rgba(46, 145, 238, 0.2);
  border: 2px solid rgba(46, 145, 238, 0.5);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-family: Zyzol;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.nav-button:hover {
  background: rgba(46, 145, 238, 0.4);
  border-color: rgba(46, 145, 238, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 145, 238, 0.3);
}

.desktop-nav {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  height: 43px; /* Match the height of the Now Listening button */
  display: flex;
  align-items: center;
}

/* Now Playing Button */
#now-playing-button {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: none;  /* Hidden by default */
  align-items: center;
  gap: 8px;
  max-width: 3000px; /* DO NOT CHANGE THIS VALUE */
  margin-top: 0;
}

.now-playing-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.now-playing-label {
  color: #fff;
  margin-right: 8px;
  white-space: nowrap;
}

#current-track {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile Navigation */
.mobile-nav {
  position: absolute;  /* Changed from fixed */
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(27, 39, 53, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(46, 145, 238, 0.3);
  padding: 12px;
  display: none;
}
/* Content Sections */
.content-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Feed Styles */
.anilist-feed, .lastfm-feed {
  flex: 1;
  max-width: 300px;  /* Keep consistent width */
  background: rgba(27, 39, 53, 0.8);
  border-radius: 8px;
  padding: 20px;
}

.anilist-feed h2, .lastfm-feed h2 {
  color: rgba(46, 145, 238);
  margin-top: 0;
  margin-bottom: 20px;
  font-family: Zyzol;
  text-shadow: -1px -1px 1px #fff;
}

/* Track and Update Styles */
.track-content {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0;
}

/* Adjust update-content to match track-content */
.update-content {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 5px 5px 5px 0;
}

.track-image {
  min-width: 50px;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  background: rgba(46, 145, 238, 0.2);
  flex-shrink: 0;
  margin-left: 5px;
}

.update-image {
  width: 40px;
  height: 52px;
  border-radius: 5px;
  margin-left: 5px;
  object-fit: cover;
}

.update-text {
  flex: 1;
  min-width: 0;
  padding-right: 10px;  /* Add some right padding for better text spacing */
}

.track-image {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  background: rgba(46, 145, 238, 0.2);
}


/* Currently Playing Game */
.currently-playing {
  width: 300px;
  background: rgba(27, 39, 53, 0.8);
  border-radius: 8px;
  padding: 20px;
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Media Queries */
@media (max-width: 768px) {
  .container {
    padding-top: 20px;  /* Reduce top padding on mobile */
  }


  .mobile-nav {
    display: block;
  }

  .content-section {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
  }

  .currently-playing, .anilist-feed, .lastfm-feed {
    width: calc(100% - 20px);  /* Account for padding */
    margin: 0 auto 20px;
    box-sizing: border-box;
  }

  .track-image {
    width: 48px;
    height: 48px;
  }

  #game-cover {
    max-width: 100%;
    height: auto;
}

  .track-title {
    font-size: 0.9rem;
  }

  /* Ensure text doesn't overflow */
  .track-title, .update-title, .game-details h3 {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
}

/* Social Buttons */
.button-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 5px;
  transition: all 0.3s ease;
  background: rgba(46, 145, 238, 0.2);
  border: 2px solid rgba(46, 145, 238, 0.5);
  backdrop-filter: blur(5px);
  transform: scale(1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  transform: scale(1.05);
  background: rgba(46, 145, 238, 0.4);
  border-color: rgba(46, 145, 238, 0.8);
  box-shadow: 0 4px 12px rgba(46, 145, 238, 0.3);
}

.btn img {
  width: 64px;
  height: 64px;
  filter: brightness(0) invert(1);
}

@media (max-width: 600px) {
  .btn {
    width: 50px;
    height: 50px;
  }

  .btn img {
    width: 32px;
    height: 32px;
  }
}

/* Clickable Elements */
.anilist-link, .lastfm-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.lastfm-track {
  background: rgba(46, 145, 238, 0.1);
  border: 1px solid rgba(46, 145, 238, 0.3);
  border-radius: 5px;
  margin-bottom: 10px;
  color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.anilist-update {
  background: rgba(46, 145, 238, 0.1);
  border: 1px solid rgba(46, 145, 238, 0.3);
  border-radius: 5px;
  margin-bottom: 10px;
  color: #fff;
  transition: transform 0.2s ease, background-color 0.2s ease;
  padding: 10px 5px;  /* Add padding to match lastfm-track */
}

.anilist-update:hover, .lastfm-track:hover {
  transform: translateX(5px);
  background: rgba(46, 145, 238, 0.2);
}

/* Track and Update Text Styles */
.track-text, .update-text {
  flex: 1;
  min-width: 0;
}

.track-title, .update-title {
  color: rgba(46, 145, 238);
  font-weight: 700;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-artist, .update-details {
  font-size: 0.9rem;
  opacity: 0.9;
}

.track-scrobbles {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Grid Container */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  grid-template-rows: repeat(3, 150px);
  gap: 10px;
  margin-right: 10px;
  padding-bottom: 50px;
}

.grid-item {
  background: rgba(46, 145, 238, 0.2);
  border: 2px solid rgba(46, 145, 238, 0.5);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.grid-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}

.grid-item:hover {
  background: rgba(46, 145, 238, 0.4);
  transform: translateY(-2px);
}

.grid-item.active {
  background: rgba(46, 145, 238, 0.6);
  border-color: rgba(46, 145, 238, 1);
}

/* Grid Info */
.grid-info {
  flex: 1;
  max-width: 300px;
  background: #1b2735;
  padding: 20px;
  border-radius: 9px;
  text-align: left;
  color: #fff;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

.grid-info.active {
  opacity: 1;
  transform: translateX(0);
  margin-bottom: 45px;
}

.grid-info h2 {
  color: rgba(46, 145, 238);
  margin-top: 0;
  font-size: 1.5rem;
  text-shadow: -1px -1px 1px #fff;
}

.grid-info p {
  line-height: 1.6;
}

/* Wrapped Section Styles */
.content-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
}

.wrapped-image-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapped-image {
  max-width: 100%;
  max-height: 65vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
}

.wrapped-image-placeholder {
  width: 100%;
  min-height: 200px;
  background: #1b2735;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 5px;
}

/* Tab Styles */
.tabs {
  max-width: 800px;
  margin: 0 auto;
  background: #1b2735;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-button {
  flex: 1;
  padding: 15px;
  border: none;
  background: #090a0f;
  color: #fff;
  cursor: pointer;
  font-family: Zyzol;
  font-size: 1.1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.tab-button.active {
  background: rgba(46, 145, 238);
}

.tab-content {
  display: none;
  padding: 20px;
  border-radius: 5px;
  max-height: none;
  overflow-y: auto;
}

.tab-content.active {
  display: block;
}

/* Year Navigation */
.year-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 400px;
  margin: -20px auto 30px;
}

.year-link {
  color: rgba(46, 145, 238, 0.8);
  text-decoration: none;
  font-family: Zyzol;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.year-link:hover {
  color: rgba(46, 145, 238, 1);
}

.year-link.prev::before {
  content: "←";
  margin-right: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    margin-right: 0;
  }

  .grid-info {
    max-width: 100%;
  }

  .content-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .tab-buttons {
    flex-direction: column;
  }

  .tabs {
    margin: 0 10px;
  }
}

/* Scrollbar Styles */
.tab-content::-webkit-scrollbar {
  width: 8px;
}

.tab-content::-webkit-scrollbar-track {
  background: #1b2735;
  border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb {
  background: rgba(46, 145, 238, 0.5);
  border-radius: 4px;
}

/* Current Game Section */
.currently-playing {
  width: 300px;
  background: rgba(27, 39, 53, 0.8);
  border-radius: 8px;
  padding: 20px;
}

.currently-playing h2 {
  color: rgba(46, 145, 238);
  margin-top: 0;
  margin-bottom: 20px;
  font-family: Zyzol;
  text-shadow: -1px -1px 1px #fff;
}

.game-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.game-details {
  color: #fff;
  display: flex;
  flex-direction: column;
}

.game-details h3 {
  margin: 0;
  font-family: Zyzol;
  color: rgba(46, 145, 238);
}

.game-details p {
  margin: 0;
  opacity: 0.8;
}

#game-cover {
  width: 100%;
  height: auto;
  border-radius: 5px;
  object-fit: contain;
  max-height: 400px;
}

.game-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #fff;
  font-size: 0.9rem;
}

.game-meta-label {
  color: rgba(46, 145, 238);
  font-family: Zyzol;
}

.view-game-button {
  display: inline-block;
  background: rgba(46, 145, 238, 0.2);
  border: 2px solid rgba(46, 145, 238, 0.5);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-family: Zyzol;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: 0px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.view-game-button:hover {
  background: rgba(46, 145, 238, 0.4);
  border-color: rgba(46, 145, 238, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 145, 238, 0.3);
}

/* Mobile Navigation Improvements */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(27, 39, 53, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(46, 145, 238, 0.3);
  padding: 12px;
  flex-direction: column;
  gap: 10px;
}

#mobile-now-playing-button {
  width: 100%;
  background: rgba(46, 145, 238, 0.2);
  border: 2px solid rgba(46, 145, 238, 0.5);
  padding: 8px 15px;
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#mobile-now-playing-button:hover {
  background: rgba(46, 145, 238, 0.4);
  border-color: rgba(46, 145, 238, 0.8);
}

#mobile-current-track {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

  .stat-box {
    width: 100%;
    max-width: 500px;
  }

  .desktop-nav, #now-playing-button {
    display: none !important;
  }

  .mobile-nav {
    display: flex !important;
  }

  body {
    padding-bottom: 120px;
  }

  .mobile-nav .nav-button {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .currently-playing {
    width: 100%;
    max-width: 500px;
    padding: 15px;
    margin: 0 auto;
  }

  .game-info {
    gap: 10px;
  }

  .game-details {
    text-align: center;
  }

  .game-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  .game-meta {
    align-items: center;
  }

  #game-cover {
    max-height: 300px;
    width: 100%;
    object-fit: contain;
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }

  #now-playing-button {
    display: none;  /* Changed from display: inline-flex !important */
  }
}

/* Fix for mobile navigation z-index and backdrop */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  .mobile-nav {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* Animation for track changes */
@keyframes trackChange {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

#mobile-now-playing-button, #current-track {
  animation: trackChange 0.3s ease-out;
}

/* Add these to styles.css */
@keyframes shimmer {
  0% {
      background-position: -200% 0;
  }
  100% {
      background-position: 200% 0;
  }
}

/* Update the loading styles in styles.css */
.lastfm-track.loading {
  background: rgba(46, 145, 238, 0.1);
  border: 1px solid rgba(46, 145, 238, 0.3);
  border-radius: 5px;
  margin-bottom: 8px;
}

.loading .track-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 0;
}

.loading .track-image {
  min-width: 45px;
  width: 45px;
  height: 45px;
  background: rgba(46, 145, 238, 0.2);
  border-radius: 5px;
  margin-left: 8px;
}

.loading .track-text {
  flex: 1;
  min-width: 0;
}

.loading .track-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Add to styles.css */
.anilist-update.loading {
  background: rgba(46, 145, 238, 0.1);
  border: 1px solid rgba(46, 145, 238, 0.3);
  border-radius: 5px;
  margin-bottom: 10px;
  padding: 10px;
  height: auto;
}

.loading .update-content {
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100%;
}

.stats-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.stat-box {
  background: rgba(27, 39, 53, 0.8);
  border-radius: 8px;
  padding: 20px;
  width: 250px;
  text-align: center;
}

.stat-box h3 {
  color: rgba(46, 145, 238);
  margin: 0 0 15px 0;
  font-family: Zyzol;
  font-size: 1.1rem;
}

.stat-value {
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  font-family: Zyzol;
}

.clock-section {
  width: 300px;
  margin: 40px auto;
}

.clock {
  background: rgba(27, 39, 53, 0.8);
  border-radius: 8px;
  padding: 30px 0;
  text-align: center;
  font-family: Zyzol;
  box-sizing: border-box;
}

#time {
    color: #fff;
    font-size: 3.5rem;
    display: block;
    letter-spacing: 2px;
}

.timezone {
    color: rgba(46, 145, 238);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    #time {
        font-size: 2.5rem;
    }
    
    .clock {
        padding: 20px 30px;
    }
}

/* Awards Section Styles */
.awards-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.award-card {
    background: rgba(27, 39, 53, 0.8);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    height: auto;
}

.award-card:hover {
    transform: translateY(-5px);
}

.award-card h2 {
    color: rgba(46, 145, 238);
    margin: 0 0 20px 0;
    font-family: Zyzol;
    text-shadow: -1px -1px 1px #fff;
}

.winner {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.winner img {
    width: auto;
    max-width: 200px;
    height: auto;
    max-height: 300px;
    border-radius: 8px;
    margin: 0 auto 15px;
    object-fit: contain;
}

.winner h3 {
    color: #fff;
    margin: 10px 0;
    font-family: Zyzol;
}

.description {
    color: #fff;
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 10px 0;
    padding: 0 10px;
}

.runner-up {
    border-top: 1px solid rgba(46, 145, 238, 0.3);
    padding: 15px 0;
    margin-top: auto;
    color: #fff;
}

.runner-up p {
    margin: 0;
}

.runner-up strong {
    color: rgba(46, 145, 238);
    font-family: Zyzol;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .awards-section {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .award-card {
        margin-bottom: 30px;
    }

    .winner img {
        max-width: 200px;
        max-height: 300px;
    }
}

.profile-picture {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.profile-picture:hover {
    transform: scale(1.1);
}

.auth-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin-left: 15px;
    height: 48px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(27, 39, 53, 0.95);
    border: 1px solid rgba(46, 145, 238, 0.3);
    border-radius: 8px;
    padding: 12px;
    min-width: 180px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.dropdown-menu #user-name {
    display: block;
    color: #fff;
    padding: 5px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(46, 145, 238, 0.2);
    font-size: 0.9em;
    opacity: 0.9;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    font-size: 0.9em;
}

.dropdown-item:hover {
    background: rgba(46, 145, 238, 0.15);
    transform: translateX(2px);
}

/* Ensure hidden class works properly */
.hidden {
    display: none !important;
}

#login-button {
    padding: 10px 20px;
    height: 48px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    font-size: 16px;
}

.upload-button {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: none;
    background: none;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.upload-button:hover {
    background: rgba(46, 145, 238, 0.15);
}

.upload-progress {
    height: 2px;
    background: rgba(46, 145, 238, 0.3);
    margin: 4px 0;
    position: relative;
}

.upload-progress-bar {
    height: 100%;
    background: rgb(46, 145, 238);
    width: 0;
    transition: width 0.3s ease;
}

.comments-section {
  max-width: 800px;
  margin: 40px auto;
  padding: 25px;
  background: rgba(27, 39, 53, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(46, 145, 238, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.comments-section h2 {
  color: rgba(46, 145, 238);
  margin-bottom: 25px;
  font-family: Zyzol;
  text-shadow: -1px -1px 1px #fff;
}

#comments-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment {
  background: rgba(46, 145, 238, 0.1);
  padding: 20px;
  border-radius: 10px;
  position: relative;
  border: 1px solid rgba(46, 145, 238, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.comment:hover {
  background: rgba(46, 145, 238, 0.15);
  transform: translateX(5px);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-right: 40px; /* Make space for delete button */
}

.comment-author-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(46, 145, 238, 0.5);
}

.comment-author {
  color: rgba(46, 145, 238);
  font-weight: bold;
  font-family: Zyzol;
}

.comment-timestamp {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85em;
  margin-left: auto;
  margin-right: 8px; /* Add some space between timestamp and delete button */
}

.comment-content {
  color: #fff;
  line-height: 1.6;
  font-size: 1.1em;
}

#comment-form {
  margin-top: 25px;
  background: rgba(46, 145, 238, 0.1);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(46, 145, 238, 0.2);
}

#comment-input {
  width: 100%;
  background: rgba(27, 39, 53, 0.8);
  border: 1px solid rgba(46, 145, 238, 0.3);
  border-radius: 8px;
  padding: 15px;
  color: #fff;
  font-family: inherit;
  font-size: 1.1em;
  margin-bottom: 15px;
  resize: vertical;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
  min-height: 80px;
  max-height: 300px;
}

#comment-input:focus {
  outline: none;
  border-color: rgba(46, 145, 238, 0.8);
}

#post-comment {
  background: rgba(46, 145, 238, 0.2);
  border: 2px solid rgba(46, 145, 238, 0.5);
  padding: 12px 25px;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

#post-comment:hover {
  background: rgba(46, 145, 238, 0.4);
  transform: translateY(-2px);
}

.comment-login-prompt {
  text-align: center;
  padding: 30px;
  color: #fff;
  background: rgba(46, 145, 238, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(46, 145, 238, 0.2);
}

.comment-login-prompt p {
  margin: 0;
  font-size: 1.1em;
}

.delete-comment {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 1.2em;
  padding: 8px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.delete-comment:hover {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

@media (max-width: 768px) {
  .comments-section {
    margin: 20px;
    padding: 20px;
  }
  
  .comment-header {
    flex-wrap: wrap;
  }
  
  .comment-timestamp {
    width: 100%;
    margin-left: 52px;
    margin-top: 5px;
  }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-container {
    background: rgba(27, 39, 53, 0.95);
    border: 1px solid rgba(46, 145, 238, 0.3);
    border-radius: 12px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content {
    color: #fff;
}

.modal-content h2 {
    color: rgba(46, 145, 238);
    margin-top: 0;
    margin-bottom: 20px;
    font-family: Zyzol;
    text-shadow: -1px -1px 1px #fff;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-input {
    width: 100%;
    background: rgba(27, 39, 53, 0.8);
    border: 1px solid rgba(46, 145, 238, 0.3);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1.1em;
    margin-top: 10px;
    box-sizing: border-box;
}

.modal-input:focus {
    outline: none;
    border-color: rgba(46, 145, 238, 0.8);
}

.hidden {
    display: none !important;
}

.error-message {
    color: #ff4444;
    margin-top: 10px;
    font-size: 0.9em;
}

.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Update loading styles */
.lastfm-track.loading {
    background: rgba(46, 145, 238, 0.1);
    border: 1px solid rgba(46, 145, 238, 0.3);
    border-radius: 5px;
    margin-bottom: 8px;
}

.anilist-update.loading {
    background: rgba(46, 145, 238, 0.1);
    border: 1px solid rgba(46, 145, 238, 0.3);
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;
    height: auto;
}

.loading .update-image,
.loading .track-image {
    min-width: 40px;
    width: 40px;
    height: 52px;
    background: rgba(46, 145, 238, 0.2);
    border-radius: 5px;
}

.loading .track-image {
    width: 50px;
    height: 50px;
}

/* Remove the shimmer animation since we're using static placeholders */
.lastfm-track.loading,
.anilist-update.loading {
    animation: none;
    background: rgba(46, 145, 238, 0.1);
}

/* Games Container Styles */
.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
  margin-top: 20px;
}

.game-card {
  background: rgba(27, 39, 53, 0.8);
  border: 1px solid rgba(46, 145, 238, 0.3);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(46, 145, 238, 0.2);
}

.game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-info {
  padding: 20px;
}

.game-title {
  color: rgba(46, 145, 238);
  font-family: Zyzol;
  margin: 0 0 15px 0;
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.game-details {
  color: #fff;
  font-size: 0.9rem;
  margin-top: 0;
  line-height: 1.6;
}

.game-details p {
  margin: 5px 0;
}

/* Status Colors */
.status-completed {
  color: #10b981;
}

.status-in-progress {
  color: #3b82f6;
}

.status-on-hold {
  color: #f59e0b;
}

/* Filters Section */
.filters {
  display: flex;
  gap: 15px;
  margin: 20px;
  flex-wrap: wrap;
}

.filters input,
.filters select {
  padding: 10px 15px;
  background: rgba(27, 39, 53, 0.8);
  border: 1px solid rgba(46, 145, 238, 0.3);
  border-radius: 5px;
  color: #fff;
  font-family: inherit;
}

.filters input:focus,
.filters select:focus {
  outline: none;
  border-color: rgba(46, 145, 238, 0.8);
}

.filters input {
  min-width: 200px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .games-container {
      grid-template-columns: 1fr;
      padding: 10px;
  }

  .filters {
      flex-direction: column;
      gap: 10px;
  }

  .filters input,
  .filters select {
      width: 100%;
  }
}

/* Star Rating Styles */
.star-rating {
  display: flex;
  align-items: center;
  justify-content: center;  /* Center the stars */
  gap: 2px;
  margin: 2px 0 6px 0;  /* Further reduced margins */
}

.star {
  font-size: 18px;
  line-height: 1;
}

.star.full {
  color: rgba(46, 145, 238);
}

.star.half {
  color: rgba(46, 145, 238, 0.7);
}

.star.empty {
  color: rgba(46, 145, 238, 0.3);
}

.not-rated {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9em;
  margin-left: 4px;
}