/* === Schrift: Playfair Display lokal eingebunden === */
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}

/* Buttons mit Glanz-Effekt */
button {
  position: relative;
  background-color: #ff69b4;
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  overflow: hidden;
  font-family: 'Playfair Display', serif;
  transition: background-color 0.3s ease;
}
button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 50%;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
button:hover {
  background-color: #ff85c1;
}

/* Start-Screen */
#startOverlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.startBox {
  width: 90%;
  max-width: 600px;
  background: #fff0f5;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
  font-family: 'Playfair Display', serif;
}

/* Haupt-Chat-Bereich */
#mainContainer {
  display: none;
  height: 100vh;
  display: flex;
  flex-direction: row;
}
#chatArea {
  background-color: #000;
  color: #fff;
  width: 75%;
  display: flex;
  flex-direction: column;
  font-family: 'Playfair Display', serif;
}
#chatHeader {
  color: #fff;
  background: #000000;
  padding: 0.5rem;
  font-weight: bold;
  font-family: 'Playfair Display', serif;
}
#chatMessages {
  flex: 1;
  padding: 0.5rem;
  overflow-y: auto;
  font-family: 'Playfair Display', serif;
}
#chatInput {
  padding: 0.5rem;
  border-top: 1px solid #ccc;
  display: flex;
}
#chatInput input {
  flex: 1;
  padding: 0.5rem;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
}
#chatInput button {
  padding: 0.75rem 1rem;
  min-width: 44px;
  min-height: 44px;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
}

/* Profilbereich rechts */
#profileArea {
  background-color: #000;
  color: #fff;
  width: 25%;
  overflow-y: auto;
}
#userDisplay {
  margin: 0.5rem 0;
  font-weight: bold;
  text-align: center;
}
.category {
  margin: 1rem 0.5rem;
}
.category h3 {
  margin: 0.5rem 0;
  font-size: 1rem;
  border-bottom: 1px solid #ccc;
  font-family: 'Playfair Display', serif;
}

/* Frauen-Profile: Verlauf & Glanz */
.profilesContainer .profile {
  background: linear-gradient(to bottom, #ff85c1, #ff69b4);
  border-radius: 20px;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.4);
  transition: transform 0.2s ease;
  color: white;
  font-family: 'Playfair Display', serif;
}
.profilesContainer .profile:hover {
  transform: scale(1.03);
}
.profilesContainer .profile img.thumb {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 8px;
}

/* Overlay für private Chats */
#chatOverlay,
#feedbackOverlay {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  max-height: 80%;
  background: #fff0f5;
  border: 4px solid #ff69b4;
  border-radius: 24px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  display: none;
  flex-direction: column;
  overflow: hidden;
  padding: 1rem;
  z-index: 1001;
  font-family: 'Playfair Display', serif;
}

/* Schwarzer Schleier bei Chat */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}
body.chat-open::after {
  display: block;
}

/* === Ticker mit horizontaler Animation === */
/* === Ticker mit sofort sichtbarem Start und Hover-Pause === */
.ticker {
  width: 100%;
  overflow: hidden;
  background: #000;
  color: #ff69b4;
  font-size: 0.9rem;
  height: 24px;
  position: relative;
  border-radius: 8px;
}

.ticker .ticker-track {
  display: inline-block;
  white-space: nowrap;
  position: absolute;
  will-change: transform;
  animation: tickerScroll 30s linear infinite;
  animation-play-state: running;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  margin-right: 4rem;
}

/* Animation startet direkt sichtbar */
@keyframes tickerScroll {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}


/* Nachrichten im Overlay */
.overlayMessages {
  flex: 1;
  padding: 0.5rem;
  overflow-y: auto;
  font-family: 'Playfair Display', serif;
}
.message.user {
  text-align: right;
  margin: 0.25rem 0;
}
.message.profile {
  text-align: left;
  margin: 0.25rem 0;
}

/* Eingabefelder */
.overlayInput {
  display: flex;
  padding: 0.25rem 0;
}
.overlayInput input[type="file"],
.overlayInput input[type="text"] {
  flex: 1;
  margin-right: 0.5rem;
  padding: 0.5rem;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
}
.overlayInput button {
  padding: 0.75rem 1rem;
  min-width: 44px;
  min-height: 44px;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
}
#uploadHint {
  font-size: 0.85rem;
  color: #666;
  margin: 0.25rem 0;
}

/* Feedback */
.overlayContent {
  text-align: center;
}
.feedbackButtons {
  display: flex;
  justify-content: space-around;
  margin-top: 1rem;
}
.feedbackButtons button {
  padding: 0.75rem 1.5rem;
  min-width: 44px;
  min-height: 44px;
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
}

/* Bild im Chat */
.overlayImage {
  display: block;
  margin: 0 auto 0.5rem;
  width: auto;
  height: 300px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Mobile Optimierung */
@media (max-width: 480px) {
  .startBox {
    padding: 1rem;
  }
  #chatInput input,
  .overlayInput input[type="text"] {
    font-size: 0.9rem;
  }
  button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}
