/* General Layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
  }
  
  /* Navbar container */
  .navbar {
    background-color: #000;
    height: 80px;
    padding: 0 20px;
    display: flex;
  }
  
  .navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* space between logo and menu */
    padding: 0 20px; /* optional: adjust horizontal padding */
    width: 100%;
  }
  
  .navbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white; /* or your theme color */
  }
  
  .navbar-logo a {
    text-decoration: none;
    color: white;
    border: none;
    outline: none;
  }
  
  /* Main menu */
  .navbar-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
  }
  
  .navbar-item {
    position: relative;
  }
  
  .navbar-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 30px 10px;
    display: block;
  }
  
  .navbar-link:hover {
    color: #00AEEF;
    border-bottom: 2px solid #00AEEF;
  }

  .navbar-left,
  .navbar-right {
    display: flex;
    align-items: center;
  }
  
  /* Dropdown Menu */
  .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #111;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 10px 0;
    border: 1px solid #333;
    z-index: 999;
  }
  
  .dropdown-menu li {
    list-style: none;
  }
  
  .dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    font-size: 14px;
  }
  
  .dropdown-menu li a:hover {
    background-color: #222;
    color: #00AEEF;
  }
  
  .navbar-item:hover .dropdown-menu {
    display: block;
  }
  
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
  }
  
  .modal-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 6px;
    width: 400px;
    max-width: 90%;
    max-height: 50vh;       /* ✅ restrict height */
    overflow-y: auto;        /* ✅ make inner scrollable if too tall */
    box-shadow: 0 0 12px rgba(0,0,0,0.2);
    position: relative;
  }
  
  
  .modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
  }
  
  .modal-content form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .modal-content form input,
  .modal-content form button {
    padding: 8px;
    font-size: 14px;
  }
  
  .modal-content form button {
    background: #00AEEF;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
  }
  
  .modal-content form button:hover {
    background: #007aa5;
  }
  
  .search-results {
    list-style: none;
    margin-top: 10px;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    position: relative;
    z-index: 9999;
  }
  
  #search-results li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
  }
  
  #search-results li:hover {
    background-color: #f4f4f4;
  }
  
  .igdb-thumb {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
  }

  .navbar-logo-img {
    height: 40px;
    margin-right: 10px;
  }
  
 /* Game Page Layout */
.game-header {
  display: flex;
  gap: 40px;
  padding: 40px;
  background-color: #f4f4f4;
  border-bottom: 1px solid #ccc;
  align-items: flex-start;
}

#cover, .game-cover {
  width: 180px;
  height: auto;
  border: 7px solid #ccc;
  border-radius: 5px;
}

.game-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
}

.summary-label {
  font-weight: bold;
  font-size: 18px;
  margin-top: 20px;
}

.summary-text {
  font-size: 16px;
  max-width: 700px;
}

/* Action Buttons */
.game-actions {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

#owned-button,
#playthrough-button {
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#owned-button {
  background-color: #000000;
  color: white;
}

#owned-button.owned-active {
  background-color: #1a75ff;
}

#playthrough-status {
  font-size: 14px;
  margin-left: 10px;
}

/* Tabs */
/* Tabs Wrapper */
/* Tabs Wrapper */
.tab-bar {
  display: flex;
  justify-content: center;
  border-bottom: 2px solid #ccc;
  background-color: #f7f7f7;
  padding: 0;
  margin: 0;
  height: 50px; /* Optional: set consistent height */
}

/* Individual Tab */
.tab {
  padding: 0 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 50px; /* Aligns with .tab-bar height */
  color: #444;
  background-color: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab:hover {
  background-color: #eee;
}

.tab.active {
  border-bottom: 3px solid #3b78e7;
  color: #3b78e7;
  background-color: #fff;
}


/* Tab Content Sections */
.tab-content {
  display: none;
  padding: 20px 40px;
  background-color: #fff;
  border-radius: 0 0 8px 8px;
}

.tab-content:not(.hidden) {
  display: block;
}



/* Responsive */
@media screen and (max-width: 768px) {
  .navbar {
    flex-direction: column;
    height: auto;
  }

  .navbar-menu {
    flex-direction: column;
    width: 100%;
  }

  .navbar-link {
    padding: 15px 10px;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    border: none;
    background-color: #111;
  }

  .dropdown-menu li a {
    padding-left: 30px;
  }
}

.playthrough-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.playthrough-table th,
.playthrough-table td {
  padding: 8px 12px;
  border: 1px solid #ccc;
  text-align: left;
}

.active-pill,
.complete-pill,
.forfeited-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: bold;
  color: white;
}

