/* Navbar stacked */
nav.navbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 20px;
  background-color: #1f1f1f;
  border-bottom: 1px solid #333;
}

@media (min-width: 768px) {
  nav.navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.nav-left {
  width: 100%;
  text-align: center;
}

.nav-left a {
  color: #ffb86c;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Playfair Display', serif;
  font-size: 1.1em;
  display: inline-block;
  margin: 0 10px 8px;
}

.nav-left a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.translate-dropdown {
  width: 100%;
}

@media (min-width: 768px) {

  .nav-left,
  .translate-dropdown {
    width: auto;
  }
}

.translate-dropdown select {
  width: 100%;
  background-color: #1f1f1f;
  color: #ffb86c;
  border: 1px solid #ffb86c;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.95em;
  font-family: 'Playfair Display', serif;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s, border 0.3s;
}

.translate-dropdown select:focus,
.translate-dropdown select:hover {
  background-color: #2a2a2a;
  border: 1px solid #ff6b6b;
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.translate-dropdown option {
  background-color: #1f1f1f;
  color: #ffb86c;
}

/* Share Section */
.share-section {
  display: flex;
  justify-content: center;
  /* Center for better mobile UX */
  align-items: center;
  gap: 16px;
  /* Increased for touch spacing */
  margin: 24px auto;
  max-width: 1200px;
  /* Match story-grid */
  padding: 0 15px;
  font-size: 1.1rem;
  /* Slightly larger for readability */
}

.share-label {
  font-weight: 500;
  color: #e0e0e0;
}

.share-icon {
  width: 44px;
  /* WCAG-compliant touch target */
  height: 44px;
  background-color: #222;
  color: white;
  font-size: 20px;
  /* Slightly larger icons */
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Subtle border for contrast */
  cursor: pointer;
  transition: background 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
}

.share-icon.facebook {
  background-color: #1877f2;
}

.share-icon.whatsapp {
  background-color: #25d366;
}

.share-icon.copylink {
  background-color: #666;
}

.share-icon:hover,
.share-icon:active {
  opacity: 0.8;
  transform: scale(1.05);
  /* Subtle zoom for feedback */
}

.share-icon:focus {
  outline: 2px solid #ff6b6b;
  /* Keyboard navigation */
  outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .share-section {
    gap: 12px;
    font-size: 1rem;
  }

  .share-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .share-section {
    flex-wrap: wrap;
    /* Allow wrapping if needed */
    gap: 10px;
    padding: 0 10px;
  }

  .share-label {
    font-size: 0.9rem;
  }
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background-color: #121212;
  color: #888;
  font-size: 0.9em;
}

/* Footer links */
footer a {
  color: #ff9eb3;
  font-weight: 500;
}

.like-section {
  text-align: center;
  margin: 40px auto;
  padding: 0 16px;
  max-width: 700px;
}

.like-label {
  text-align: center;
  font-size: 1.3rem;
  color: #ffc0cb;
  font-weight: 500;
  margin-bottom: 12px;
}

#emoji-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
}

.emoji-btn {
  font-size: 2.2rem;
  background-color: transparent;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.emoji-btn:hover,
.emoji-btn.selected {
  transform: scale(1.2);
  border-color: #ff9eb3;
}

.emoji-counts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 1.2rem;
  color: #e0e0e0;
}

.official-promo {
  margin: 30px auto;
  padding: 20px;
  background: #2a2a2a;
  border: 2px solid #ff5c8d;
  text-align: center;
  border-radius: 10px;
  max-width: 700px;
  color: #ffe6eb;
}

.promo-banner {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.official-button {
  background-color: #ff5c8d;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
  transition: background 0.2s;
}

.official-button:hover {
  background-color: #e84b79;
}

.official-promo p {
  display: inline-block;
  max-width: 90%;
}