/* iPhone RCS Header Component Styles */
.iphone-header {
  background: var(--glass-bg-transparent);
  backdrop-filter: blur(5px);
  padding: var(--space-1) 0; /* Reduced internal padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center content vertically */
  position: absolute; /* Position absolutely to overlay status bar */
  top: 8px; /* Small margin from top */
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  z-index: 100; /* Higher z-index to appear above status bar */
  width: 40%; /* Reduced to 40% of screen width */
  border-radius: 50px; /* Very rounded, elliptical shape */
  box-shadow: var(--shadow-md); /* Add subtle shadow for depth */
  min-height: 84px; /* Reduced height by 40% */
}

/* Status Bar - Now separate from iPhone header */
.iphone-status-bar {
  width: 100%;
  height: 54px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  color: var(--color-text-inverse);
  font-size: var(--text-base);
  font-weight: 600;
  z-index: 5; /* Lower z-index - background layer */
}

.iphone-status-left .time {
  font-variant-numeric: tabular-nums;
}

.iphone-status-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.iphone-signal-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.iphone-signal-bars .iphone-bar {
  width: 3px;
  background: var(--color-text-primary);
  border-radius: 1px;
}

.iphone-signal-bars .iphone-bar:nth-child(1) { height: 4px; }
.iphone-signal-bars .iphone-bar:nth-child(2) { height: 6px; }
.iphone-signal-bars .iphone-bar:nth-child(3) { height: 8px; }
.iphone-signal-bars .iphone-bar:nth-child(4) { height: 10px; }

.iphone-battery {
  width: 24px;
  height: 12px;
  border: 1px solid var(--color-text-primary);
  border-radius: 2px;
  position: relative;
}

.iphone-battery::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 6px;
  background: var(--color-text-primary);
  border-radius: 0 1px 1px 0;
}

.iphone-battery-level {
  width: 80%;
  height: 100%;
  background: var(--color-success);
  border-radius: 1px;
}

/* Business Logo Section */
.iphone-business-logo-section {
  padding: var(--space-1) 0; /* Reduced vertical padding */
  position: relative;
  z-index: 10; /* Above status bar */
  margin-top: 4px; /* Reduced space from top */
}

.iphone-business-logo {
  width: 36px; /* Smaller logo for more compact header */
  height: 36px;
  border-radius: 50%; /* Fully circular logo */
  overflow: hidden;
  background: var(--color-surface-elevated);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone-business-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Business Name Section - Positioned below logo */
.iphone-business-name-section {
  position: relative; /* Changed from absolute to relative */
  margin-top: 2px; /* Further reduced spacing */
  z-index: 15; /* Above both status bar and logo */
  display: flex;
  justify-content: center; /* Center horizontally */
}

.iphone-business-name-bubble {
  background: var(--glass-bg-transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: 20px; /* More rounded for elliptical theme */
  padding: 2px var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  box-shadow: var(--shadow-sm);
}

.iphone-business-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.iphone-arrow-icon {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 300;
}

/* RCS Status Section */
.iphone-rcs-status-section {
  text-align: center;
  padding: var(--space-3) 0 var(--space-2) 0; /* Reduced padding for compact design */
}

.iphone-rcs-status {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-1);
}

.iphone-timestamp {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .iphone-business-logo {
    width: 64px;
    height: 64px;
  }
  
  .iphone-business-name {
    font-size: var(--text-base);
  }
  
  .iphone-status-bar {
    padding: 0 var(--space-4);
    font-size: var(--text-base);
  }
}
