/* ===============================
   THEME VARIABLES
================================ */
:root {
  --bg: linear-gradient(135deg, #f8f9fc, #eceffd);
  --card: #ffffff;
  --primary: #9b5de5;
  --accent: #f15bb5;
  --text: #2f2f2f;
  --muted: #7a7a7a;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(0,0,0,.08);
}

/* ===============================
   GLOBAL
================================ */
* {
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

/* ===============================
   AUTH PAGES (SIGNUP & LOGIN)
================================ */
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  margin: 10vh auto;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: slideUp .8s ease;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 24px;
  font-weight: 600;
}

.auth-card input {
  width: 100%;
  padding: 13px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
  transition: .3s;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(155,93,229,.15);
}

.auth-card button {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 15px;
  cursor: pointer;
  transition: .3s;
}

.auth-card button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(155,93,229,.35);
}

.auth-card p {
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
}

.auth-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

/* ===============================
   NAVBAR
================================ */
nav {
  background: var(--card);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
}

nav a,
nav button {
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  margin-right: 14px;
  cursor: pointer;
  transition: .3s;
}

nav a:hover,
nav button:hover {
  color: var(--primary);
}

/* ===============================
   HOME – CREATE POST
================================ */
.post-box {
  max-width: 620px;
  background: var(--card);
  margin: 28px auto;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeIn .7s ease;
}

.post-box input,
.post-box textarea {
  width: 100%;
  padding: 13px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  resize: none;
}

.post-box button {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  cursor: pointer;
}

/* ===============================
   POSTS FEED
================================ */
#posts,
#myposts {
  max-width: 620px;
  margin: auto;
}

.post {
  background: var(--card);
  padding: 20px;
  margin: 20px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeIn .6s ease;
}

.post h4 {
  margin-bottom: 6px;
}

.post p {
  font-size: 14px;
  color: var(--muted);
}

.post button {
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: #ff6b6b;
  color: white;
  cursor: pointer;
}

/* ===============================
   PROFILE PAGE
================================ */
.profile-card {
  max-width: 420px;
  background: var(--card);
  margin: 10vh auto;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: slideUp .8s ease;
}

.profile-card h2 {
  text-align: center;
  margin-bottom: 20px;
}

.profile-card input {
  width: 100%;
  padding: 13px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid #ddd;
}

.profile-card button {
  width: 100%;
  padding: 13px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 12px;
  }

  .auth-card,
  .post-box,
  .profile-card,
  .post {
    margin: 16px;
  }
}

/* ===============================
   ANIMATIONS
================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}


.styled-input {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.styled-textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  resize: vertical;
  min-height: 60px;
  margin-bottom: 6px;
}

.styled-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  margin-right: 6px;
  background: #ff7f50;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.styled-btn:hover {
  background: #ff5722;
}

.edit-buttons {
  margin-top: 6px;
  display: flex;
}
