/* THEVORA — YOUR ADS PAGE */

.ya-page {
  --ya-bg: #fff7f6;
  --ya-white: #fff;
  --ya-pink: #e8a5b5;
  --ya-pink-light: #fff0f3;
  --ya-pink-dark: #a84f6a;
  --ya-text: #392b31;
  --ya-muted: #786970;
  --ya-border: #f0dce1;
  --ya-green: #1a7a4a;
  --ya-green-bg: #edfaf3;
  --ya-red: #c0392b;
  --ya-red-bg: #fff5f5;
  background: var(--ya-bg);
  color: var(--ya-text);
  min-height: 100vh;
}

.ya-page *,
.ya-page *::before,
.ya-page *::after {
  box-sizing: border-box;
}

/* -------------------------
   HEADER EXTRAS
------------------------- */

.back-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ya-border);
  border-radius: 50%;
  background: var(--ya-white);
  color: var(--ya-text);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.back-btn:hover {
  border-color: var(--ya-pink);
  background: var(--ya-pink-light);
}

.header-home-btn,
.header-contact-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--ya-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.header-home-btn:hover,
.header-contact-btn:hover {
  color: var(--ya-pink-dark);
  background: var(--ya-pink-light);
}

/* -------------------------
   MAIN LAYOUT
------------------------- */

.ya-main {
  width: min(640px, 100%);
  margin-inline: auto;
  padding: 36px 20px 60px;
}

/* -------------------------
   TOP BAR
------------------------- */

.ya-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ya-heading {
  margin: 0;
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 800;
  color: var(--ya-text);
}

.ya-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--ya-pink-dark);
  color: #fff;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.ya-post-btn:hover {
  opacity: 0.88;
}

/* -------------------------
   STATS ROW
------------------------- */

.ya-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.ya-stat {
  background: var(--ya-white);
  border: 1px solid var(--ya-border);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
}

.ya-stat-val {
  display: block;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 900;
  color: var(--ya-text);
  line-height: 1;
  margin-bottom: 6px;
}

.ya-stat-val--green { color: var(--ya-green); }
.ya-stat-val--red   { color: var(--ya-red); }

.ya-stat-label {
  font-size: 12px;
  color: var(--ya-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* -------------------------
   STATUS TEXT
------------------------- */

.ya-status {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ya-muted);
  text-align: center;
}

/* -------------------------
   AD CARDS
------------------------- */

.ya-list {
  display: grid;
  gap: 16px;
}

.ya-card {
  background: var(--ya-white);
  border: 1px solid var(--ya-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(115, 52, 72, 0.06);
  transition: box-shadow 0.2s;
}

.ya-card:hover {
  box-shadow: 0 4px 20px rgba(115, 52, 72, 0.1);
}

.ya-card--expired {
  opacity: 0.75;
}

.ya-card-inner {
  display: flex;
  gap: 14px;
  padding: 16px;
}

.ya-card-img {
  width: 90px;
  height: 110px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ya-pink-light);
}

.ya-card-img-placeholder {
  width: 90px;
  height: 110px;
  border-radius: 10px;
  background: var(--ya-pink-light);
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
  color: var(--ya-pink);
}

.ya-card-info {
  flex: 1;
  min-width: 0;
}

.ya-card-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.ya-card-title {
  flex: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ya-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ya-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.ya-badge--active {
  background: var(--ya-green-bg);
  color: var(--ya-green);
}

.ya-badge--expired {
  background: var(--ya-red-bg);
  color: var(--ya-red);
}

.ya-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.ya-meta-item {
  font-size: 12px;
  color: var(--ya-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ya-meta-item strong {
  color: var(--ya-text);
  font-weight: 600;
}

.ya-card-location {
  font-size: 12px;
  color: var(--ya-muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* -------------------------
   CARD ACTIONS
------------------------- */

.ya-card-actions {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--ya-border);
  background: var(--ya-bg);
  flex-wrap: wrap;
}

.ya-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
}

.ya-action-btn--edit {
  background: var(--ya-pink-light);
  color: var(--ya-pink-dark);
  border-color: var(--ya-border);
}

.ya-action-btn--edit:hover {
  background: #f7d6e0;
  border-color: var(--ya-pink);
}

.ya-action-btn--renew {
  background: var(--ya-green-bg);
  color: var(--ya-green);
  border-color: #b7e8cf;
}

.ya-action-btn--renew:hover {
  background: #d4f5e4;
}

.ya-action-btn--delete {
  background: transparent;
  color: var(--ya-red);
  border-color: #f5c5c0;
  margin-left: auto;
}

.ya-action-btn--delete:hover {
  background: var(--ya-red-bg);
}

.ya-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* -------------------------
   EMPTY STATE
------------------------- */

.ya-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ya-muted);
}

.ya-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.ya-empty-text {
  font-size: 15px;
  margin: 0 0 20px;
}

.ya-empty-link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--ya-pink-dark);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.ya-empty-link:hover {
  opacity: 0.88;
}

/* -------------------------
   MODALS
------------------------- */

.ya-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(60, 20, 35, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 9999;
  padding: 20px;
}

.ya-modal-overlay[hidden] {
  display: none;
}

.ya-modal {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px 32px;
  width: min(400px, 100%);
  text-align: center;
  box-shadow: 0 20px 60px rgba(115, 52, 72, 0.18);
  animation: ya-modal-in 0.22s ease;
}

@keyframes ya-modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.ya-modal-icon {
  font-size: 44px;
  margin-bottom: 12px;
  line-height: 1;
}

.ya-modal-title {
  margin: 0 0 10px;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  color: var(--ya-text);
}

.ya-modal-title--red {
  color: var(--ya-red);
}

.ya-modal-msg {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ya-muted);
  line-height: 1.6;
}

.ya-modal-meta {
  background: var(--ya-bg);
  border: 1px solid var(--ya-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--ya-text);
  text-align: left;
  display: grid;
  gap: 6px;
}

.ya-modal-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.ya-modal-meta-key {
  color: var(--ya-muted);
}

.ya-modal-meta-val {
  font-weight: 700;
}

.ya-modal-actions {
  display: grid;
  gap: 10px;
}

.ya-modal-btn {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 11px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.15s, transform 0.15s;
}

.ya-modal-btn:active { transform: scale(0.97); }

.ya-modal-btn--primary {
  background: var(--ya-pink-dark);
  color: #fff;
  border-color: var(--ya-pink-dark);
}

.ya-modal-btn--primary:hover { opacity: 0.88; }

.ya-modal-btn--danger {
  background: var(--ya-red);
  color: #fff;
  border-color: var(--ya-red);
}

.ya-modal-btn--danger:hover { opacity: 0.88; }

.ya-modal-btn--ghost {
  background: transparent;
  color: var(--ya-muted);
  border-color: var(--ya-border);
}

.ya-modal-btn--ghost:hover {
  background: var(--ya-bg);
}

.ya-modal-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* -------------------------
   RESPONSIVE
------------------------- */

@media (max-width: 480px) {
  .ya-main {
    padding: 20px 12px 40px;
  }

  .ya-card-img,
  .ya-card-img-placeholder {
    width: 72px;
    height: 88px;
  }

  .ya-stats {
    gap: 8px;
  }
}