/* ðŸŒ¿ SwapHandMeDowns Style â€” by Jane & Nova Sage ðŸ’š */
/* Features: Soft glow effects, smooth page transitions, accessibility ready */

:root {
  --primary-green: #2e7d32;
  --light-green: #a5d6a7;
  --soft-white: #f9fff9;
  --accent-gold: #ffc107;
  --text-dark: #333;
  --button-green: #4caf50;
  --button-hover: #388e3c;
  --glow-green: rgba(76, 175, 80, 0.45);
}

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: var(--soft-white);
  color: var(--text-dark);
  overflow-x: hidden;
  animation: fadeInPage 1.2s ease;
  transition: background 0.3s, color 0.3s;
}

/* HEADER */
header {
  background: var(--primary-green);
  color: white;
  text-align: center;
  padding: 1.2rem 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  font-size: 1.9rem;
  letter-spacing: 0.5px;
}

/* NAVIGATION */
nav {
  margin-top: 0.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 0.7rem;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
  color: var(--accent-gold);
  text-shadow: 0 0 8px var(--glow-green);
}
nav a.active {
  color: var(--accent-gold);
  text-decoration: underline;
}
/* MAIN CONTENT */
main {
  max-width: 1100px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease-in;
}

/* FORMS */
form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input, select, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 8px var(--glow-green);
  outline: none;
}

/* BUTTONS */
button {
  background: var(--button-green);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

button:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--glow-green);
}

/* ITEM CARDS */
.card, .item-card {
  background: white;
  border: 1px solid var(--light-green);
  border-radius: 10px;
  padding: 15px;
  margin: 15px 0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px var(--glow-green);
}

.item-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* LOGIN / REGISTER */
.login-container {
  max-width: 450px;
  background: white;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-in;
}

.login-container h2 {
  text-align: center;
  color: var(--primary-green);
  margin-bottom: 10px;
}

.register-link {
  text-align: center;
  margin-top: 15px;
  font-size: 0.95rem;
}

.register-link a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: bold;
}

.register-link a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  background: var(--primary-green);
  color: white;
  text-align: center;
  padding: 1.4rem;
  font-size: 0.9rem;
  line-height: 1.6;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
}

footer a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
  text-shadow: 0 0 6px var(--accent-gold);
}

/* ACCESSIBILITY */
:focus {
  outline: 3px solid var(--accent-gold);
  outline-offset: 2px;
}

/* SMOOTH PAGE FADE */
@keyframes fadeInPage {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MOBILE FRIENDLY */
@media (max-width: 700px) {
  main {
    padding: 1.2rem;
  }

  nav a {
    display: inline-block;
    margin: 6px;
    font-size: 0.95rem;
  }
  /* 🌱 REGISTER PAGE STYLING — Nova Sage & Jane */
.register-container {
  max-width: 480px;
  background: var(--soft-white);
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
  animation: fadeIn 1s ease-in;
}

.register-container h2 {
  text-align: center;
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.register-container p {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.register-container label {
  display: block;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 5px;
}

.register-container input,
.register-container select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.register-container input:focus,
.register-container select:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 8px var(--glow-green);
}

.register-container button {
  width: 100%;
  padding: 12px;
  background: var(--button-green);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.register-container button:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px var(--glow-green);
}

.register-container .terms {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 1rem;
}
/* 🌍 MOBILE NAVBAR TOGGLE — Nova Sage & Jane */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  background: none;
  border: none;
}

@media (max-width: 700px) {
  nav {
    display: none;
    flex-direction: column;
    background: var(--primary-green);
  }

  nav.active {
    display: flex;
  }

  .menu-toggle {
    display: inline-block;
    position: absolute;
    right: 1rem;
    top: 1.2rem;
  }

  nav a {
    margin: 0.5rem 0;
    font-size: 1rem;
  }
}
/* 🌍 TERMS SECTION — Nova Sage & Jane */
.terms-options {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  flex-wrap: wrap; /* keeps layout nice on smaller screens */
}

.terms-options span {
  font-weight: bold;
  color: var(--text-dark);
}

.terms-options a {
  color: var(--primary-green);
  text-decoration: underline;
}

.terms-options label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: normal;
  color: #333;
}

.terms-options input[type="radio"] {
  accent-color: var(--primary-green); /* gives green color to radio buttons */
  transform: scale(1.1);
}
/* ==========================================================
   🌍 SWAPHANDMEDOWNS ENHANCED STYLES — by Jane & Nova Sage
   For: Browse, Messaging, Replies, and Inbox
   ========================================================== */

/* 🔍 FILTER BAR */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: #f2f9f2;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.filter-bar select,
.filter-bar input[type="text"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  min-width: 160px;
}

.filter-bar button {
  background: var(--button-green);
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.filter-bar button:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
}

/* 🧺 ITEM CARDS (Browse Page) */
.item-card {
  background: white;
  border: 1px solid var(--light-green);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px var(--glow-green);
}

.item-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.item-card h3 {
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #555;
}

.contact-btn {
  background: var(--button-green);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.contact-btn:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
}

/* 🌿 SHOW MORE BUTTON */
#showMoreBtn {
  display: block;
  margin: 2rem auto;
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

#showMoreBtn:hover {
  background: var(--button-hover);
  transform: translateY(-2px);
}

/* 💬 MESSAGE + REPLY STYLES */
.reply-box,
.message-container {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.reply-box h2,
.message-container h2 {
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 1rem;
}

.reply-box p,
.message-container p {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

textarea {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1rem;
  resize: vertical;
  box-sizing: border-box;
}

textarea:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 8px var(--glow-green);
}

/* 📥 INBOX TABLE (for future messages.php) */
.inbox-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.inbox-table th,
.inbox-table td {
  border: 1px solid #e5e5e5;
  padding: 10px;
  text-align: left;
}

.inbox-table th {
  background: var(--light-green);
  color: var(--text-dark);
}

.inbox-table tr:hover {
  background: #f9fff9;
}

.inbox-status {
  font-size: 0.9rem;
  color: #888;
}

.inbox-status.unread {
  font-weight: bold;
  color: var(--primary-green);
}

/* 📱 RESPONSIVE ADJUSTMENTS */
@media (max-width: 700px) {
  .item-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
/* 💬 MESSAGE COUNTER BADGE — Nova Sage & Jane */
.nav-badge {
  background: var(--accent-gold);
  color: #333;
  font-weight: bold;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.8rem;
  vertical-align: middle;
  margin-left: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  animation: pulseBadge 2s infinite;
}

/* Gentle pulse for unread message badge */
@keyframes pulseBadge {
  0% { box-shadow: 0 0 5px var(--accent-gold); }
  50% { box-shadow: 0 0 12px var(--accent-gold); }
  100% { box-shadow: 0 0 5px var(--accent-gold); }
}
