/* account-home.css — styles for My Page (UserHomeController)
   Dark-friendly + high-contrast; all rules are scoped to .account-home
*/

/* --- Layout --- */
.container.account-home {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
  color: #e5e7eb; /* default light text on dark bg */
}
.account-home .grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .account-home .grid { grid-template-columns: 1fr; }
}

/* --- Cards --- */
.account-home .card {
  background: #0f172a;                 /* slate-900 */
  border: 1px solid #1f2937;           /* slate-800 */
  border-radius: 12px;
  padding: 16px;
  color: #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* --- Headings / text --- */
.account-home .title,
.account-home h1,
.account-home h2,
.account-home h3 {
  color: #ffffff;
  margin: 0 0 10px;
}
.account-home .muted { color: #cbd5e1; }   /* slate-300 */
.account-home .small { font-size: 12px; }
.account-home a { color: #93c5fd; }        /* sky-300 */
.account-home a:hover { text-decoration: underline; }

/* --- Profile row --- */
.account-home .profile-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.account-home .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1f2937;
  background: #111827;                   /* gray-900 (fallback behind transparent PNGs) */
}

/* --- Badges --- */
.account-home .badges {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.account-home .badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2e8f0;                   /* slate-200 */
  color: #0f172a;                         /* slate-900 */
  border: 0;
  font-weight: 600;
}
.account-home .badge.ok   { background: #bbf7d0; color: #065f46; } /* green-200 / green-800 */
.account-home .badge.warn { background: #fde68a; color: #92400e; } /* amber-200 / amber-900 */
.account-home .badge.biz  { background: #bfdbfe; color: #1e3a8a; } /* blue-200 / indigo-900 */

/* --- Meta list --- */
.account-home .meta {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 10px;
  margin: 14px 0;
}
.account-home .meta dt { color: #94a3b8; } /* slate-400 */

/* --- Buttons --- */
.account-home .btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #1f2937;             /* slate-800 */
  background: #111827;                    /* gray-900 */
  text-decoration: none;
  color: #f9fafb;                         /* gray-50 */
  transition: background .15s ease, border-color .15s ease;
}
.account-home .btn:hover { background: #0b1220; }
.account-home .btn.ghost {
  background: transparent;
  border-color: #334155;                  /* slate-700 */
  color: #e5e7eb;
}
.account-home .btn.primary {
  background: #2563eb;                    /* blue-600 */
  border-color: #1d4ed8;                  /* blue-700 */
  color: #fff;
}
.account-home .btn.danger {
  background: #7f1d1d;                    /* red-900 */
  color: #fee2e2;                          /* red-100 */
  border-color: #991b1b;
}
.account-home .btn.xs { padding: 6px 8px; font-size: 12px; }
.account-home .actions .btn { margin-right: 8px; }

/* --- Rows --- */
.account-home .row { display: flex; align-items: center; }
.account-home .row.between { justify-content: space-between; }
.account-home .row.gap { gap: 8px; }

/* --- Quick actions --- */
.account-home .quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.account-home .quick {
  display: block;
  padding: 12px;
  border: 1px solid #1f2937;
  border-radius: 10px;
  text-decoration: none;
  color: #e5e7eb;
  background: #111827;
  text-align: center;
}
.account-home .quick:hover { background: #0b1220; }

/* --- Listings grid --- */
.account-home .listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.account-home .listing-card {
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 10px;
  background: #0b1220;
}
.account-home .listing-card h3 { color: #ffffff; margin: 8px 0; font-size: 1rem; }
.account-home .listing-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #111827;
}
.account-home .thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  background: #111827;
  border-radius: 8px;
  border: 1px dashed #334155;
  color: #94a3b8;
}

/* --- Admin tip --- */
.account-home .admin-tip { margin-top: 10px; font-size: 13px; color: #cbd5e1; }

/* --- Kill any accidental overlays that dim content (CSP-safe) --- */
.account-home .card .overlay { background: transparent !important; opacity: 1 !important; }
