/* Reset */
* { margin:0; padding:0; box-sizing:border-box; }
body, html { font-family:'Montserrat', sans-serif; height:100%; }

/* Variables */
:root { --accent:#ffcc00; --btn-radius:40px; }

/* Buttons */
.btn { text-decoration:none; padding:14px 40px; border-radius:var(--btn-radius); font-weight:700; font-size:1rem; transition:all 0.3s ease; display:inline-block; text-align:center; }
.btn.yellow { background:var(--accent); color:#000; }
.btn.white { background:#fff; color:var(--accent); }
.btn:hover { transform:scale(1.05); opacity:0.95; }

/* Hero */
.hero { position:relative; height:100vh; background:url('hero-bg.jpg') center/cover no-repeat; display:flex; align-items:center; justify-content:center; }
.overlay { position:absolute; inset:0; background:rgba(0,0,0,0.55); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:2rem; }
.hero-content h2 { font-size:clamp(2.2rem,5vw,4rem); font-weight:900; line-height:1.1; color:#fff; text-transform:uppercase; }
.line2 { color:var(--accent); margin:0.5rem 0; }
.buttons { margin-top:2.5rem; display:flex; gap:1.2rem; justify-content:center; }
header { position:absolute; top:40px; left:50%; transform:translateX(-50%); }
.logo { color:#fff; font-weight:900; font-size:1.5rem; letter-spacing:1px; }

/* Auth Pages */
.auth-page { background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; min-height:100vh; padding-top:40px; }
.auth-container { background:#f9f9f9; padding:40px 30px; border-radius:20px; box-shadow:0 10px 25px rgba(0,0,0,0.1); width:100%; max-width:400px; text-align:center; }
.auth-title { font-size:1.8rem; font-weight:900; margin-bottom:25px; }
.auth-form input { width:100%; padding:14px 16px; margin-bottom:15px; border:2px solid #ddd; border-radius:12px; font-size:1rem; outline:none; transition:border-color 0.2s ease; }
.auth-form input:focus { border-color:var(--accent); }
.auth-switch { margin-top:15px; font-size:0.9rem; }
.auth-switch a { color:var(--accent); font-weight:700; text-decoration:none; }
.auth-switch a:hover { text-decoration:underline; }

/* Feed Page */
.feed-page {
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Header */
.feed-header {
  width: 100%;
  background: #fff;
  padding: 25px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

 


.feed-logo {
  font-weight: 900;
  font-size: 1.4rem;
  color: #000;
}

.feed-header nav {
  display: flex;
  gap: 25px;
}

.feed-header nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.feed-header nav a:hover,
.feed-header nav a.active {
  color: #000;
}

.logout {
  color: #ff4444;
}

/* Search Bar */
.feed-search {
  width: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 70px;
  z-index: 9;
}

.feed-search input {
  width: 90%;
  max-width: 600px;
  padding: 12px 18px;
  font-size: 1rem;
  border-radius: 30px;
  border: 2px solid #ddd;
  outline: none;
  transition: border-color 0.3s ease;
}

.feed-search input:focus {
  border-color: var(--accent);
}

.feed-container {
  width: 100%;
  max-width: 700px;
  margin: 30px auto 60px; /* much smaller top margin */
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0 15px;
}


/* Create Post */
.create-post-form {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.create-post-form textarea {
  width: 100%;
  padding: 16px;
  border-radius: 15px;
  border: 2px solid #ddd;
  resize: none;
  font-size: 1rem;
  outline: none;
  height: 100px;
  text-align: center;
}

.create-post-form textarea:focus {
  border-color: var(--accent);
}

/* Posts */
.feed-card {
  background: #fff;
  padding: 20px 25px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-card .avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.feed-card p {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.like-btn {
  background: none;
  border: none;
  font-weight: 700;
  cursor: pointer;
  color: #444;
  transition: color 0.2s ease, transform 0.1s ease;
}

.like-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}


/* Responsive */
@media(max-width:600px){ .feed-header{padding:15px 20px;} .btn{width:100%; text-align:center;} }

/* Feed Image Fix */
.feed-img {
  width: 90%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 15px auto;
  border-radius: 15px;
  object-fit: cover;
}

/* Comment Section */
.comment-section {
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.comment-section input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 2px solid #ddd;
  outline: none;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.comment-section input:focus {
  border-color: var(--accent);
}

/* Fix post box position */
.create-post-form {
  margin-top: 60px;
  width: 100%;
  max-width: 700px;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.create-post-form textarea::placeholder {
  text-align: center;
  color: #aaa;
}

/* Search Bar */
/* Compact Search Bar (fixed position issue) */
.feed-search {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #f9f9f9;
  padding: 10px 0 15px;
  position: relative;
  top: 0;
  margin-top: 100px; /* 👈 pushes it below the header */
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  z-index: 1;
}

.feed-search input {
  width: 260px;
  padding: 8px 14px;
  font-size: 0.9rem;
  border-radius: 20px;
  border: 1.5px solid #ccc;
  outline: none;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feed-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(255, 204, 0, 0.4);
}


/* Profile Page */
.profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
}

.profile-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 20px;
}

/* Profile Page (Editable) */
.profile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
}

.profile-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin: 0 auto;
}

#uploadPic {
  margin: 10px auto;
  text-align: center;
}

.profile-card input,
.profile-card textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.profile-card input:focus,
.profile-card textarea:focus {
  border-color: var(--accent);
}

.profile-card textarea {
  resize: none;
  height: 100px;
}

.feed-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-top: 10px;
  object-fit: cover;
}

.feed-img {
  width: 100%;
  border-radius: 15px;
  margin-top: 10px;
  object-fit: cover;
}

.delete-btn {
  background: none;
  border: none;
  font-weight: 700;
  color: #ff5555;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.2s ease;
}

.delete-btn:hover {
  transform: scale(1.1);
  opacity: 0.8;
}
