/* Wadewow V1 — User Story gallery
   - Story card (photo / video / text / rating)
   - Star rating input (form)
   - Gallery grid + empty state
*/

:root {
  --story-radius: 14px;
  --story-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ============================================
   Gallery grid
   ============================================ */
.wd-stories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .wd-stories-grid { grid-template-columns: 1fr; }
}

.wd-stories-empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-soft, #f9fafb);
  border: 2px dashed var(--line, #e6e8eb);
  border-radius: var(--story-radius);
  color: var(--ink-soft, #6b7280);
}
.wd-stories-empty h3 {
  font-size: 18px;
  color: var(--ink, #1a1a1a);
  margin: 0 0 8px;
  font-family: 'Fraunces', Georgia, serif;
}
.wd-stories-empty p {
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   Story card
   ============================================ */
.wd-story-card {
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--line, #e6e8eb);
  border-radius: var(--story-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--story-shadow);
}
.wd-story-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #000;
  overflow: hidden;
}
.wd-story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wd-story-card__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.wd-story-card__verified {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 153, 0, 0.95);
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
}
.wd-story-card__verified::before {
  content: '✓';
  font-size: 11px;
  font-weight: 800;
}
.wd-story-card__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wd-story-card__rating {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 10px;
}
.wd-story-card__star {
  width: 18px;
  height: 18px;
  color: #f5a623;
}
.wd-story-card__star--empty {
  color: #e5e7eb;
}
.wd-story-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.wd-story-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #E8704C), #f5a623);
  color: white;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wd-story-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  margin: 0;
  line-height: 1.2;
}
.wd-story-card__location {
  font-size: 12px;
  color: var(--ink-soft, #6b7280);
  margin: 2px 0 0;
}
.wd-story-card__date {
  font-size: 11px;
  color: var(--ink-soft, #9ca3af);
  margin: 0 0 0 auto;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wd-story-card__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink, #1a1a1a);
  margin: 0 0 12px;
  flex: 1;
}
.wd-story-card__product {
  font-size: 12px;
  color: var(--ink-soft, #6b7280);
  font-style: italic;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line, #f3f4f6);
}
.wd-story-card__product strong {
  color: var(--accent, #E8704C);
  font-weight: 600;
  font-style: normal;
}

/* ============================================
   Star rating input (form)
   ============================================ */
.wd-rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}
.wd-rating-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wd-rating-input label {
  font-size: 28px;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.1s ease;
  line-height: 1;
}
.wd-rating-input label:hover,
.wd-rating-input label:hover ~ label,
.wd-rating-input input:checked ~ label {
  color: #f5a623;
}
.wd-rating-input input:checked ~ label {
  transform: scale(1.05);
}

/* ============================================
   Form (user story submit)
   ============================================ */
.wd-story-form {
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--line, #e6e8eb);
  border-radius: 16px;
  padding: 32px;
  max-width: 700px;
  margin: 48px auto;
  box-shadow: var(--story-shadow);
}
.wd-story-form h3 {
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--ink, #1a1a1a);
  font-family: 'Fraunces', Georgia, serif;
}
.wd-story-form > p {
  font-size: 14px;
  color: var(--ink-soft, #4b5563);
  margin: 0 0 24px;
  line-height: 1.5;
}
.wd-story-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 560px) {
  .wd-story-form__row { grid-template-columns: 1fr; }
}
.wd-story-form__field {
  margin-bottom: 18px;
}
.wd-story-form__field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  margin-bottom: 6px;
}
.wd-story-form__field .wd-hint {
  font-weight: 400;
  color: var(--ink-soft, #6b7280);
  font-size: 12px;
  margin-left: 6px;
}
.wd-story-form__field input[type="text"],
.wd-story-form__field input[type="url"],
.wd-story-form__field input[type="email"],
.wd-story-form__field input[type="file"],
.wd-story-form__field textarea,
.wd-story-form__field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line, #d1d5db);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink, #1a1a1a);
  background: var(--bg-elevated, #fff);
  box-sizing: border-box;
}
.wd-story-form__field input:focus,
.wd-story-form__field textarea:focus,
.wd-story-form__field select:focus {
  outline: none;
  border-color: var(--accent, #E8704C);
}
.wd-story-form__field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}
.wd-story-form__field--rating {
  text-align: center;
  padding: 20px 0;
  background: var(--bg-soft, #f9fafb);
  border-radius: 10px;
  margin-bottom: 18px;
}
.wd-story-form__field--rating label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1a1a1a);
  margin-bottom: 8px;
}
.wd-story-form__submit {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--accent, #E8704C);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.wd-story-form__submit:hover {
  background: #c9593a;
}
.wd-story-form__submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.wd-story-form__success {
  display: none;
  text-align: center;
  padding: 20px;
}
.wd-story-form__success.is-visible {
  display: block;
}
.wd-story-form__success h4 {
  font-size: 22px;
  color: var(--ink, #1a1a1a);
  margin: 0 0 8px;
  font-family: 'Fraunces', Georgia, serif;
}
.wd-story-form__success p {
  font-size: 14px;
  color: var(--ink-soft, #4b5563);
  margin: 0 0 16px;
}
