/* ONYXBONE VECTOR NETWORK - Posts Styles */

body {
  /* background: linear-gradient(135deg, #f8f6f2 0%, #ffffff 50%, #f2f0eb 100%); */
  background: linear-gradient(135deg, #5a5854 0%, #6b6862 50%, #4f4d49 100%);

  color: #2c2418;
  font-family: 'Georgia', serif;
  padding: 20px;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
  /* Removed flex centering to revert to previous layout */
  max-width: none;
  font-size: 15px; /* smaller base font */
}

/* main {
  width: auto;
  max-width: none;
  display: block;
  flex-direction: unset;
  align-items: unset;
} */

.ostagram-header {
  text-align: center;
  padding: 40px 0;
  border-bottom: 3px solid #d4c4a8;
  margin-bottom: 40px;
  background: linear-gradient(45deg, #ffffff, #f8f6f2);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(212,196,168,0.3);
}
.ostagram-header h1 {
  color: #8b7355;
  font-size: 1.2em; /* smaller header */
  text-shadow: 2px 2px 6px rgba(139,115,85,0.2);
  margin: 0;
  letter-spacing: 3px;
  font-weight: bold;
}
.ostagram-header .tagline {
  color: #a8946d;
  font-style: italic;
  margin-top: 15px;
  font-size: 1.2em;
  letter-spacing: 1px;
}
.ostagram-post {
  border: 2px solid #d4c4a8;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 50px;
  background: linear-gradient(145deg, #ffffff, #fefcf8);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 32px rgba(212,196,168,0.2), inset 0 1px 0 rgba(139,115,85,0.1);
  position: relative;
}
.post {
    background: #fff;
    border: 1px solid #eee8d5;
    border-radius: 12px;
    margin-bottom: 2em;
    padding: 1.5em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.post:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.post-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e8dcc6;
}

.post-avatar {
    font-size: 2.5em;
    color: #cb4b16;
}

.avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #d4c4a8, #b8a082);
  border-radius: 50%;
  margin-right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  border: 3px solid #8b7355;
  box-shadow: 0 4px 12px rgba(139,115,85,0.3);
}

.post-info h2 {
  margin: 0;
  color: #5a4d35;
  font-size: 1.1em; /* smaller post author */
  font-weight: bold;
}

.post-info .location {
  color: #8b7355;
  font-size: 1em;
  font-style: italic;
  margin-top: 5px;
}

.post-time {
  color: #a8946d;
  font-size: 0.9em;
  margin-left: auto;
  font-weight: bold;
}

.post-content p {
  font-size: 1em; /* smaller paragraph font */
  margin: 20px 0;
  color: #2c2418;
  line-height: 1.7;
}

.post-title {
  color: #8b7355;
  font-size: 1.1em;
  margin-bottom: 0.5em;
}

.post-title a {
  color: #8b7355;
  text-decoration: none;
}

.post-title a:hover {
  text-decoration: underline;
}

.post-stats {
  display: flex;
  gap: 25px;
  margin: 25px 0;
  padding: 20px 0;
  border-top: 2px solid #e8dcc6;
  border-bottom: 2px solid #e8dcc6;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8b7355;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px 15px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8f6f2, #ffffff);
  border: 1px solid #e8dcc6;
}

.stat-item:hover {
  color: #5a4d35;
  background: linear-gradient(135deg, #d4c4a8, #c9b085);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,115,85,0.2);
}

.stat-icon {
  font-size: 1.3em;
}

.tags {
  margin: 10px 0 0 0;
}

.tag {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 4px 12px;
  border-radius: 12px;
  border: 2px solid #d4c4a8;
  background: #faf8f4;
  color: #8b7355;
  font-size: 0.95em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.tag:hover {
  background: #d4c4a8;
  color: #fff;
}

.reactions {
  margin-top: 10px;
}

.reaction.react-hover { position: relative; display: inline-block; margin-right: 10px; }

.reactors-popup {
  display: none;
  position: absolute;
  left: 0;
  top: 120%;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 10;
  min-width: 140px;
  font-size: 0.95em;
}

.reaction.react-hover:hover .reactors-popup {
  display: block;
}

.reactor-link { color: #3366cc; text-decoration: underline; }

/* Combined filter and search section */
.filters-and-search-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Filter header styles */
.filter-header {
  background: linear-gradient(135deg, #f8f6f2, #ffffff);
  border: 1px solid #d4c4a8;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(212,196,168,0.15);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-header h2 {
  color: #8b7355;
  font-size: 1.0em;
  margin: 0;
  font-weight: bold;
}

/* Tag filter section styles - updated for side-by-side layout */
.tag-filter-section {
  background: linear-gradient(135deg, #f8f6f2, #ffffff);
  border: 1px solid #d4c4a8;
  border-radius: 8px;
  padding: 12px 20px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(212,196,168,0.15);
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0; /* Allow flex item to shrink */
}

.tag-filter-section h3 {
  color: #8b7355;
  font-size: 0.95em;
  margin: 0;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tag-filter-section .filter-icon {
  font-size: 1.1em;
  color: #cb4b16;
}

.tag-filter-dropdown {
  max-width: none;
  padding: 8px 12px;
  border: 2px solid #d4c4a8;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff, #fefcf8);
  color: #2c2418;
  font-family: 'Georgia', serif;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(212,196,168,0.1);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4c4a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
  flex: 1;
  min-width: 150px;
}

/* MarrowQuery search section styles - updated for side-by-side layout */
.marrowquery-search-section {
  background: linear-gradient(135deg, #f8f6f2, #ffffff);
  border: 1px solid #d4c4a8;
  border-radius: 8px;
  padding: 12px 20px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(212,196,168,0.15);
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0; /* Allow flex item to shrink */
}

.marrowquery-search-section h3 {
  color: #8b7355;
  font-size: 0.95em;
  margin: 0;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.marrowquery-search-form {
  display: flex;
  flex: 1;
  gap: 8px;
  align-items: center;
  min-width: 0; /* Allow flex item to shrink */
}

.marrowquery-search-input {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #d4c4a8;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff, #fefcf8);
  color: #2c2418;
  font-family: 'Georgia', serif;
  font-size: 0.9em;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(212,196,168,0.1);
  min-width: 0; /* Allow input to shrink */
}

.marrowquery-search-input:focus {
  outline: none;
  border-color: #8b7355;
  box-shadow: 0 4px 12px rgba(139,115,85,0.2);
}

.marrowquery-search-btn {
  padding: 8px 12px;
  border: 2px solid #d4c4a8;
  border-radius: 6px;
  background: linear-gradient(135deg, #d4c4a8, #c9b085);
  color: #2c2418;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(212,196,168,0.1);
  white-space: nowrap;
}

.marrowquery-search-btn:hover {
  background: linear-gradient(135deg, #8b7355, #5a4d35);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139,115,85,0.2);
}

.marrowquery-search-btn:active {
  transform: translateY(0);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .filters-and-search-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .tag-filter-section,
  .marrowquery-search-section {
    flex: none;
  }
}

.bone-glyph {
  color: #8b7355;
  font-weight: bold;
  text-shadow: 0 0 4px rgba(139,115,85,0.3);
}
.trending-hashtag {
  color: #a8946d;
  cursor: pointer;
  font-weight: bold;
}
.trending-hashtag:hover {
  text-decoration: underline;
  color: #8b7355;
}
.verification-badge {
  color: #d4c4a8;
  margin-left: 8px;
  font-size: 1.2em;
}
@keyframes shimmer {
  0%, 100% { text-shadow: 0 0 4px rgba(139,115,85,0.3); }
  50% { text-shadow: 0 0 8px rgba(139,115,85,0.6), 0 0 12px rgba(212,196,168,0.4); }
}
.glowing {
  animation: shimmer 3s ease-in-out infinite;
}
.capture-moment {
  background: linear-gradient(135deg, #faf8f4, #f8f6f2);
  border-left: 5px solid #8b7355;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 10px;
  font-weight: bold;
  color: #2c2418;
}
.post-image {
  display: block;
  max-width: 100%;
  border-radius: 16px;
  margin: 25px 0;
  box-shadow: 0 6px 24px rgba(139,115,85,0.2);
  border: 2px solid #e8dcc6;
}
.post-description {
  background: linear-gradient(135deg, #faf8f4, #f5f2eb);
  padding: 20px;
  border-radius: 12px;
  border-left: 5px solid #d4c4a8;
  margin: 25px 0;
  font-style: italic;
  color: #3d342a;
}
.camera-details {
  background: linear-gradient(135deg, #f8f6f2, #ede9e1);
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  border: 1px solid #d4c4a8;
  font-size: 0.9em;
  color: #5a4d35;
}
.comments-section {
  margin-top: 30px;
}
.comment {
  background: linear-gradient(135deg, #fdfbf7, #f8f5f0);
  margin: 15px 0;
  padding: 18px 20px;
  border-radius: 12px;
  border-left: 4px solid #d4c4a8;
  color: #2c2418;
  border: 1px solid #e8dcc6;
}
.comment-author {
  color: #5a4d35;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.05em;
}
.comment-time {
  color: #a8946d;
  font-size: 0.85em;
  float: right;
}
.comment-content {
  margin-top: 8px;
  line-height: 1.6;
}
.comment-actions {
  margin-top: 12px;
  display: flex;
  gap: 20px;
  font-size: 0.9em;
}
.comment-action {
  color: #8b7355;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 5px 10px;
  border-radius: 15px;
  background: rgba(212,196,168,0.1);
}
.comment-action:hover {
  color: #5a4d35;
  background: rgba(212,196,168,0.3);
}
.nested-comment {
  margin-left: 40px;
  background: linear-gradient(135deg, #f5f2eb, #f0ece4);
  border-left-color: #c9b085;
}

/* Post type badges */
.post-type-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.1);
    color: #666;
    font-size: 11px;
    font-weight: normal;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    text-transform: lowercase;
    font-family: monospace;
}

.post-type-badge:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #333;
}

/* Friend indicator */
.friend-indicator {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 4px;
    border-radius: 6px;
    background: linear-gradient(135deg, #d4c4a8, #c9b085);
    color: #2c2418;
    font-size: 0.9em;
    border: 1px solid #8b7355;
    box-shadow: 0 2px 4px rgba(139,115,85,0.2);
    cursor: help;
    transition: all 0.3s ease;
}

.friend-indicator:hover {
    background: linear-gradient(135deg, #8b7355, #5a4d35);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139,115,85,0.3);
}
