/* 🌒 خلفية spotlight */
body {
  background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 70%);
  color: #e0e0e0;
  font-family: 'Amiri', serif;
  margin: 0;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow-x: hidden;
}

/* ضباب */
.fog {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.015), transparent 70%);
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* 🟧 الزر */
button {
  background-color: #ff9800;
  border: none;
  color: white;
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1em;
}

input,
textarea {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: none;
  font-size: 1em;
}

textarea {
  height: 80px;
  resize: none;
}

.hidden {
  display: none;
}

.counter {
  margin-top: 20px;
  font-size: 1.2em;
}

/* ✅ توزيع Responsive */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
  padding: 0 10px;
}

/* 🪦 بطاقة الشاهد */
.tombstone-card {
  flex: 1 1 200px;
  max-width: 220px;
  position: relative;
}

/* ظل ترابي */
.tombstone-card::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 10px;
  background: radial-gradient(circle, rgba(60,40,30,0.4), transparent);
  z-index: -1;
  border-radius: 50%;
}

.tombstone-svg-wrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.tombstone-svg {
  width: 100%;
  height: auto;
  display: block;
}

.tombstone-text {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  padding: 0 4px;
  text-align: center;
  color: #e6e6e6;
  font-family: 'Amiri', serif;
  overflow: hidden;
}

.tombstone-text .dove-icon {
  font-size: 20px;
  margin-bottom: 5px;
}

.tombstone-text .name {
  font-size: 0.95em;
  font-weight: bold;
  margin-bottom: 5px;
  word-break: break-word;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tombstone-text .message {
  font-size: 0.75em;
  font-style: italic;
  color: #ccc;
  margin-bottom: 5px;
  line-height: 1.3;
  max-height: 3.6em;
  overflow: hidden;
  word-break: break-word;
  text-align: center !important;
}

.tombstone-text .timestamp {
  font-size: 0.7em;
  color: #aaa;
}

.donate {
  margin-top: 40px;
  font-size: 1em;
  color: #ccc;
}

.donate button {
  margin-top: 10px;
}


@media (max-width: 768px) {
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    gap: 20px;
    padding: 0 10px;
  }

  .tombstone-card {
    max-width: 100%;
    margin: 0 auto;
  }

  .tombstone-text .dove-icon {
    font-size: 16px;
  }

  .tombstone-text .name {
    font-size: 0.8em;
  }

  .tombstone-text .message {
    font-size: 0.7em;
    line-height: 1.3;
  }

  .tombstone-text .timestamp {
    font-size: 0.6em;
  }
}

