/* ================================
 ASTROWORLD DESIGN SYSTEM v1.2
 Clean Creator Pro — Premium
 Mobile First
================================ */

:root {
  --primary: #2563eb;
  --secondary: #4f46e5;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,.08);

  --gradient: linear-gradient(135deg,#2563eb,#4f46e5);
}

/* RESET */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* LINKS */
a { color: var(--primary); text-decoration: none; }

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 14px;
}

/* CARD */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  margin-bottom: 18px;
  transition: .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===========================
 HEADER
=========================== */

.main-header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 22px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  gap: 16px;
}

.main-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.nav-user {
  background: var(--gradient);
  color: white !important;
}

/* ===========================
 PROFILE
=========================== */

.profile-wrapper {
  max-width: 1100px;
  margin: auto;
  padding: 18px;
}

.profile-banner {
  height: 260px;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 28px 28px;
}

.profile-header {
  background: white;
  margin-top: -100px;
  padding: 22px;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.avatar-lg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-stats {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.profile-stats div {
  background: #f1f5f9;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
}

/* ===========================
 TABS
=========================== */

.tabs {
  margin-top: 20px;
  background: white;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.tabs a,
.tabs div {
  padding: 14px 26px;
  font-weight: 700;
}

/* ===========================
 FEED / POSTS
=========================== */

.feed-wrapper {
  max-width: 760px;
  margin: 25px auto;
}

/* POST CARD */
.post-card,
.feed-card {
  background: white;
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-md);
  margin-bottom: 22px;
  transition: .2s ease;
}

.post-card:hover,
.feed-card:hover {
  transform: translateY(-4px);
}

/* POST IMAGES */
.post-card img,
.feed-card img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 6px;
  background: white;
}

/* POST META */
.post-card small,
.post-stats {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* ===========================
 FORCE ACTION BUTTONS
=========================== */

.post-card a[href*="edit"],
.post-card a[href*="delete"],
.post-card a[href*="pin"],
.feed-card a[href*="edit"],
.feed-card a[href*="delete"],
.feed-card a[href*="pin"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  margin-left: 6px !important;
}

/* DELETE */
.post-card a[href*="delete"],
.feed-card a[href*="delete"] {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

/* PIN */
.post-card a[href*="pin"],
.feed-card a[href*="pin"] {
  background: #fef3c7 !important;
  color: #b45309 !important;
}

/* PINNED POST */
.post-card.pinned,
.post-card:has(a[href*="unpin"]) {
  border: 2px solid var(--warning);
  box-shadow: 0 0 0 4px rgba(245,158,11,.15);
}

/* ===========================
 COMPOSER
=========================== */

textarea {
  border-radius: 18px;
  padding: 14px;
}

input[type="file"]::-webkit-file-upload-button {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 6px 16px;
  border: 1px solid var(--border);
}

/* POST BUTTON */
form button,
form input[type="submit"] {
  background: var(--gradient) !important;
  color: white !important;
  border-radius: 999px !important;
  padding: 10px 22px !important;
  border: none !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

/* ===========================
 MOBILE
=========================== */

@media (max-width: 700px) {

  .feed-wrapper { max-width: 95%; }

  .post-card,
  .feed-card { padding: 14px; }

  .profile-header {
    text-align: center;
    justify-content: center;
  }

  .profile-stats { justify-content: center; }

  body { padding-bottom: 70px; }
}
