/* Phone Frame - iPhone-style wrapper for ConversationMockup */

.phone-frame {
  width: 280px;
  margin: 0 auto;
  background: #000;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #2a2a2e;
  position: relative;
}

.phone-frame .phone-screen {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

/* Status bar */
.phone-frame .phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #1c1c1e;
  background: #f2f2f7;
}

.phone-frame .phone-status-time {
  font-weight: 700;
}

.phone-frame .phone-status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 10px;
}

/* Dynamic Island */
.phone-frame .phone-dynamic-island {
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 20px;
  margin: 0 auto;
  position: relative;
  top: -2px;
}

/* Chat header */
.phone-frame .phone-chat-header {
  background: #f2f2f7;
  text-align: center;
  padding: 4px 0 8px;
  border-bottom: 0.5px solid #c6c6c8;
}

.phone-frame .phone-chat-header .phone-avatar {
  width: 28px;
  height: 28px;
  background: #4B606E;
  border-radius: 50%;
  margin: 0 auto 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.phone-frame .phone-chat-header .phone-contact-name {
  font-size: 13px;
  font-weight: 600;
  color: #1c1c1e;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Messages area */
.phone-frame .phone-messages {
  flex: 1;
  padding: 10px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
}

.phone-frame .phone-msg {
  max-width: 78%;
  padding: 7px 11px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.35;
  color: #1c1c1e;
  word-wrap: break-word;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.phone-frame .phone-msg-her {
  align-self: flex-start;
  background: #e9e9eb;
  border-bottom-left-radius: 4px;
}

.phone-frame .phone-msg-him {
  align-self: flex-end;
  background: #007aff;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.phone-frame .phone-timestamp {
  text-align: center;
  font-size: 9px;
  color: #8e8e93;
  margin: 6px 0 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Typing indicator */
.phone-frame .phone-typing {
  align-self: flex-start;
  background: #e9e9eb;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  padding: 10px 14px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.phone-frame .phone-typing-dot {
  width: 6px;
  height: 6px;
  background: #8e8e93;
  border-radius: 50%;
  animation: phone-typing-bounce 1.4s infinite ease-in-out;
}

.phone-frame .phone-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.phone-frame .phone-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes phone-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Input bar */
.phone-frame .phone-input-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: #f2f2f7;
  border-top: 0.5px solid #c6c6c8;
}

.phone-frame .phone-input-field {
  flex: 1;
  background: #fff;
  border: 0.5px solid #c6c6c8;
  border-radius: 18px;
  padding: 6px 12px;
  font-size: 12px;
  color: #8e8e93;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.phone-frame .phone-send-btn {
  width: 26px;
  height: 26px;
  background: #007aff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-frame .phone-send-btn::after {
  content: "↑";
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* Responsive */
@media (max-width: 480px) {
  .phone-frame {
    width: 260px;
  }
}
