/* Logo Styles */
.binge-logo {
    fill: #E50914;
}

.landing-logo {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.result-logo {
    width: 90px;
    height: auto;
    margin-bottom: 15px;
}

/* Global Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Netflix Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #F5F5F5; /* Soft off-white for subtlety */
  color: #333333; /* Dark grey for most text */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-user-select: none;
  user-select: none;
  overflow-x: hidden;
}

/* Support Page Styles */
.support-page {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.support-page header h1 {
  font-size: 2.5em;
  color: #E50914; /* Netflix red for emphasis */
  margin: 10px 0 20px;
  font-weight: 700;
}

.support-content {
  background: #767474; /* Result card grey for consistency */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.support-content h2 {
  color: #E50914;
  font-size: 1.8em;
  margin-bottom: 20px;
}

.support-content p {
  font-size: 1em;
  line-height: 1.6;
  color: #FFFFFF; /* White for contrast on grey */
}

.support-content a {
  color: #E50914;
  text-decoration: none;
  font-weight: 500;
}

.support-content a:hover {
  text-decoration: underline;
}

.support-content button {
  background-color: #E50914;
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.support-content button:hover {
  background-color: #F40612;
}

/* Landing Page Styles */
.landing {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  text-align: center;
  position: relative;
  top: -10%;
}

.landing header h1 {
  font-size: 2.5em;
  color: #E50914;
  margin: 10px 0 20px;
  font-weight: 700;
}

.landing main p {
  font-size: 1.1em;
  color: #333333; /* Dark grey for subtlety */
  margin: 0 0 20px;
  line-height: 1.5;
}

.slider-container {
  margin-bottom: 25px;
  text-align: center;
}

.slider-container label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #333333;
}

#question-count {
  width: 80%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #B3B3B3; /* Lighter grey for light theme */
  border-radius: 3px;
  outline: none;
}

#question-count::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #E50914;
  border-radius: 50%;
  cursor: pointer;
}

#question-count::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #E50914;
  border-radius: 50%;
  cursor: pointer;
}

.landing #start-btn {
  background-color: #E50914;
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  font-size: 1.1em;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.landing #start-btn:hover {
  background-color: #F40612;
}

.share-btn.support {
  background-color: #767474; /* Result card grey */
  color: #FFFFFF;
}

.share-btn.support:hover {
  background-color: #666666;
}

.app-store-coming-soon {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-store-coming-soon .app-store-logo {
  height: 24px;
  margin-left: 10px;
}

.app-store-coming-soon span {
  font-size: 0.9em;
  font-weight: 500;
  color: #333333;
}

/* Card Page Styles */
.container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  top: -10%;
}

#card-stack {
  position: relative;
  width: 300px;
  height: 424px;
  margin-top: 20px;
}

.card {
  background: #FFFFFF; /* White for question cards */
  border: none;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: absolute;
  width: 260px;
  height: 384px;
  text-align: center;
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
  touch-action: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
}

.card.swiping {
  opacity: 1;
}

.card.swiping-out {
  opacity: 0;
}

.card h2 {
  margin: 0;
  font-size: 1.3em;
  color: #333333; /* Dark grey for subtlety */
  padding: 10px;
  word-wrap: break-word;
  -webkit-user-select: none;
  user-select: none;
}

.question-emoji {
  font-size: 4.5em;
  margin: 15px 0;
  color: #E50914; /* Red for emphasis */
  -webkit-user-select: none;
  user-select: none;
}

.skip-btn {
  background-color: #767474; /* Result card grey */
  color: #FFFFFF;
  border: none;
  padding: 8px 16px;
  font-size: 0.9em;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.skip-btn:hover {
  background-color: #666666;
}

.hidden {
  display: none;
}

.result-card {
  background: #FFFFFF;
  color: #E50914;
  border: none;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 260px;
  height: 384px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: absolute;
  -webkit-user-select: none;
  user-select: none;
}

.result-card h2,
.result-card p {
  text-align: center;
  margin: 0;
  padding: 10px;
  color: #E50914;
}

.result-card button {
  background-color: #E50914;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  width: 80%;
  max-width: 200px;
  transition: background-color 0.3s ease;
}

.result-card button:hover {
  background-color: #F40612;
}

.dinner-icon {
  width: 48px;
  height: 48px;
  max-width: 20%;
  object-fit: contain;
  margin: 8px 0;
  color: #E50914; /* Red for emoji-based icons */
}

#search-btn,
#restart-btn {
  font-weight: 500;
}

