/* =========================================================
   MOBILE PREVIEW — Phone Chrome
   assets/css/pages/preview/mobile-preview.css
   =========================================================
   Styles for the mobile phone interface preview.

   Prefix contained here:
     .pp-mobile-*
   ========================================================= */


/* =========================================================
   MOBILE PREVIEW PHONE CHROME
   ========================================================= */

.pp-mobile-preview-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 2rem;
}

.pp-mobile-phone {
    position: relative;
    width: min(390px, 100%);
    height: 820px;
    border: 1px solid;
    border-radius: 42px;
    padding: 12px;
    overflow: hidden;
}

.pp-mobile-speaker {
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 3;
    width: 78px;
    height: 6px;
    border-radius: 999px;
    transform: translateX(-50%);
    opacity: 0.7;
}

.pp-mobile-screen {
    height: 100%;
    overflow: hidden;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
}

.pp-mobile-screen * {
    box-sizing: border-box;
}

.pp-mobile-status,
.pp-mobile-status-icons,
.pp-mobile-header,
.pp-mobile-brand,
.pp-mobile-header-actions,
.pp-mobile-ctas,
.pp-mobile-metric-top,
.pp-mobile-section-head,
.pp-mobile-activity-row,
.pp-mobile-legend,
.pp-mobile-bottom-nav,
.pp-mobile-nav-item {
    display: flex;
    align-items: center;
}

.pp-mobile-status {
    justify-content: space-between;
    min-height: 34px;
    padding: 0.75rem 1.25rem 0.35rem;
    font-size: 0.72rem;
    font-weight: 750;
}

.pp-mobile-status-icons {
    gap: 0.45rem;
}

.pp-mobile-battery {
    min-width: 28px;
    text-align: right;
}

.pp-mobile-header {
    justify-content: space-between;
    gap: 1rem;
    margin: 0.4rem 0.8rem 0;
    padding: 0.75rem;
    border: 1px solid;
    border-radius: 18px;
}

.pp-mobile-brand {
    min-width: 0;
    gap: 0.65rem;
}

.pp-mobile-mark,
.pp-mobile-avatar,
.pp-mobile-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 850;
}

.pp-mobile-brand-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.pp-mobile-brand-copy strong,
.pp-mobile-brand-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pp-mobile-brand-copy strong {
    font-size: 0.86rem;
}

.pp-mobile-brand-copy span {
    font-size: 0.66rem;
}

.pp-mobile-header-actions {
    gap: 0.45rem;
}

.pp-mobile-icon-btn {
    border: 1px solid;
    padding: 0;
    font: inherit;
}

.pp-mobile-content {
    flex: 1;
    overflow: hidden;
    padding: 0.85rem 0.8rem 0.75rem;
}

.pp-mobile-hero-card,
.pp-mobile-metric-card,
.pp-mobile-activity-card,
.pp-mobile-chart-card {
    border: 1px solid;
    border-radius: 18px;
}

.pp-mobile-hero-card {
    padding: 1rem;
}

.pp-mobile-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0.18rem 0.52rem;
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.pp-mobile-title {
    margin: 0.75rem 0 0.45rem;
    font-size: 1.45rem;
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: 0;
}

.pp-mobile-copy {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.52;
}

.pp-mobile-ctas {
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.pp-mobile-btn {
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 0.55rem 0.78rem;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.pp-mobile-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.pp-mobile-metric-card {
    padding: 0.72rem;
    min-width: 0;
}

.pp-mobile-metric-top {
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    font-size: 0.64rem;
    font-weight: 750;
}

.pp-mobile-dot,
.pp-mobile-state-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.pp-mobile-metric-card strong {
    display: block;
    font-size: 1rem;
    line-height: 1;
}

.pp-mobile-activity-card,
.pp-mobile-chart-card {
    margin-top: 0.65rem;
    padding: 0.8rem;
}

.pp-mobile-section-head {
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.52rem;
    font-size: 0.78rem;
}

.pp-mobile-activity-row {
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.45rem 0;
    border-top: 1px solid;
}

.pp-mobile-activity-detail {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.pp-mobile-activity-detail strong,
.pp-mobile-activity-detail span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pp-mobile-activity-detail strong {
    font-size: 0.68rem;
    line-height: 1.1;
}

.pp-mobile-activity-detail span,
.pp-mobile-time {
    font-size: 0.62rem;
}

.pp-mobile-time {
    margin-left: auto;
}

.pp-mobile-chart {
    height: 92px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    gap: 0.45rem;
    padding: 0.3rem 0 0.55rem;
}

.pp-mobile-chart-bar {
    display: block;
    min-height: 22px;
    border-radius: 9px 9px 4px 4px;
    opacity: 0.9;
}

.pp-mobile-legend {
    justify-content: space-between;
    gap: 0.45rem;
    font-size: 0.6rem;
    font-weight: 750;
}

.pp-mobile-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}

.pp-mobile-legend i,
.pp-mobile-nav-item i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
}

.pp-mobile-bottom-nav {
    justify-content: space-between;
    gap: 0.35rem;
    margin: 0 0.8rem 0.8rem;
    padding: 0.65rem 0.6rem;
    border: 1px solid;
    border-radius: 20px;
}

.pp-mobile-nav-item {
    flex: 1;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
    font-size: 0.6rem;
    font-weight: 800;
    white-space: nowrap;
}

.pp-mobile-nav-item.active {
    font-weight: 850;
}
