/* =====================
   GLOBAL RESET
===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
}

body {
  background: #1f2227;
  color: #ffffff;
  min-height: 100vh;
}

/* =====================
   APP WRAPPER
===================== */
.app {
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle at top, #2b2f36, #1f2227);
  animation: fadeIn 0.6s ease forwards;
}

/* Center content */
.nav,
.composer,
.feed,
.footer {
  max-width: 1100px;
  margin: auto;
}

/* =====================
   NAVBAR
===================== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  margin-top: 18px;

  background: linear-gradient(180deg, #23272f, #1c1f25);
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.04);

  transition: transform 0.25s ease;
}

.nav:hover {
  transform: translateY(-2px);
}

/* =====================
   BRAND
===================== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 42px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

/* =====================
   NAV RIGHT
===================== */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

/* =====================
   CREATE POST BUTTON (FINAL)
===================== */
a.btn {
  text-decoration: none;
}

.btn {
  background: linear-gradient(180deg, #2a2e35, #23272f);
  color: #e5e7eb;

  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 22px;
  border-radius: 999px;

  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 30px rgba(0,0,0,0.35);

  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease,
    border 0.25s ease;
}

.btn:hover {
  background: linear-gradient(180deg, #30343c, #262a31);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* =====================
   PROFILE
===================== */
.profile {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =====================
   DROPDOWN
===================== */
.dropdown {
  position: absolute;
  top: 52px;
  right: 0;
  width: 150px;
  background: #2a2e35;
  border-radius: 14px;
  display: none;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.dropdown a {
  display: block;
  padding: 12px;
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.dropdown a:hover {
  background: rgba(255,255,255,0.08);
}

/* =====================
   COMPOSER
===================== */
.composer {
  padding: 26px 22px;
}

.composer input {
  width: 100%;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #242830;
  color: white;
  font-size: 15px;
  outline: none;
}

.composer input::placeholder {
  color: #9aa0a6;
}

.composer input:focus {
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
}

/* =====================
   FEED
===================== */
.feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 10px 22px 50px;
}

/* =====================
   POST CARD
===================== */
.card {
  background: #2a2e35;
  border-radius: 18px;
  padding: 18px;
  min-height: 150px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: slideUp 0.6s ease forwards;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.card.highlight {
  border: 1px solid rgba(255,255,255,0.35);
}

.tag {
  font-size: 13px;
  color: #9aa0a6;
}

.time,
.reply {
  font-size: 12px;
  color: #9aa0a6;
}

/* =====================
   FOOTER
===================== */
.footer {
  margin-top: 60px;
  padding: 40px 24px;

  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;

  background: rgba(2,6,23,0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-col {
  min-width: 200px;
}

.footer-col h3 {
  font-size: 1.3rem;
  color: #38bdf8;
  margin-bottom: 10px;
}

.footer-col p {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-col a {
  display: block;
  color: #cbd5f5;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #38bdf8;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 1024px) {
  .nav, .composer, .feed, .footer {
    max-width: 92%;
  }
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
  }

  .feed {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 20px;
  }

  .btn {
    font-size: 13px;
    padding: 8px 14px;
  }

  .profile {
    width: 34px;
    height: 34px;
  }
}

/* =====================
   ANIMATIONS
===================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   MY POSTS PAGE
===================== */

/* Page heading spacing */
.composer h2 {
  font-size: 22px;
  font-weight: 700;
  color: #e5e7eb;
}

.composer p {
  margin-top: 4px;
  color: #9aa0a6;
  font-size: 14px;
}

/* Slight distinction for My Posts cards */
#myFeed .card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Optional: subtle left accent */
#myFeed .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
}

/* Empty / error message center */
#myFeed > p {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .composer h2 {
    font-size: 20px;
  }

  #myFeed .card::before {
    display: none;
  }
}

/* ===== MY POSTS FOOTER ===== */
.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

/* ===== DELETE BUTTON ===== */
.delete-btn {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.6);
  color: #ef4444;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.delete-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}
