/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f8f9fa;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #1a365d;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c5282;
}

a {
  color: #3182ce;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #2c5282;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Button styles */
button, 
.primary-button, 
.secondary-button, 
.retry-button, 
.buy-button, 
.bgg-link, 
.more-stores-button,
.view-details,
.search-button,
.tab-button {
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.5px;
}

button, .primary-button, .search-button {
  background-color: #2b6cb0;
  color: white;
  padding: 12px 24px;
  box-shadow: 0 4px 6px rgba(43, 108, 176, 0.2);
}

button:hover, .primary-button:hover, .search-button:hover {
  background-color: #2c5282;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(43, 108, 176, 0.25);
}

.secondary-button {
  background-color: #e2e8f0;
  color: #2d3748;
  padding: 10px 18px;
}

.secondary-button:hover {
  background-color: #cbd5e0;
}

.retry-button {
  background-color: #e53e3e;
  color: white;
  padding: 10px 18px;
  margin-top: 12px;
}

.retry-button:hover {
  background-color: #c53030;
}

.buy-button, .bgg-link {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.buy-button {
  background-color: #ed8936;
  color: white;
  flex-grow: 1;
  margin-left: 8px;
  box-shadow: 0 4px 6px rgba(237, 137, 54, 0.2);
}

.buy-button:hover {
  background-color: #dd6b20;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(237, 137, 54, 0.25);
}

.bgg-link, .view-details {
  background-color: #e2e8f0;
  color: #2d3748;
  border: 1px solid #cbd5e0;
}

.bgg-link:hover, .view-details:hover {
  background-color: #cbd5e0;
  transform: translateY(-2px);
}

.view-details {
  padding: 10px 18px;
  text-align: center;
  flex-grow: 1;
  margin-right: 8px;
}

/* Header styles */
header {
  background: linear-gradient(135deg, #2b6cb0 0%, #4299e1 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*background-image: url('path-to-subtle-pattern.png'); */
  background-size: 200px;
  opacity: 0.1;
  z-index: 1;
}

header .container {
  position: relative;
  z-index: 2;
}

header h1 {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header .tagline {
  font-size: 1.4rem;
  opacity: 0.9;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto;
}

/* Main content styles */
main {
  padding: 2rem 0 4rem;
}

section {
  margin-bottom: 3rem;
}

/* Tab Navigation Styles */
.discovery-tabs {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.tab-button {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px 8px 0 0;
  margin-right: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.tab-button.active {
  background-color: #2b6cb0;
  color: white;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #2b6cb0;
}

.tab-button:not(.active) {
  background-color: #e2e8f0;
  color: #4a5568;
}

.tab-button:hover:not(.active) {
  background-color: #cbd5e0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

/* Card & Container styles */
.preferences-form, 
.results,
.search-filter-section {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}

/* Form styles */
.form-group {
  margin-bottom: 20px;
}

input[type="number"],
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f8fafc;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

input[type="number"]:focus,
select:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.25);
  outline: none;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  appearance: none;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
  margin: 15px 0;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: #2b6cb0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  background: #3182ce;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  margin-bottom: 0;
  padding: 8px 14px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.checkbox-group label:hover {
  background-color: #edf2f7;
}

.checkbox-group input {
  margin-right: 8px;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e0;
  border-radius: 4px;
  outline: none;
  transition: all 0.2s ease;
  position: relative;
}

.checkbox-group input:checked {
  background-color: #2b6cb0;
  border-color: #2b6cb0;
}

.checkbox-group input:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#game-preferences {
  background-color: #f8fafc;
  border-radius: 10px;
  padding: 25px;
  border: 1px solid #e2e8f0;
}

/* Loading spinner styles */
.loading-spinner {
  text-align: center;
  padding: 40px 0;
  display: none;
}

.spinner {
  border: 4px solid rgba(203, 213, 224, 0.3);
  border-radius: 50%;
  border-top: 4px solid #3182ce;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Game results styles */
.game-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
}

/* Azul-inspired tile pattern for section backgrounds */
.results::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, 
    #3182ce 0%, #3182ce 20%, 
    #ed8936 20%, #ed8936 40%, 
    #38a169 40%, #38a169 60%, 
    #805ad5 60%, #805ad5 80%, 
    #e53e3e 80%, #e53e3e 100%);
  border-radius: 8px 8px 0 0;
}

.results {
  position: relative;
  padding-top: 40px;
}

/* Game card styles */
.game-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: white;
  height: 100%;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e0;
}

.game-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 20px;
  background-color: #f8fafc;
  padding: 10px;
  transition: all 0.3s ease;
}

.game-card:hover .game-image {
  transform: scale(1.03);
}

.game-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.game-title {
  margin-top: 0;
  margin-bottom: 10px;
  color: #1a365d;
  font-size: 1.4rem;
  line-height: 1.4;
  height: auto;
  min-height: 2.8rem;
  font-weight: 700;
}

.game-meta {
  margin-bottom: 10px;
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.5;
}

.game-description {
  margin-bottom: 20px;
  color: #4a5568;
  line-height: 1.6;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.match-score {
  display: inline-block;
  background-color: #38a169;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
  align-self: flex-start;
}

.game-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  width: 100%;
}

/* Search Bar Styling */
.search-bar {
  display: flex;
  margin: 30px auto 50px;
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-bar input {
  flex-grow: 1;
  padding: 15px 20px;
  border: 2px solid #e2e8f0;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 1.1rem;
  height: 60px;
  outline: none;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  border-color: #4299e1;
  box-shadow: inset 0 0 0 1px rgba(66, 153, 225, 0.4);
}

.search-button {
  border-radius: 0 8px 8px 0;
  padding: 0 30px;
  height: 60px;
  min-width: 140px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background-color: #3182ce;
}

.search-button:hover {
  background-color: #2c5282;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 30px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  position: relative;
  animation: slideIn 0.4s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.close-button {
  color: #a0aec0;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.close-button:hover {
  color: #2d3748;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Game detail styling */
.game-detail-header {
  display: flex;
  margin-bottom: 25px;
  gap: 25px;
}

.game-detail-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #e2e8f0;
}

.game-detail-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 2rem;
  color: #1a365d;
}

.game-detail-description {
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e2e8f0;
}

.age-recommendation {
  display: inline-block;
  background-color: #ed8936;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  margin-bottom: 15px;
}

.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.detail-tag {
  background-color: #ebf8ff;
  color: #2b6cb0;
  border: 1px solid #bee3f8;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.detail-tag:hover {
  background-color: #bee3f8;
  transform: translateY(-2px);
}

/* Footer styles */
footer {
  background-color: #2d3748;
  color: white;
  padding: 40px 0;
  text-align: center;
  margin-top: 80px;
}

footer a {
  color: #90cdf4;
  transition: color 0.2s;
}

footer a:hover {
  color: #63b3ed;
}

footer .small {
  font-size: 0.8rem;
  margin-top: 15px;
  opacity: 0.7;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }
  
  header .tagline {
    font-size: 1.2rem;
  }
  
  .game-results {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .game-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .search-bar {
    flex-direction: column;
  }
  
  .search-bar input {
    border-radius: 8px 8px 0 0;
    border-right: 1px solid #e2e8f0;
    border-bottom: none;
  }
  
  .search-button {
    border-radius: 0 0 8px 8px;
    width: 100%;
  }
  
  .checkbox-group {
    flex-direction: column;
  }
  
  .modal-content {
    width: 95%;
    margin: 5% auto;
  }
}

@media (max-width: 480px) {
  header {
    padding: 25px 0;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .preferences-form, .results {
    padding: 20px 15px;
  }
  
  .game-card {
    padding: 15px;
  }
  
  button {
    width: 100%;
  }
  
  .game-detail-image {
    width: 150px;
    height: 150px;
  }
}

/* Add to main.css */
.scroll-top-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #3182ce; /* Slightly brighter blue */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 999;
}

.scroll-top-button.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-button:hover {
  background-color: #2c5282;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Add to your assets/css/main.css file */
.scroll-top-button svg {
  width: 22px;
  height: 22px;
  stroke: white;
  stroke-width: 2.5;
}

.scroll-top-button:hover svg {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.scroll-top-button::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid white;
  margin: 0 auto;
}
/* Add to main.css */
.custom-checkbox {
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  height: 22px;
  width: 22px;
  background-color: #f1f5f9;
  border: 2px solid #cbd5e0;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: #e2e8f0;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #3182ce;
  border-color: #3182ce;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Add to main.css */
.bgg-username-container {
  display: flex;
  gap: 10px;
}

.bgg-username-container input {
  flex-grow: 1;
}

.bgg-status {
  margin-top: 8px;
  font-size: 0.9rem;
}

.bgg-status.success {
  color: #4CAF50;
}

.bgg-status.error {
  color: #F44336;
}

.bgg-status.loading {
  color: #2196F3;
}

.collection-summary {
  margin-top: 10px;
  font-style: italic;
  color: #666;
}

.owned-game-tag {
  background-color: #ffcdd2;
  color: #c62828;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 8px;
}

/* Add to main.css file */
.owned-games-container {
  margin-top: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.owned-games-toggle {
  background-color: #3182ce;
  padding: 12px 15px;
  width: 100%;
  text-align: left;
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  transition: all 0.3s ease;
}

.owned-games-toggle:hover {
  background-color: #2c5282;
}

.owned-games-toggle::after {
  content: "▼";
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.owned-games-toggle.collapsed::after {
  transform: rotate(-90deg);
}

.owned-games-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.owned-games-content.expanded {
  max-height: 400px;
  overflow-y: auto;
}

.owned-games-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.owned-games-list li {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f4f8;
  display: flex;
  align-items: center;
}

.owned-games-list li:last-child {
  border-bottom: none;
}

.game-name {
  flex-grow: 1;
  font-size: 1rem;
}

.owned-games-rating {
  background-color: #edf2f7;
  color: #2d3748;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 12px;
  min-width: 40px;
  text-align: center;
}

.search-bgg-game {
  background-color: #3182ce;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.search-bgg-game:hover {
  background-color: #2c5282;
}

.no-owned-games {
  padding: 15px;
  text-align: center;
  color: #718096;
  font-style: italic;
}

/* For mobile screens */
@media (max-width: 480px) {
  .owned-games-list li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .game-name {
    margin-bottom: 8px;
  }
  
  .game-actions {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }
}

/* Add to main.css */
.bgg-username-container {
  display: flex;
  gap: 10px;
}

.bgg-username-container input {
  flex-grow: 1;
}

.bgg-status {
  margin-top: 8px;
  font-size: 0.9rem;
}

.bgg-status.success {
  color: #38a169;
}

.bgg-status.error {
  color: #e53e3e;
}

.bgg-status.loading {
  color: #3182ce;
}

/* Add to main.css or style.css */
#disconnect-bgg {
  background-color: #e53e3e;
  color: white;
  margin-left: 5px;
}

#disconnect-bgg:hover {
  background-color: #c53030;
}

.bgg-username-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#disconnect-bgg {
  background-color: #e53e3e;
  color: white;
  margin-left: 5px;
}

#disconnect-bgg:hover {
  background-color: #c53030;
}

/* Add to main.css */
.bgg-filter-toggle {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  margin-right: 10px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e0;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #3182ce;
}

input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

.toggle-label {
  font-size: 0.9rem;
  color: #4a5568;
}

/* Styles for owned games */
.owned-game-card {
  border-color: #4299e1;
  background-color: #ebf8ff;
}

.owned-game-tag {
  display: inline-block;
  background-color: #4299e1;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  margin-left: 8px;
  vertical-align: middle;
}

/* Add to main.css */
.bgg-filter-toggle {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  margin-right: 10px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e0;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #3182ce;
}

input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

.toggle-label {
  font-size: 0.9rem;
  color: #4a5568;
}

/* Styles for owned games */
.owned-game-card {
  border-color: #4299e1;
  background-color: #ebf8ff;
}

.owned-game-tag {
  display: inline-block;
  background-color: #4299e1;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  margin-left: 8px;
  vertical-align: middle;
}

/* Match Breakdown Section Styles */
.match-breakdown-section {
  margin-bottom: 25px;
  padding: 20px;
  background-color: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.match-breakdown-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #2c5282;
}

.match-score-circle {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}

.circular-chart {
  display: block;
  margin: 10px auto;
  max-width: 100%;
  max-height: 100%;
}

.circle-bg {
  fill: none;
  stroke: #edf2f7;
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke: #4299e1;
  animation: progress 1s ease-out forwards;
}

@keyframes progress {
  0% {
    stroke-dasharray: 0 100;
  }
}

.percentage {
  fill: #2c5282;
  font-size: 0.5em;
  text-anchor: middle;
  font-weight: bold;
}

.match-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.match-detail-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.match-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.match-text {
  flex-grow: 1;
}

.match-label {
  font-weight: 600;
  display: block;
  color: #4a5568;
  font-size: 0.9rem;
}

.match-value {
  color: #2d3748;
}

.good-match {
  border-left: 4px solid #48bb78;
}

.good-match .match-icon {
  background-color: #48bb78;
}

.partial-match {
  border-left: 4px solid #ed8936;
}

.partial-match .match-icon {
  background-color: #ed8936;
}

.poor-match {
  border-left: 4px solid #e53e3e;
}

.poor-match .match-icon {
  background-color: #e53e3e;
}

.owned-match {
  border-left: 4px solid #4299e1;
}

.owned-match .match-icon {
  background-color: #4299e1;
}

.match-explanation {
  font-style: italic;
  color: #718096;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .match-detail-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .match-icon {
    margin-bottom: 10px;
  }
}

/* AdSense Containers */
.sidebar-ad {
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 0.5s;
}

.footer-ad {
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 0.3s;
}

.game-results-ad {
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: fadeIn 0.5s ease forwards;
  animation-delay: 0.2s;
}

@media (max-width: 1024px) {
  .sidebar-ad {
      display: none;
  }
}

/* Add to your main.css file */
.sidebar-ad {
  position: relative;
  width: 300px;
  margin: 20px auto;
  clear: both;
  /* Make sure it's properly contained */
  overflow: hidden;
  /* Ensure it doesn't overlap */
  z-index: 1;
}

/* For mobile views */
@media (max-width: 768px) {
  .sidebar-ad {
      width: 100%;
      margin: 20px 0;
  }
}

/* Update notification styles */
.update-notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #1e88e5;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.update-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.update-content p {
  margin: 0;
}

#update-now {
  background-color: white;
  color: #1e88e5;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: bold;
  cursor: pointer;
}

