/* Ntune global styles */

/* Colour palette inspired by classic Vine (green and white) */
:root {
  --primary-color: #00bf8f; /* main green */
  --primary-hover: #008f6b; /* darker green for hover */
  --bg-color: #ffffff; /* white background */
  --text-color: #333333; /* dark grey for text */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding-bottom: 60px; /* space for bottom nav */
}

/* Header */
.app-header {
  background: var(--primary-color);
  color: #fff;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
}

.top-nav a {
  color: #fff;
  margin-left: 15px;
  text-decoration: none;
  font-size: 0.9rem;
}

.top-nav a:hover {
  text-decoration: underline;
}

/* Bottom navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-color);
  padding: 8px 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.bottom-nav a {
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
}

.bottom-nav a:hover {
  color: #e0ffe6;
}

/* Main content area */
.app-main {
  padding: 15px;
}

/* Feed and posts */
.feed-container {
  max-width: 600px;
  margin: 0 auto;
}

.post {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.post-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 8px;
}

.post-content p {
  margin-top: 0;
  line-height: 1.4;
  font-size: 1rem;
}

.post-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.post-video {
  width: 100%;
  border-radius: 4px;
}

.post-tags {
  margin-top: 8px;
}

.tag {
  color: var(--primary-color);
  margin-right: 6px;
  font-size: 0.85rem;
}

.post-actions {
  margin-top: 10px;
}

.btn-nloop {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
}

.btn-nloop:hover {
  background: var(--primary-hover);
}

/* Authentication forms */
.auth-container, .new-post-container {
  max-width: 400px;
  margin: 40px auto;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.auth-form label, .post-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.auth-form input, .post-form input, .post-form textarea, .post-form select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1rem;
}

.btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-hover);
}

/* Flash messages */
.flashes {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

.flash-error {
  color: #d9534f;
}

.flash-success {
  color: #5cb85c;
}

.flash-info {
  color: #5bc0de;
}

/* Search page */
.search-container {
  max-width: 700px;
  margin: 0 auto;
}

.search-form input {
  width: 70%;
  padding: 8px;
  margin-right: 8px;
}

.search-form button {
  padding: 8px 14px;
}

.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.category-btn {
  background: #eee;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.85rem;
}

.category-btn:hover {
  background: #ddd;
}

/* Profile page */
.profile-container {
  max-width: 600px;
  margin: 20px auto;
}

.profile-info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.profile-picture {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

.profile-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.8rem;
}

.live-photo {
  margin-top: 10px;
}

.live-photo img,
.live-photo video {
  max-width: 120px;
  border-radius: 4px;
  display: block;
}

.profile-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.profile-form input[type="file"] {
  width: 100%;
}

/* Invites page */
.invites-container {
  max-width: 700px;
  margin: 0 auto;
}

.invites-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.invites-table th,
.invites-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  font-size: 0.9rem;
}

.invites-table th {
  background: #f5f5f5;
}