.loading-card {
  background: #FFFFFF; /* White for consistency with question cards */
}

.swiping {
  cursor: grabbing;
}

.swiping-right::after {
  content: "YES";
  position: absolute;
  top: 20px;
  right: 20px;
  color: #36ba36;
  border: 2px solid #36ba36;
  padding: 5px 10px;
  border-radius: 4px;
  transform: rotate(15deg);
  font-weight: 500;
}

.swiping-left::after {
  content: "NO";
  position: absolute;
  top: 20px;
  left: 20px;
  color: #E50914; /* Red for consistency */
  border: 2px solid #E50914;
  padding: 5px 10px;
  border-radius: 4px;
  transform: rotate(-15deg);
  font-weight: 500;
}

/* Progress Indicator */
.progress {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1em;
  color: #333333;
  z-index: 20;
}

/* API Key Dialog Styles */
.api-key-dialog {
  background: #767474; /* Result card grey */
  width: 90%;
  max-width: 500px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.api-key-dialog h2 {
  color: #E50914;
  font-size: 1.8em;
  margin-bottom: 20px;
}

.api-key-container {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}

.api-key-container input {
  padding: 12px;
  font-size: 1em;
  border: 1px solid #B3B3B3;
  border-radius: 4px;
  background: #FFFFFF;
  color: #333333;
  margin-bottom: 15px;
}

.api-key-container button {
  background-color: #E50914;
  color: #FFFFFF;
  border: none;
  padding: 12px;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.api-key-container button:hover {
  background-color: #F40612;
}

.api-key-info {
  font-size: 0.9em;
  color: #FFFFFF;
  margin-top: 15px;
}

/* Swipe Indicators */
.swipe-indicators {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 300px;
  margin-bottom: 15px;
  position: relative;
  z-index: 0;
}

.swipe-indicator {
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.swipe-indicator:hover {
  background-color: #F0F0F0; /* Light grey hover */
}

.swipe-indicator:active {
  transform: scale(0.95);
}

.left-indicator {
  color: #E50914;
  border: 2px solid #E50914;
}

.right-indicator {
  color: #36ba36;
  border: 2px solid #36ba36;
}

.swipe-indicator span {
  font-size: 1.2em;
  margin: 0 5px;
}

/* Social Share Styles */
.social-share {
  margin-top: 20px;
  text-align: center;
}

.social-share p {
  font-size: 0.9em;
  color: #333333;
  margin: 0 0 10px;
}

.share-btn {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.share-btn.x {
  background-color: #333333; /* Dark grey instead of black */
  color: #FFFFFF;
}

.share-btn.x:hover {
  background-color: #4D4D4D;
}

.share-btn.discord {
  background-color: #5865F2;
  color: #FFFFFF;
}

.share-btn.discord:hover {
  background-color: #4752C4;
}

.share-btn.reddit {
  background-color: #FF4500;
  color: #FFFFFF;
}

.share-btn.reddit:hover {
  background-color: #E03D00;
}

.share-btn.copy {
  background-color: #767474; /* Result card grey */
  color: #FFFFFF;
}

.share-btn.copy:hover {
  background-color: #666666;
}

.share-btn.incubeai {
  background-color: #3d8fd2;
  color: #FFFFFF;
  padding: 8px 16px;
}

.share-btn.incubeai:hover {
  background-color: #3580be;
}

.share-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}

.reddit-icon {
  filter: none;
}

/* Result Social Share */
.result-social-share {
  margin-top: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 20;
}

.result-social-share .share-btn {
  width: 18%;
  max-width: 50px;
  padding: 8px;
  font-size: 0.8em;
  margin: 0 2%;
}

.result-social-share {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}