/* ==========================================================================
   PROJECT: FB PAGE AI CUSTOMER SUPPORT AGENT — THEME & STYLES
   File: css/FBPageAgent.css
   Tech Steward Digital AI — Joyce Yap Portfolio
   ========================================================================== */

/* Theme container accent */
.theme-fb-agent .pdetail-header-card::before {
  background: linear-gradient(90deg, #00c2cb, #009ba2, #00d2ff);
}

/* Hero Landscape Container */
.fb-agent-hero-wrap {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 194, 203, 0.3);
  margin-bottom: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  background: #04091a;
}
.fb-agent-hero-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   FACEBOOK MESSENGER SIMULATION UI
   ========================================================================== */
.messenger-chassis {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: #242526; /* Dark mode FB Messenger */
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.messenger-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #242526;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.messenger-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00c2cb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 12px;
  position: relative;
}
.messenger-avatar::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #31a24c; /* Online green dot */
  border-radius: 50%;
  border: 2px solid #242526;
}

.messenger-info h4 {
  margin: 0;
  font-size: 1rem;
  color: #E4E6EB;
  font-weight: 600;
  line-height: 1.2;
}
.messenger-info span {
  font-size: 0.8rem;
  color: #B0B3B8;
}

.messenger-body {
  flex: 1;
  padding: 20px 16px;
  background: #18191A;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.msg-row {
  display: flex;
  width: 100%;
}
.msg-row.sent {
  justify-content: flex-end;
}
.msg-row.received {
  justify-content: flex-start;
}

.msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
}
.msg-row.sent .msg-bubble {
  background: #0084FF;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-row.received .msg-bubble {
  background: #3E4042;
  color: #E4E6EB;
  border-bottom-left-radius: 4px;
}

.msg-timestamp {
  font-size: 0.7rem;
  color: #B0B3B8;
  margin-top: 4px;
  text-align: center;
  width: 100%;
  display: block;
}

.messenger-input {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #242526;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.messenger-input-box {
  flex: 1;
  background: #3A3B3C;
  border-radius: 20px;
  padding: 8px 16px;
  color: #E4E6EB;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}
.messenger-send-icon {
  color: #0084FF;
  margin-left: 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ==========================================================================
   HORIZONTAL TAB MENU
   ========================================================================== */
.fb-agent-nav-container {
  margin-top: 40px;
  margin-bottom: 24px;
}

.fb-agent-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(12, 21, 46, 0.78);
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-agent-tab-btn {
  flex: 1;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 14px 20px;
  border-radius: 12px;
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.fb-agent-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.fb-agent-tab-btn.active {
  background: linear-gradient(135deg, #00c2cb 0%, #009ba2 100%);
  color: #ffffff;
  border-color: #00c2cb;
  box-shadow: 0 4px 15px rgba(0, 194, 203, 0.3);
}

.fb-agent-tab-content {
  display: none;
  animation: fadeIn 0.4s ease-out;
}
.fb-agent-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fb-agent-tab-card {
  background: #0c152e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.fb-agent-tab-card h3 {
  font-family: var(--font-headline);
  color: var(--text-main);
  font-size: 1.8rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fb-agent-tab-card h3 i {
  color: #00c2cb;
}

.fb-agent-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.fb-agent-list-item i {
  color: #00c2cb;
  font-size: 1.4rem;
  margin-top: 4px;
}
.fb-agent-list-item h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.fb-agent-list-item p {
  color: var(--text-sublight);
  line-height: 1.7;
}
