/* Feed Page Styles */

/* Feed Grid Layout */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Feed Post Card (Twitter-style) */
.feed-post-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s;
}

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

/* Post Header */
.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.post-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.post-author strong {
  font-size: 1rem;
  color: var(--text-dark);
}

.post-time {
  font-size: 0.875rem;
  color: var(--text-medium);
}

/* Post Content */
.post-content {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 1rem;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* Post Image */
.post-image {
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: 400px;
}

/* Zap Section */
.post-zaps {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  margin-top: 1rem;
}

.zap-total {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.zap-button {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color, #8B4513);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.zap-button:hover:not(.disabled) {
  background: var(--primary-dark, #6d3410);
}

.zap-button.disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Zap Comments */
.post-comments {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.comments-header {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.zap-comment {
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.zap-comment:last-child {
  margin-bottom: 0;
}

/* Prize Pool Banner */
.prize-pool-banner {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(245, 158, 11, 0.2);
}

.prize-pool-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.prize-pool-label {
  font-size: 1rem;
  font-weight: 600;
}

.prize-pool-amount {
  font-size: 1.5rem;
  font-weight: 700;
}

.prize-pool-info {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Sort Controls */
.sort-controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.sort-btn {
  padding: 0.5rem 1rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-dark);
}

.sort-btn:hover {
  border-color: var(--primary-color, #8B4513);
  background: #fef3f0;
}

.sort-btn.active {
  background: var(--primary-color, #8B4513);
  color: white;
  border-color: var(--primary-color, #8B4513);
}

/* Zap Modal */
.zap-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.zap-modal-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3);
}

.zap-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
}

.zap-modal-close:hover {
  color: #1f2937;
}

.zap-modal h3 {
  margin: 0 0 1.5rem 0;
  text-align: center;
  font-size: 1.5rem;
}

.zap-qr-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 12px;
}

#zap-qr-code {
  display: inline-block;
}

#zap-qr-code img {
  display: block;
  border-radius: 8px;
}

.zap-address {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.zap-address input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: monospace;
}

.zap-address .copy-btn {
  padding: 0.75rem 1rem;
  background: var(--primary-color, #8B4513);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.zap-address .copy-btn:hover {
  background: var(--primary-dark, #6d3410);
}

/* Character Counter */
.char-counter {
  float: right;
  font-size: 0.875rem;
  color: var(--text-medium);
  font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
  .feed-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .prize-pool-content {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .prize-pool-amount {
    font-size: 1.25rem;
  }
  
  .sort-controls {
    gap: 0.5rem;
  }
  
  .sort-btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
}
