/* FlexCity website components added after the main stylesheet. */

.feature-panel-with-image {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.feature-panel-with-image > :not(.feature-panel-image) {
  position: relative;
  z-index: 1;
}

.feature-panel-image {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: min(42%, 220px);
  max-height: 190px;
  object-fit: contain;
  opacity: 0.34;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

[dir="rtl"] .feature-panel-image {
  right: auto;
  left: 18px;
}

.reward-image-card {
  overflow: hidden;
}

.reward-card-image {
  width: 100%;
  height: 145px;
  padding: 12px;
  object-fit: contain;
  border: 1px solid rgba(255, 230, 0, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle, rgba(255, 230, 0, 0.1), transparent 68%),
    rgba(255, 255, 255, 0.025);
}

.winner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.winner-chip {
  min-width: 0;
  padding: 6px 9px 6px 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.winner-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  object-fit: cover;
  background: #111827;
}

.winner-avatar-fallback {
  display: grid;
  place-items: center;
  color: #020611;
  background: #ffe600;
  font-weight: 900;
}

.winner-name {
  min-width: 0;
  display: grid;
  line-height: 1.15;
}

.winner-name strong {
  max-width: 180px;
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-name small {
  max-width: 180px;
  overflow: hidden;
  color: #9aa8bd;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.winner-empty {
  color: #9aa8bd;
}

@media (max-width: 720px) {
  .feature-panel-with-image {
    min-height: 280px;
  }

  .feature-panel-image {
    width: 46%;
    max-height: 150px;
    opacity: 0.26;
  }

  .winner-name strong,
  .winner-name small {
    max-width: 210px;
  }
}


.inline-discord-emoji {
  width: 1.18em;
  height: 1.18em;
  margin: 0 0.1em;
  display: inline-block;
  vertical-align: -0.2em;
  object-fit: contain;
}

.local-prize-emoji {
  width: 1.28em;
  height: 1.28em;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.28));
}

.card-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.event-register-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.event-register-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.header-profile {
  min-width: 0;
  max-width: 190px;
  padding: 5px 11px 5px 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.header-profile img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.header-profile span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-login-button {
  flex: 0 0 auto;
}

.announcement-bar {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 20px auto 0;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-large);
  background: linear-gradient(135deg, rgba(255, 230, 0, 0.1), rgba(33, 150, 243, 0.07)), var(--surface);
  box-shadow: var(--shadow-small);
}

.announcement-bar h2 {
  margin: 6px 0 0;
  font-size: 24px;
}

.announcement-bar p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.proof-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.proof-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.proof-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.proof-card > div {
  padding: 20px;
}

.proof-card h3 {
  margin: 0;
}

.proof-card p,
.proof-card small {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: rgba(7, 13, 26, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { border-color: rgba(34, 197, 94, 0.5); }
.toast.error { border-color: rgba(239, 68, 68, 0.55); }

.footer-columns {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1040px) {
  .language-selector { display: none; }
  .header-profile span { display: none; }
  .header-profile { padding-right: 5px; }
}

@media (max-width: 900px) {
  .header-login-button,
  .header-profile { display: inline-flex; }
  .proof-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .announcement-bar { width: calc(100% - 22px); align-items: flex-start; flex-direction: column; }
  .proof-gallery { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr; }
  .header-login-button { display: none; }
}
