/* CSS for the Phone on the social media management page. */

/* Showroom Wrapper is the outer container for the entire area. */
.showroom-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 40px;
}

/* Each side of the showroom layout shares equal space. */
.phone-column,
.showroom-text-column {
  flex: 1;
}

/* Phone frame wrapper limits its width and contains the screen overlay. */
.phone-frame-container {
  position: relative;
  width: 100%;
  max-width: 380px;
}
/* Image of Phone which sits over the top of the clipped screen content. */
#phone-overlay {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* Clipped Screen Content is the white background on the phone which loads the messages.
Sits inside the phone with a good margin to allow messages to show and not be off the screen */

.clipped-screen-content {
  position: absolute;
  top: 4%;
  left: 7%;
  right: 7%;
  bottom: 9%;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 5;
  border-radius: 30px;
}

/* iOS-style header inside the phone, showing navigation, avatar, and contact info. */
.ios-header-bar {
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  background: #f6f6f6;
  border-bottom: 0.5px solid #d1d1d1;
  height: 110px;
  box-sizing: border-box;
}

/* Left side of the header reserved for the back arrow control. */
.header-left {
  flex: 1;
  display: flex;
  align-items: center;
}

/* Back arrow icon styled to match native iOS navigation cues. */
.ios-back-arrow {
  color: #007aff;
  font-size: 50px;
  font-weight: 300;
  cursor: default;
  line-height: 1;
  margin-left: -5px;
}

/* Center header area for the avatar and contact name. */
.header-center {
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Circular avatar bubble inside the header. */
.avatar {
  width: 45px;
  height: 45px;
  background: #1d639b;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}

/* Contact name and details shown next to the avatar. */
.contact-name {
  font-size: 13px;
  color: #000;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Small detail arrow used in the header text area. */
.ios-inline-arrow {
  color: #8e8e93;
  font-size: 14px;
}

/* Right side of the header reserved for extra controls or spacing. */
.header-right {
  flex: 1;
}


/* CSS for the message thread, allows each message to load in the right way and fit into the phone correctly.
Also includes the CSS for the typing bubbles, the 2 different types of messages, and the stat CSS.*/

.message-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px 12px;
  overflow-y: hidden;
}

/* Base chat bubble style used by received and sent messages. */
.ios-bubble {
  display: none;
  visibility: hidden;
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  max-width: 80%;
  flex-wrap: wrap;
  gap: 3px;
  position: relative;
}

/* Incoming message bubble styling. */
.message-received {
  background: #e9e9eb;
  color: #000;
  align-self: flex-start;
  border-bottom-left-radius: 1px;
}

/* Outgoing message bubble styling. */
.message-sent {
  background: #007aff;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 1px;
}

/* Typing indicator bubble shown when the other user is composing a message. */
.typing {
  background: #e9e9eb;
  width: fit-content;
  padding: 12px 18px;
  font-family: Lora;
  align-self: flex-start;
}

/* Dots inside the typing bubble to simulate typing activity. */
.typing span {
  height: 8px;
  width: 8px;
  float: left;
  margin: 0 2px;
  background-color: #9e9ea1;
  display: block;
  border-radius: 50%;
  opacity: 0.4;
}

/* Highlighted statistic text used within showroom copy. */
.purple-stat {
  color: #1d639b;
  font-weight: 800;
  display: block;
  font-size: 20px;
  margin-bottom: 2px;
}

/* Main showroom section heading styling. */
.showroom-h {
  font-size: 48px;
  font-weight: normal;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.1;
}
/* Accent phrase within headings using blue italic styling. */
.showroom-blue-italic {
  color: #1d639b;
  font-style: italic;
}
/* Paragraph text styling for showroom descriptions. */
.showroom-p {
  font-size: 18px;
  line-height: 1.7;
  text-align: justify;
  color: #555;
}
.showroom-p p {
  margin-bottom: 20px;
}

/* Responsive adjustments for smaller screens. */
@media (max-width: 768px) {
  .showroom-wrapper {
    flex-direction: column-reverse;
    padding: 20px 20px;
  }
  .phone-frame-container {
    max-width: 300px;
  }
  .showroom-h {
    font-size: 28px;
  }
  .showroom-p {
    text-align: justify;
  }
}

/* Hover style for links inside the contact name display. */
.contact-name a:hover {
  color: #000;
}

/* Fake phone status bar row at the top of the phone screen. */
.topBar {
  display: flex;
  justify-content: space-between;
  padding-left: 25px;
  padding-right: 25px;
  background-color: #f6f6f6;
}

/* Status bar time text. */
.topBar .time {
  font-size: 12px;
}

/* Icons inside the status bar for connection and battery. */
.topBar .internet img {
  width: 15px;
}

.topBar .battery img {
  width: 15px;
}


/* CSS for the individual messages and the options offered in the text thread. */
/* Hidden rows for quick reply buttons and interaction options. */
.options1,
.options2,
.options3 {
  display: none;
  visibility: hidden;
  flex-direction: row;
  gap: 8px;
  width: 100%;
  margin-bottom: 10px;
  align-self: flex-start;
}

/* Style the option bubbles inside the hidden options rows. */
.options1 .ios-bubble,
.options2 .ios-bubble,
.options3 .ios-bubble {
  max-width: fit-content;
  margin-bottom: 0;
  text-decoration: none;
  display: flex;
  border-bottom-left-radius: 18px;
}
.options1 .ios-bubble:hover,
.options2 .ios-bubble:hover,
.options3 .ios-bubble:hover {
  background-color: #b52164;
  color: #fff;
}

.options1 .ios-bubble:hover path,
.options2 .ios-bubble:hover path,
.options3 .ios-bubble:hover path {
  fill: #fff;
}
.options1 .ios-bubble path,
.options2 .ios-bubble path,
.options3 .ios-bubble path {
  fill: #000;
}
#uk-5 {
  border-bottom-left-radius: 18px;
}
#uk-5:hover {
  background-color: #b52164;
  color: #fff;
}