#update-now:hover {
  background-color: #f5f5f5;
}

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

/* Game Night Picker Styles */

/* Game Spotlight styles */
.game-spotlight {
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.game-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, 
      #3182ce 0%, #3182ce 20%, 
      #ed8936 20%, #ed8936 40%, 
      #38a169 40%, #38a169 60%, 
      #805ad5 60%, #805ad5 80%, 
      #e53e3e 80%, #e53e3e 100%);
}

.game-spotlight h3 {
  color: #1a365d;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
}

.game-spotlight h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #3182ce;
  border-radius: 3px;
}

.spotlight-game {
  display: flex;
  gap: 25px;
  margin: 30px 0;
}

.spotlight-image {
  width: 250px;
  height: 250px;
  object-fit: contain;
  background-color: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 10px;
  transition: transform 0.3s ease;
}

.spotlight-image:hover {
  transform: scale(1.03);
}

.spotlight-info {
  flex-grow: 1;
}

.spotlight-title {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #2b6cb0;
  line-height: 1.2;
}

.spotlight-meta {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  width: 18px;
  height: 18px;
  stroke: #3182ce;
}

.spotlight-score {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.bgg-rating, .your-rating, .play-count {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bgg-rating {
  background-color: #ebf8ff;
  color: #2b6cb0;
}

.your-rating {
  background-color: #e6fffa;
  color: #319795;
}

.play-count {
  background-color: #faf5ff;
  color: #805ad5;
}

.perfect-match {
  background-color: #3182ce;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
}

.spotlight-description {
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.spotlight-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.rules-button {
  background-color: #f56565;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(245, 101, 101, 0.2);
  transition: all 0.3s ease;
}

.rules-button:hover {
  background-color: #e53e3e;
  text-decoration: none;
  transform: translateY(-2px);
}

.rules-button svg {
  width: 20px;
  height: 20px;
}

.alternatives {
  margin-top: 30px;
}

.alternatives h4 {
  margin-bottom: 20px;
  color: #4a5568;
  font-size: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.alternative-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.alt-game-card {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.alt-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  background-color: white;
}

.alt-game-image {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 4px;
  background-color: white;
}

.alt-game-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2d3748;
}

.alt-game-meta {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 8px;
}

.alt-game-button {
  background-color: #3182ce;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.alt-game-button:hover {
  background-color: #2c5282;
}

.youtube-preview {
  margin-top: 25px;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background-color: black;
}

.video-thumbnail img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease;
}

.video-overlay:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.play-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(255, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon svg {
  width: 30px;
  height: 30px;
  fill: white;
  margin-left: 5px; /* Slight offset for play icon */
}

.video-info {
  padding: 15px;
}

.video-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #2d3748;
}

.video-channel {
  font-size: 0.9rem;
  color: #718096;
}

/* For smaller screens */
@media (max-width: 768px) {
  .spotlight-game {
      flex-direction: column;
      align-items: center;
  }
  
  .spotlight-image {
      width: 200px;
      height: 200px;
  }
  
  .spotlight-info {
      text-align: center;
  }
  
  .spotlight-score {
      justify-content: center;
  }
  
  .spotlight-actions {
      flex-direction: column;
  }
  
  .alternative-games {
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

/* Add this to your CSS */
.expansion-tag {
  background-color: #805ad5;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 10px;
  vertical-align: middle;
}

/* User play count and rating badges */
.user-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.user-plays-badge, .user-rating-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.user-plays-badge {
  background-color: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #bbdefb;
}

.user-rating-badge {
  background-color: #fff3e0;
  color: #e65100;
  border: 1px solid #ffe0b2;
}

/* Owned game tag */
.owned-game-tag {
  display: inline-block;
  font-size: 0.7rem;
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: bold;
  border: 1px solid #c8e6c9;
}

/* User stats in detail view */
.game-detail-user-stats {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
  border-left: 4px solid #3D348B;
}

.game-detail-user-stats h3 {
  margin-top: 0;
  color: #3D348B;
}

.user-stats-details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

/* Media queries for responsive design */
@media (max-width: 768px) {
  .user-stats {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 8px;
  }
  
  .user-stats-details {
    flex-direction: column;
    gap: 5px;
  }
}

/* User Stats Badges */
.user-stats {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.user-plays-badge,
.user-rating-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
}

.user-plays-badge {
  background-color: #4caf50;
  color: white;
}

.user-rating-badge {
  background-color: #ff9800;
  color: white;
}

.owned-game-tag {
  display: inline-block;
  background-color: #673ab7;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-left: 8px;
  vertical-align: middle;
}

/* User Stats in Detail View */
.game-detail-user-stats {
  background-color: #f5f5f5;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 15px 0;
}

.user-stats-details {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

/* User stats styling for game picker */
.spotlight-score {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
  background-color: #f7f9fc;
  padding: 10px;
  border-radius: 6px;
  border-left: 4px solid #4a90e2;
}

.spotlight-score > div {
  margin-bottom: 5px;
}

.your-rating {
  font-weight: 500;
  color: #e67e22;
}

.play-count {
  color: #3498db;
}

.bgg-rating {
  opacity: 0.8;
}

/* Alternative game stats */
.alt-game-stats {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  margin-bottom: 8px;
  background-color: #f5f8fa;
  padding: 5px 8px;
  border-radius: 4px;
}

.alt-game-plays {
  color: #3498db;
}

.alt-game-rating {
  color: #e67e22;
}

/* Highlight games with high user ratings */
.your-rating[data-rating="8"],
.your-rating[data-rating="9"],
.your-rating[data-rating="10"] {
  color: #2ecc71;
  font-weight: bold;
}

/* Style for unplayed games */
.play-count:empty::after,
.play-count:contains('0 times')::after {
  content: 'Never played';
  font-style: italic;
  color: #95a5a6;
}

/* Style for play counts */
.play-count {
  display: block;
  color: #3498db;
}

/* Style for unplayed games */
.play-count[data-plays="0"] {
  color: #95a5a6;
  font-style: italic;
}

/* Alternative game play count styles */
.alt-game-plays {
  display: block;
  color: #3498db;
}

.alt-game-plays:contains('Never played') {
  color: #95a5a6;
  font-style: italic;
}