.active-pill {
  background-color: #ac4caf; /* green */
}

.complete-pill {
  background-color: #4CAF50; /* gold */
}

.forfeited-pill {
  background-color: #e53935; /* red */
}


.navbar .auth-control {
  margin-left: auto;
}

.navbar-add-record {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

#media-type-select,
#navbar-search-input {
  padding: 6px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

#navbar-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 9999;
  display: none;
}

#navbar-search-results li {
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

#navbar-search-results li:hover {
  background: #f0f0f0;
}


#profile-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

#profile-container h1 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
}

#profile-header {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
}

.profile-image-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.profile-image-wrapper:hover .edit-overlay {
  opacity: 1;
}

.profile-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #ccc;
  border-radius: 8px;
}

.edit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#profile-header img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ddd;
}

#profile-info {
  flex: 1;
}

#profile-info p {
  margin: 6px 0;
  font-size: 16px;
}

#profile-info strong {
  display: inline-block;
  width: 130px;
  color: #333;
}

#upload-section {
  margin-top: 10px;
}

#upload-section input[type="file"] {
  display: none;
}

#upload-section label {
  display: inline-block;
  padding: 8px 16px;
  background-color: #0077cc;
  color: white;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 10px;
}

#upload-section button {
  padding: 8px 16px;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#upload-section button:hover {
  background-color: #222;
}

#settings-section {
  margin-top: 30px;
}

#settings-section h2 {
  font-size: 20px;
  margin-bottom: 10px;
}


#settings-section button {
  padding: 10px 18px;
  margin-right: 10px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  background-color: #0077cc;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#settings-section button:hover {
  background-color: #333;
}

#settings-section .delete-btn {
  background-color: #cc0000;
}

#settings-section .delete-btn:hover {
  background-color: #a30000;
}

#status-message {
  margin-top: 20px;
  font-weight: bold;
  color: green;
}

#password-popup-global {
  position: absolute;
  display: none;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  font-size: 13px;
  width: 240px;
}

#password-popup-global::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #ccc;
}

#password-popup-global::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 7px solid #fff;
}

/* landing page style */


.media-section {
  margin: 40px 60px;
}

.media-section h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.scroll-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.media-card {
  width: 150px; /* smaller than default */
  margin: 10px;
  text-align: center;
  display: inline-block;
}

.media-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.media-card p {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333; /* darker text */
}

.media-card:hover {
  transform: scale(1.05);
}

/* rating system stars and shit */

#token-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

#token-rating .rating-label {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 2px;
}

#token-rating .avg-rating {
  margin-top: 4px;
  font-size: 13px;
  color: #666;
}

#token-rating .stars-wrapper {
  display: flex;
  justify-content: center;
}

/* Star container */
.star-container {
  position: relative;
  width: 32px;
  height: 32px;
  margin: 0 2px;
}

.star-img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.star-fill {
  z-index: 2;
  clip-path: inset(0 100% 0 0); /* default to empty */
  opacity: 1;
}

.star-gold {
  filter: sepia(1) saturate(10) hue-rotate(-10deg);
}

.star-purple {
  filter: hue-rotate(270deg) saturate(6);
}

.playthrough-action-btn {
  background-color: black;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.playthrough-action-btn:hover {
  background-color: #222;
}

.start-playthrough-btn {
  background-color: #72006c;
  color: white;
}

.start-playthrough-btn:hover {
  background-color: #580054;
}

/* Complete button */
.complete-playthrough-btn {
  background-color: #1b6b2e;
  color: white;
}

.complete-playthrough-btn:hover {
  background-color: #12471e;
}

/* Forfeit button */
.forfeit-playthrough-btn {
  background-color: #942933;
  color: white;
}

.forfeit-playthrough-btn:hover {
  background-color: #681d25;
}

.add-record-btn {
  margin-bottom: 10px;
  background-color: black;
  color: #00ffff;
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
}
.add-record-btn:hover {
  background-color: #222;
}

/* Playthrough Input Row Styling */
.playthrough-table input[type="datetime-local"],
.playthrough-table select {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid #ccc;
  font-family: inherit;
  background-color: #fff;
  color: #000;
}

.playthrough-table input[type="datetime-local"]:focus,
.playthrough-table select:focus {
  outline: none;
  border-color: #6a5acd;
  box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.3);
}

