:root {
  --color-emerald-50: #ecfdf5;
  --color-emerald-100: #d1fae5;
  --color-emerald-500: #22c55e;
  --color-emerald-600: #16a34a;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-muted: #6b7280;
  --color-primary: #22c55e;
  --transition: all 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-gray-50);
  color: var(--color-gray-800);
  transition: var(--transition);
}

a, button, input, textarea, select {
  transition: var(--transition);
  text-decoration: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background-color: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  z-index: 50;
}

.navbar-container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  color: var(--color-emerald-600);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo:hover {
  color: var(--color-emerald-500);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-image {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-emerald-500);
  transition: transform 0.2s;
}

.profile-image:hover {
  transform: scale(1.05);
}

.create-button,
.comment-form button {
  background-color: var(--color-emerald-500);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.create-button:hover,
.comment-form button:hover {
  background-color: var(--color-emerald-600);
  transform: translateY(-1px);
}

input, textarea, select {
  border: 1px solid var(--color-gray-200);
  border-radius: 0.375rem;
  padding: 0.5rem;
  font-size: 1rem;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-emerald-500);
  box-shadow: 0 0 0 3px var(--color-emerald-100);
}

.post-card, .create-post, .profile-page, .comments-section {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  padding: 1rem;
}

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

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-top: 1px solid var(--color-gray-200);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem;
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-gray-500);
  font-size: 0.75rem;
}

.nav-item.active,
.nav-item:hover {
  color: var(--color-emerald-500);
  font-weight: 600;
}

.profile-link {
  display: flex;
  align-items: center;
}

.profile-link .profile-image {
  margin-left: 0.25rem;
}

.feed-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 1rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
}

.profile-info h2 {
  margin-bottom: 0.25rem;
}

.profile-info .username {
  color: var(--color-muted);
}

.profile-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.stat {
  text-align: center;
}

.stat-value {
  font-weight: bold;
  font-size: 1.2rem;
}

.profile-posts {
  padding: 1rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.posts-grid img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
  max-width: 800px;
  margin: auto;
}

.hero img {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  align-items: center;
}

.coming-soon {
  background-color: #f3f4f6;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
  color: #374151;
}

footer {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  padding: 2rem 1rem;
}

.search-container {
  padding: 6rem 1rem 4rem;
  max-width: 800px;
  margin: auto;
}

.search-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.search-bar input,
.search-bar button {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-profile {
  border: 1px solid var(--color-gray-200);
  padding: 1rem;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.search-profile img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.search-posts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.search-posts img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  position: relative;
}

.like-btn {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}