/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif;
}

body {
  background-color: #f0f2f5;
  color: #2e2e2e;
  line-height: 1.6;
  padding-bottom: 70px; /* Space for bottom nav */
}

/* Top Navigation Bar */
.top-bar {
  background-color: #003D79; /* Kiribati blue */
  color: white;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-size: 18px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.mobile-menu-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 20px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* Feed Container */
.feed-container {
  padding: 10px;
  max-width: 100%;
  margin: 0 auto;
}

/* Post Form */
.post-form {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 8px;
  resize: none;
}

.photo-label {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 4px;
  display: block;
}

.post-photo-input {
  width: 100%;
  margin-bottom: 10px;
}

.post-btn {
  background-color: #D62828;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
}

.post-btn:hover {
  background-color: #c01a1a;
}

/* Posts */
.post {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FDB813;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
}

.post-name {
  font-weight: bold;
  color: #003D79;
}

.post-location, .post-time {
  font-size: 0.8em;
  color: #65676b;
}

.post-content {
  margin: 10px 0;
  line-height: 1.5;
}

.post-actions {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid #e4e6eb;
  font-size: 14px;
  color: #65676b;
}

.post-actions div {
  cursor: pointer;
}

.post-actions div:hover {
  color: #D62828;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #003D79;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.bottom-nav a {
  color: white;
  text-decoration: none;
  font-size: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  flex: 1;
}

.bottom-nav a i {
  font-size: 18px;
  margin-bottom: 2px;
}

.bottom-nav a.active {
  color: #FDB813; /* Sun gold */
  font-weight: bold;
}

/* Settings Modal */
.dropdown-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.dropdown-modal-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 350px;
  text-align: center;
}

.dropdown-modal-content h3 {
  margin-top: 0;
  color: #003D79;
  font-size: 1.3rem;
}

.dropdown-modal-content a {
  display: block;
  padding: 12px 16px;
  color: #003D79;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #eee;
}

.dropdown-modal-content a:hover {
  background-color: #f0f2f5;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
}

/* Hide Sidebar & Desktop Nav */
.sidebar, .nav-links {
  display: none !important;
}

/* Responsive Container */
.container {
  flex-direction: column;
  padding: 0 10px;
  margin-bottom: 70px;
}