#submit-playthrough-btn {
  padding: 8px 16px;
  font-weight: bold;
  font-size: 14px;
  border: none;
  border-radius: 999px;
  background-color: black;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#submit-playthrough-btn:hover {
  background-color: #333;
}

/* Match existing "pill" button style for consistency */
.add-record-btn {
  margin: 16px 0;
  padding: 10px 18px;
  font-weight: bold;
  font-size: 14px;
  border-radius: 999px;
  background-color: black;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-record-btn:hover {
  background-color: #333;
}

.goals-dropdown-wrapper {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  grid-template-columns: 1fr 200px 200px; /* 👈 Fixed width */
  align-items: center;
}

.goals-console-dropdown,
.goals-status-dropdown {
  width: 100%; /* 🟢 Fill their slot */
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.goals-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.goals-table th,
.goals-table td {
  border: 1px solid #ddd;
  padding: 8px;
  vertical-align: top;
  text-align: left;
}

.goals-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  outline: 2px solid #ccc;
  background-color: #dfdfdf;
}

.goals-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.goals-name {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 2px;
}

.goals-description {
  font-size: 13px;
  color: #666;
}

.goals-table input[type="checkbox"] {
  width: 15px;
  height: 15px;
  transform: scale(1.5);
  accent-color: #333;
  cursor: pointer;
}

.goals-table td:first-child {
  vertical-align: middle;
  text-align: center;
}

.goals-subgroup-header td {
  font-size: 15px;
  background-color: #f7f7f7;
  border-top: 2px solid #ccc;
}

.goals-table input[type="checkbox"][disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.goals-row-disabled {
  position: relative;
  pointer-events: auto; /* Keep hover active */
}

.goals-row-disabled:hover {
  cursor: not-allowed;
}

.goals-row-hover::after {
  content: "Start a playthrough to track progress";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  text-align: center;
  z-index: 2;
  border-radius: 4px;
}

.pill.complete-pill {
  background-color: #4CAF50;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.condensed-goals-table .goals-description {
  font-size: 12px;
  color: #555;
}

.condensed-goals-table td {
  vertical-align: top;
  padding: 6px 8px;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 👈 Change from 6 to 5 */
  gap: 10px;
  justify-items: center;
  margin-top: 10px;
}

.badge-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #aaa;
  object-fit: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: grab;
  position: relative;
}
.badge-grid {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
}
.badge-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

#badge-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

#badge-modal .modal-content {
  background: white;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  text-align: center;
}

.favorites-grid {
  background: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
}

#badge-section button {
  margin-top: 16px;
  padding: 8px 14px;
  background-color: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#badge-section button:hover {
  background-color: #34495e;
}

.badge-icon.drag-over {
  box-shadow: 0 0 10px #a29bfe;
  transform: scale(1.1);
  z-index: 10;
}

.badge-icon.swap-animate {
  transition: transform 0.2s ease;
  will-change: transform;
  z-index: 99;
}

.view-edit-btn {
  background-color: #444;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 10px;
}

.view-edit-btn:hover {
  background-color: #222;
}

/* dashboard stuff */
/* Dashboard page layout */
#dashboard-page {
  display: flex;
  font-family: sans-serif;
}

#side-panel {
  width: 200px;
  background: #f9f9f9;
  padding: 10px;
}

#side-panel h3 {
  margin-top: 0;
  font-size: 1.1em;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.toggle-label {
  flex: 1;
  font-size: 0.95em;
}

/* iOS style toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4CAF50;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

#dashboard-grid {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 10px; /* reduced gap */
  padding: 20px;
}

.dashboard-card {
  background: #1c1c1c; /* dark background */
  color: #ccc;         /* light text */
  border: 1px solid #333;
  border-radius: 8px;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trashcan {
  margin-top: auto;
  cursor: pointer;
}

.card-label {
  font-size: 20px;
  margin-bottom: 25px;
  margin-top: 10px;
}

.card-value {
  font-size: 64px;
  font-weight: bold;
  color: #4CAF50; /* or your highlight color */
}
.time-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-hours {
  font-size: 50px; /* adjust as needed */
  color: #4CAF50;
  font-weight: bold;
}

.time-minutes {
  font-size: 30px; /* smaller than hours */
  color: #4CAF50;
  font-weight: bold;
}
