/* ==========================================================================
   Preview SMS — Mockup iPhone
   Référence visuelle : myCfia-designSystem step5-assets-data.js lignes 1147-1229
   ========================================================================== */

/* --- Châssis iPhone --- */
.pv-sms-phone {
    position: relative;
    width: 300px;
    height: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, #3a3a3c, #1c1c1e);
    border-radius: 42px;
    padding: 10px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 2px #2c2c2e,
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* --- Bouton power (droite) --- */
.pv-sms-btn-power {
    position: absolute;
    right: -3px;
    top: 120px;
    width: 3px;
    height: 70px;
    background: linear-gradient(90deg, #3a3a3c, #2c2c2e);
    border-radius: 0 2px 2px 0;
}

/* --- Boutons volume (gauche) --- */
.pv-sms-btn-vol-1 {
    position: absolute;
    left: -3px;
    top: 100px;
    width: 3px;
    height: 35px;
    background: linear-gradient(-90deg, #3a3a3c, #2c2c2e);
    border-radius: 2px 0 0 2px;
}

.pv-sms-btn-vol-2 {
    position: absolute;
    left: -3px;
    top: 145px;
    width: 3px;
    height: 35px;
    background: linear-gradient(-90deg, #3a3a3c, #2c2c2e);
    border-radius: 2px 0 0 2px;
}

/* --- Écran --- */
.pv-sms-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* --- Notch --- */
.pv-sms-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 28px;
    background: #000;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.pv-sms-notch-pill {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 5px;
    background: #1a1a1a;
    border-radius: 3px;
}

.pv-sms-notch-camera {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #0a2540;
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(10, 37, 64, 0.6);
}

/* --- Status bar --- */
.pv-sms-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    z-index: 5;
}

.pv-sms-time {
    font-variant-numeric: tabular-nums;
}

.pv-sms-status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 14px;
}

.pv-sms-status-icons .bi-wifi {
    font-size: 16px;
}

.pv-sms-status-icons .bi-battery-full {
    font-size: 20px;
}

/* --- App Messages --- */
.pv-sms-app {
    height: calc(100% - 40px);
    background: #000;
    display: flex;
    flex-direction: column;
}

/* --- Header iMessage --- */
.pv-sms-header {
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(60, 60, 67, 0.3);
}

.pv-sms-header-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pv-sms-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0A66C2 0%, #004182 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(10, 102, 194, 0.3);
    flex-shrink: 0;
}

.pv-sms-header-info {
    flex: 1;
}

.pv-sms-sender-name {
    color: white;
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 2px;
}

.pv-sms-sender-meta {
    color: #86868b;
    font-size: 13px;
}

.pv-sms-header-icon {
    color: #0a84ff;
    font-size: 22px;
}

/* --- Zone messages --- */
.pv-sms-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.pv-sms-bubble-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pv-sms-bubble {
    background: #2c2c2e;
    color: white;
    padding: 12px 14px;
    border-radius: 20px;
    border-top-left-radius: 5px;
    max-width: 75%;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    word-break: break-word;
}

.pv-sms-bubble-status {
    color: #86868b;
    font-size: 12px;
    padding-left: 12px;
    font-weight: 500;
}

/* --- Barre d'input --- */
.pv-sms-input-area {
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 12px;
    border-top: 1px solid rgba(60, 60, 67, 0.3);
}

.pv-sms-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pv-sms-input-camera {
    color: #86868b;
    font-size: 24px;
}

.pv-sms-input-field {
    flex: 1;
    background: #1c1c1e;
    border: 1px solid #3a3a3c;
    border-radius: 20px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pv-sms-input-placeholder {
    flex: 1;
    color: #86868b;
    font-size: 16px;
}

.pv-sms-input-mic {
    color: #86868b;
    font-size: 18px;
}

/* --- Home indicator --- */
.pv-sms-home-indicator {
    padding: 8px 0;
    display: flex;
    justify-content: center;
}

.pv-sms-home-pill {
    width: 120px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}
