/* =========================================
   HOME PAGE — Let's Connect
   ========================================= */

/* Hero Section */
main {
  text-align: center;
  padding: 3rem 1rem;
}

main h1 {
  font-size: 2rem;
  color: #111;
  margin-bottom: 0.5rem;
}

main p {
  color: #555;
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Buttons */
.primary-btn {
  background: #DAA520;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin: 0.5rem;
  transition: background 0.2s ease;
}
.primary-btn:hover {
  background: #b8860b;
}

.secondary-btn {
  background: #eee;
  color: #333;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  margin: 0.5rem;
  transition: background 0.2s ease;
}
.secondary-btn:hover {
  background: #ddd;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Responsive tweaks */
@media (max-width: 480px) {
  main h1 {
    font-size: 1.5rem;
  }
  main p {
    font-size: 0.95rem;
  }
  .primary-btn, .secondary-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ===========================
   PUBLIC FEED PAGE STYLING
   =========================== */
.feed-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.feed-container h1 {
  color: var(--gold, #d4af37);
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.feed-intro {
  text-align: center;
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 1.5rem;
}

/* ---- Post Card ---- */
.post-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ---- Header ---- */
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold, #d4af37);
}

.username {
  margin: 0;
  font-size: 1rem;
  color: #222;
  font-weight: 600;
}

.timestamp {
  font-size: 0.8rem;
  color: #888;
}

/* ---- Content ---- */
.post-content {
  padding: 1rem;
}

.post-content p {
  margin-bottom: 0.75rem;
  color: #333;
  font-size: 0.95rem;
}

.post-image {
  width: 100%;
  border-radius: 10px;
  margin-top: 0.5rem;
}

/* ---- Actions ---- */
.post-actions {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #eee;
  padding: 0.75rem 0.5rem;
  background: #fafafa;
}

.post-actions button {
  background: none;
  border: none;
  color: #555;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.post-actions button:hover {
  color: var(--gold, #d4af37);
}

/* ---- Mobile-first ---- */
@media (max-width: 480px) {
  .feed-container {
    padding: 0.8rem;
  }

  .username {
    font-size: 0.95rem;
  }

  .post-content p {
    font-size: 0.9rem;
  }

  .post-actions button {
    font-size: 0.85rem;
  }
}

/* ---- Larger screens ---- */
@media (min-width: 768px) {
  .feed-container {
    max-width: 700px;
  }

  .post-card {
    border-radius: 14px;
  }

  .post-content p {
    font-size: 1rem;
  }
}

/* ===========================
   AUTH PAGES (Login / Register)
   =========================== */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px); /* accounts for header/footer */
  background: #fafafa;
  padding: 1rem;
}

.auth-container {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.auth-container h2 {
  color: var(--gold, #d4af37);
  margin-bottom: 1rem;
}

.message {
  background: #ffeaea;
  color: #c00;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.auth-container input {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.auth-container input:focus {
  border-color: var(--gold, #d4af37);
  outline: none;
}

.auth-container button {
  background: var(--gold, #d4af37);
  color: #000;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.8rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.auth-container button:hover {
  background: #000;
  color: var(--gold, #d4af37);
  transform: scale(1.02);
}

.auth-container p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #555;
}

.auth-container a {
  color: var(--gold, #d4af37);
  text-decoration: none;
  font-weight: 500;
}

.auth-container a:hover {
  text-decoration: underline;
}

/* ---- Mobile Adjustments ---- */
@media (max-width: 480px) {
  .auth-container {
    padding: 1.5rem 1.2rem;
  }

  .auth-container h2 {
    font-size: 1.4rem;
  }
}
