/* ==========================================================================
   HYPE COMMUNITY STYLES (Industrial Luxury / Noir)
   ========================================================================== */

.hype-community-layout {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 800px 20px; /* huge bottom padding to push ALL WORKS footer down */
  color: var(--color-white);
  font-family: var(--font-primary);
}

/* Fix for long content overflowing top in flex container */
#hype.app-section {
  justify-content: flex-start;
}

/* --- COMPOSER --- */
.hype-composer {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Subtle glowing accent for composer */
.hype-composer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.hype-composer-header {
  margin-bottom: 20px;
}

.hype-input-name,
.hype-select-voice {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.4s ease, color 0.4s ease;
}

.hype-input-name:focus,
.hype-select-voice:focus {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.hype-input-name::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* Fix Chrome Autofill white background */
.hype-input-name:-webkit-autofill,
.hype-input-name:-webkit-autofill:hover, 
.hype-input-name:-webkit-autofill:focus, 
.hype-input-name:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #0a0a0a inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.hype-select-voice option {
  background: #0a0a0a;
  color: #fff;
}

.hype-composer-body {
  display: flex;
  flex-direction: column;
}

.hype-textarea {
  width: 100%;
  min-height: 120px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  resize: none;
  outline: none;
  margin-bottom: 20px;
  font-weight: 300;
}

.hype-textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
  font-style: italic;
}

.hype-composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
}

#hype-char-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono, monospace);
  letter-spacing: 1px;
}

.hype-btn {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-white);
  padding: 12px 32px;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hype-btn:hover {
  background: transparent;
  color: var(--color-white);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.hype-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  border-color: transparent;
  cursor: not-allowed;
  box-shadow: none;
}

.hype-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
  margin-top: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hype-composer-intro {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 30px;
  margin-top: 10px;
  text-transform: uppercase;
  animation: hype-pulse 3s infinite alternate ease-in-out;
}

/* --- FEED & MESSAGES --- */
.hype-feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hype-message {
  background: rgba(15, 15, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 24px;
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(5px);
}

.hype-message:hover {
  background: rgba(25, 25, 25, 0.7);
}

/* Voice Post (Premium Look) */
.hype-message.voice-post {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.hype-message.voice-post::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-white);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Threads (Replies) */
.hype-message.is-reply {
  margin-left: 48px;
  background: rgba(10, 10, 10, 0.4);
  border-left: none;
  position: relative;
}

/* Connecting line for threads */
.hype-message.is-reply::after {
  content: "";
  position: absolute;
  top: -24px;
  left: -24px;
  width: 24px;
  height: calc(100% + 24px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom-left-radius: 8px;
  pointer-events: none;
  z-index: -1;
}

.hype-msg-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.hype-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-right: 16px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.voice-post .hype-avatar {
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.hype-author-info {
  display: flex;
  flex-direction: column;
}

.hype-author-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hype-author-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.voice-post .hype-author-name {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.hype-badge {
  width: 16px;
  height: 16px;
  color: var(--color-white);
  opacity: 0.9;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.hype-msg-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
  letter-spacing: 1px;
}

.hype-msg-content {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.hype-msg-content a {
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s ease;
}
.hype-msg-content a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.8);
}

/* Deleted Message */
.hype-message.is-deleted {
  display: none !important;
}

/* --- MODERATION ACTIONS --- */
.hype-msg-actions {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hype-message:hover .hype-msg-actions {
  opacity: 1;
}

.hype-action-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.hype-action-btn:hover {
  color: var(--color-white);
}

.hype-action-btn.delete:hover {
  color: #ff4444;
}

.hype-action-btn.block:hover {
  color: #ffaa00;
}

/* Reply Action (Always visible now) */
.hype-reply-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  padding: 6px 14px;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.hype-reply-btn:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* Load More */
.hype-load-more {
  text-align: center;
  margin-top: 50px;
}

.hype-btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 32px;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.hype-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  #hype.app-section {
    padding-top: 80px !important;
  }
  .hype-community-layout {
    padding-top: 0px !important;
  }
  .hype-message.is-reply {
    margin-left: 24px;
  }
  .hype-msg-actions {
    opacity: 1; /* Always visible on mobile */
  }
}

/* HYPE Gap Logo */
.hype-gap-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 60px;
}
.hype-gap-logo img {
  width: 120px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15));
}
