/**
 * enjoylife_v2.css - EnjoyLife WhatsApp & Social Media Platform v2.0
 * 2-Tier Header, Mobile-Optimized Responsive Menu, Real Media Hub,
 * Social Media Feed, AI Studio, and Adobe Express.
 */

/* TOP GLOBAL NAVIGATION BAR (2 TIERS) */
.app-global-nav {
  display: flex;
  flex-direction: column;
  background: #1f2c34;
  border-bottom: 1px solid #2a3942;
  width: 100%;
  max-width: 100vw;
  flex-shrink: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Line 1: EnjoyLife Full Row (Non-clickable, no reload) */
.nav-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.nav-brand-static {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: default;
  user-select: none;
  pointer-events: none; /* Completely disable any clicking/reloading */
}

.nav-brand-logo {
  font-size: 22px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

.nav-brand-sub {
  color: #8696a0;
  font-size: 11px;
  font-weight: 500;
}

.nav-brand-badge {
  background: #00a884;
  color: #111b21;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.nav-brand-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.het-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 168, 132, 0.15);
  border: 1px solid rgba(0, 168, 132, 0.3);
  color: #00a884;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.het-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00a884;
  box-shadow: 0 0 8px #00a884;
}

.nav-settings-btn {
  background: #2a3942;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

/* Line 2: Horizontal Menu Bar for All Content Types */
.nav-menu-bar {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  background: #182229;
  padding: 6px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-menu-bar::-webkit-scrollbar {
  display: none;
}

.nav-menu-scrollable {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  width: 100%;
}

.nav-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #202c33;
  border: 1px solid #2a3942;
  color: #8696a0;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
  user-select: none;
}

.nav-tab-btn:hover {
  background: #2a3942;
  color: #e9edef;
  border-color: #3b4a54;
}

.nav-tab-btn.active {
  background: #00a884 !important;
  color: #111b21 !important;
  border-color: #00a884 !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 168, 132, 0.4);
}

.nav-tab-btn.active .nav-tab-badge {
  background: #111b21;
  color: #00a884;
}

.nav-tab-badge {
  background: #2a3942;
  color: #8696a0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
}

.pulse-badge {
  background: #ea4335;
  color: #fff;
  animation: pulse-mini 1.5s infinite;
}

@keyframes pulse-mini {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* VIEW PANELS SIZING */
.view-panel {
  display: none;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100vw;
  overflow-y: auto;
  background: #0b141a;
  color: #e9edef;
}

.view-panel.active-view {
  display: flex !important;
  flex-direction: column;
}

/* Ensure view_chats fills height perfectly */
#view_chats {
  height: calc(100vh - 96px);
  overflow: hidden;
}

#view_chats .app-container {
  height: 100%;
  width: 100%;
}

/* -------------------------------------------------------------
   SOCIAL MEDIA PLATFORM FEED
-------------------------------------------------------------- */
.social-feed-layout {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 16px;
  min-height: 100%;
}

.social-feed-main {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Post Creator Box */
.create-post-card {
  background: #1f2c34;
  border: 1px solid #2a3942;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

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

.post-author-select {
  background: #2a3942;
  border: 1px solid #3b4a54;
  color: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.post-textarea {
  width: 100%;
  min-height: 85px;
  background: #111b21;
  border: 1px solid #2a3942;
  border-radius: 8px;
  padding: 12px;
  color: #e9edef;
  font-size: 14.5px;
  outline: none;
  resize: vertical;
  line-height: 1.5;
  font-family: inherit;
}

.post-textarea:focus {
  border-color: #00a884;
}

.post-media-preview-box {
  display: none;
  position: relative;
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  max-height: 280px;
  background: #111b21;
  border: 1px solid #2a3942;
}

.post-media-preview-box img,
.post-media-preview-box video {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.btn-remove-media {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
}

.post-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #2a3942;
  flex-wrap: wrap;
  gap: 8px;
}

.post-attach-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.post-attach-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #2a3942;
  color: #8696a0;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.post-attach-btn:hover {
  background: #3b4a54;
  color: #e9edef;
}

.btn-publish-post {
  background: #00a884;
  color: #111b21;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-publish-post:hover {
  background: #029474;
}

/* Post Cards */
.social-post-card {
  background: #1f2c34;
  border: 1px solid #2a3942;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00a884;
}

.post-author-name {
  font-weight: 600;
  font-size: 15px;
  color: #e9edef;
}

.post-meta-details {
  font-size: 12px;
  color: #8696a0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-category-badge {
  background: rgba(0, 168, 132, 0.15);
  color: #00a884;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.post-ai-badge {
  background: linear-gradient(135deg, #635bff, #00d4ff);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.post-text-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: #e9edef;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-media-container {
  border-radius: 8px;
  overflow: hidden;
  max-height: 440px;
  background: #111b21;
}

.post-media-container img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.post-media-container video {
  width: 100%;
  max-height: 440px;
  background: #000;
}

.post-audio-player {
  width: 100%;
  margin-top: 6px;
}

.post-tags {
  font-size: 13px;
  color: #53bdeb;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.post-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #2a3942;
}

.post-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #8696a0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.post-action-btn:hover {
  background: #2a3942;
  color: #e9edef;
}

.post-action-btn.liked {
  color: #ea4335;
}

/* Comments Section */
.post-comments-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #182229;
  border-radius: 8px;
  padding: 12px;
  margin-top: 4px;
}

.comment-input-row {
  display: flex;
  gap: 8px;
}

.comment-input-row input {
  flex: 1;
  background: #111b21;
  border: 1px solid #2a3942;
  border-radius: 6px;
  padding: 8px 12px;
  color: #e9edef;
  font-size: 13px;
  outline: none;
}

.comment-item {
  display: flex;
  gap: 10px;
  font-size: 13px;
}

.comment-author {
  font-weight: 600;
  color: #00a884;
}

/* -------------------------------------------------------------
   IMAGES GALLERY
-------------------------------------------------------------- */
.gallery-layout {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.gallery-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #1f2c34;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #2a3942;
}

.gallery-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-filter-btn {
  background: #2a3942;
  border: 1px solid transparent;
  color: #8696a0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
  background: #00a884;
  color: #111b21;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.gallery-card {
  position: relative;
  background: #1f2c34;
  border: 1px solid #2a3942;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  border-color: #00a884;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 10.5px;
  color: #e9edef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* -------------------------------------------------------------
   VIDEOS HUB
-------------------------------------------------------------- */
.videos-layout {
  padding: 16px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

@media (max-width: 600px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  background: #1f2c34;
  border: 1px solid #2a3942;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}

.video-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-card-title {
  font-weight: 600;
  font-size: 13.5px;
  color: #e9edef;
  word-break: break-word;
}

.video-card-meta {
  font-size: 12px;
  color: #8696a0;
  display: flex;
  justify-content: space-between;
}

/* -------------------------------------------------------------
   AUDIO / VOICE NOTES HUB
-------------------------------------------------------------- */
.audio-layout {
  padding: 16px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audio-card {
  background: #1f2c34;
  border: 1px solid #2a3942;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  flex-wrap: wrap;
}

.audio-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 168, 132, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #00a884;
  flex-shrink: 0;
}

.audio-details {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.audio-filename {
  font-weight: 600;
  font-size: 14px;
  color: #e9edef;
}

.audio-player-elem {
  width: 100%;
  height: 36px;
  filter: invert(0.9) hue-rotate(140deg);
}

/* -------------------------------------------------------------
   AI CONTENT STUDIO (BILINGUAL VOICE & TEXT PROMPTS)
-------------------------------------------------------------- */
.ai-studio-layout {
  padding: 16px;
  max-width: 840px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-studio-header-card {
  background: linear-gradient(135deg, #1f2c34 0%, #173837 100%);
  border: 1px solid #00a884;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(0, 168, 132, 0.15);
}

.ai-studio-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #00a884;
  color: #111b21;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.ai-composer-card {
  background: #1f2c34;
  border: 1px solid #2a3942;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Voice Recognition Microphone Bar */
.voice-prompt-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111b21;
  border: 1px solid #2a3942;
  border-radius: 10px;
  padding: 12px 14px;
}

.mic-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00a884;
  color: #111b21;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(0, 168, 132, 0.3);
  flex-shrink: 0;
}

.mic-toggle-btn.listening {
  background: #ea4335;
  color: #fff;
  animation: pulse-ring 1.2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(234, 67, 53, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(234, 67, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 67, 53, 0); }
}

.mic-status-text {
  flex: 1;
  font-size: 13px;
  color: #8696a0;
}

.mic-status-text.active {
  color: #00a884;
  font-weight: 600;
}

.lang-selector-group {
  display: flex;
  gap: 6px;
}

.lang-chip-btn {
  background: #2a3942;
  border: 1px solid transparent;
  color: #8696a0;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.lang-chip-btn.active {
  background: #00a884;
  color: #111b21;
}

/* Preset Prompt Chips */
.prompt-chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.prompt-chips-scroll::-webkit-scrollbar {
  display: none;
}

.prompt-chip {
  white-space: nowrap;
  background: #2a3942;
  border: 1px solid #3b4a54;
  color: #e9edef;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.prompt-chip:hover {
  background: #00a884;
  color: #111b21;
}

/* AI Result Preview Card */
.ai-output-card {
  display: none;
  background: #182229;
  border: 1px solid #00a884;
  border-radius: 12px;
  padding: 16px;
  flex-direction: column;
  gap: 12px;
}

.ai-output-text {
  font-size: 14.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #e9edef;
  background: #111b21;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #2a3942;
}

.ai-output-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* -------------------------------------------------------------
   ADOBE EXPRESS STUDIO
-------------------------------------------------------------- */
.adobe-layout {
  padding: 16px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.adobe-hero-card {
  background: linear-gradient(135deg, #2b1636 0%, #1f2c34 100%);
  border: 1px solid #d8385e;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 6px 20px rgba(216, 56, 94, 0.2);
}

.adobe-creds-box {
  background: #111b21;
  border: 1px solid #2a3942;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1f2c34;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #2a3942;
  gap: 8px;
}

.cred-val {
  font-family: monospace;
  font-size: 13.5px;
  color: #00d4ff;
  font-weight: 600;
  word-break: break-all;
}

.btn-copy-cred {
  background: #2a3942;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.adobe-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.adobe-template-card {
  background: #1f2c34;
  border: 1px solid #2a3942;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.adobe-template-card:hover {
  border-color: #d8385e;
  transform: translateY(-2px);
}

.adobe-template-icon {
  font-size: 24px;
}

.adobe-template-title {
  font-weight: 600;
  font-size: 13.5px;
  color: #e9edef;
}

.adobe-template-desc {
  font-size: 11.5px;
  color: #8696a0;
}

.adobe-dropzone {
  border: 2px dashed #3b4a54;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: #111b21;
  cursor: pointer;
  transition: all 0.2s;
}

.adobe-dropzone:hover {
  border-color: #00a884;
  background: rgba(0, 168, 132, 0.04);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}
