/* === Base Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

a {
  color: #007bff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

main {
  max-width: 700px;
  margin: 30px auto;
  padding: 0 15px;
}

/* === Login Page === */
body.login {
  background: #f3f3f3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.login-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}


.login-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 360px;
}
.login-box h1 {
  margin-bottom: 20px;
}

.main-header {
  background: linear-gradient(to right, #6c00ff, #00e0ff);
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-family: 'Segoe UI', sans-serif;
}

.main-header a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
  font-family: 'Segoe UI', sans-serif;
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.nav-links a {
  font-size: 1rem !important;
  font-weight: 500 !important;
  font-family: 'Segoe UI', sans-serif;
}

.nav-links span {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  margin-left: 4px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px 0;
}

/* === Google Sign-In === */
.google-signin-wrapper {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
}
.g_id_signin {
  font-family: Roboto, sans-serif !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 1.5;
  width: 100% !important;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: none !important;
}
.g_id_signin > div {
  min-height: 40px;
}

/* === Legacy Navbar (Optional) === */
.navbar {
  background: #fff;
  padding: 12px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.navbar .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}
.navbar nav a {
  margin: 0 10px;
  font-weight: 500;
}

/* === Post Form === */
.post-form textarea {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
  min-height: 100px;
  font-size: 1rem;
}
.post-form input[type="file"] {
  margin-top: 12px;
}
.post-form button {
            margin-top: 12px;
            padding: 10px 20px;
            background: #6f54e2;
            color: #fff;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
        }
        
.post-form button:hover {
            background: #5a43c1;
}

/* === Feed === */
.feed {
  margin-top: 40px;
}
.post {
  background: white;
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
small {
  color: #777;
}

/* === Profile Box === */
.profile-box {
  text-align: center;
  background: white;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}
.avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
}

/* === Highlighted Post === */
.feed-post.highlight {
  background-color: #fff3a0;
  transition: background-color 1s ease;
}

/* === Share Menu === */
.share-menu a,
.share-menu button {
  display: inline-block;
  padding: 8px;
  font-size: 1.2rem;
  background: none;
  border: none;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
}
.share-menu a:hover,
.share-menu button:hover {
  background: #f0f0f0;
}
.share-toggle {
  font-size: 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* === Future Button === */
.button-future {
  background: linear-gradient(to right, #6c00ff, #00e0ff);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
  transition: all 0.3s ease-in-out;
}
.button-future:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 224, 255, 0.8);
}

/* === Comments === */
.comment:target {
  background: #fff9c4;
  transition: background 1s ease;
}

/* === Footer === */
footer {
  flex-shrink: 0;
  padding: 10px;
  text-align: center;
  background-color: #eee;
  font-size: 0.9rem;
  color: #777;
}

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #111;
    padding: 10px;
    border-radius: 6px;
    z-index: 1001;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .navbar nav {
    margin-top: 10px;
  }
  .post-form button {
    width: 100%;
  }
  .login-box {
    padding: 30px 20px;
  }
}

/* === Navigation Font === */
.nav-links a {
  font-size: 1rem !important;
  font-weight: 500 !important;
}
.comment-submit-btn {
  background: #6f54e2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.comment-submit-btn:hover {
  background: #5a43c1;
}
.main-footer {
        background: #1d1f33;
    color: #b2eaff;
        padding: 20px 15px;
        text-align: center;
        font-size: 0.9rem;
    }
    
.username-static {
  color: #333 !important; /* or any fixed color you like */
}
.username-link {
  color: #333;
  font-weight: bold;
  text-decoration: none;
}
.username-link:hover {
  text-decoration: underline;
}

