/* ===== WhatsApp iOS Mockup Styles ===== */

/* CSS Variables for iOS Theme */
:root {
    --ios-bg: #000;
    --ios-card: #1c1c1e;
    --ios-text: #fff;
    --ios-lbl: #8e8e93;
    --ios-sep: #38383a;
    --ios-blue: #0a84ff;
    --wa3: #25d366;
}

/* Light mode (if needed) */
@media (prefers-color-scheme: light) {
    :root {
        --ios-bg: #f2f2f7;
        --ios-card: #fff;
        --ios-text: #000;
        --ios-lbl: #8e8e93;
        --ios-sep: #c6c6c8;
        --ios-blue: #007aff;
    }
}

/* Mockup Container */
.wa-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Phone Frame - iOS */
.phone.ph-i {
    width: 340px;
    height: 680px;
    background: var(--ios-bg);
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 
                0 0 0 12px #1a1a1a,
                0 0 0 14px #2a2a2a;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Status Bar - iOS */
.sb-i {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ios-text);
    background: var(--ios-bg);
    flex-shrink: 0;
}

.sb-i .t {
    font-weight: 600;
}

.sb-i .r {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* App Container */
.app-i {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: var(--ios-bg);
}

/* View System */
.view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    background: var(--ios-bg);
}

.view.active {
    opacity: 1;
    pointer-events: auto;
}

/* Navigation Bar - iOS */
.inav {
    background: var(--ios-card);
    border-bottom: 1px solid var(--ios-sep);
    padding: 8px 16px;
    flex-shrink: 0;
}

.inav .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.inav .ttl {
    font-size: 20px;
    font-weight: 700;
    color: var(--ios-text);
}

.inav .icons {
    display: flex;
    gap: 20px;
    color: var(--ios-blue);
}

.inav .back {
    background: none;
    border: none;
    color: var(--ios-blue);
    font-size: 17px;
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.isearch {
    background: var(--ios-sep);
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 8px;
    color: var(--ios-lbl);
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Body */
.ibody {
    flex: 1;
    overflow: hidden;
    background: var(--ios-bg);
}

/* WhatsApp Feed Items */
.iwf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--ios-card);
    border-bottom: 1px solid var(--ios-sep);
    cursor: pointer;
    transition: background 0.2s;
}

.iwf-item:hover {
    background: rgba(255,255,255,0.05);
}

.iwf-item-fb .iwf-av {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}

.iwf-av {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--ios-sep);
    flex-shrink: 0;
}

.iwf-body {
    flex: 1;
    min-width: 0;
}

.wf-fb-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--ios-text);
    margin-bottom: 2px;
}

.wf-fb-preview {
    font-size: 15px;
    color: var(--ios-lbl);
}

.wf-bar {
    height: 16px;
    background: var(--ios-sep);
    border-radius: 4px;
    margin-bottom: 4px;
}

.wf-bar.sm {
    height: 12px;
}

.wf-bar.w2 { width: 20%; }
.wf-bar.w3 { width: 30%; }
.wf-bar.w4 { width: 40%; }
.wf-bar.w5 { width: 50%; }
.wf-bar.w6 { width: 60%; }
.wf-bar.w7 { width: 70%; }

.iwf-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.iwf-time {
    font-size: 14px;
    color: var(--ios-lbl);
}

.iwf-chev {
    color: var(--ios-lbl);
    font-size: 14px;
}

/* Tabs - iOS */
.itabs {
    display: flex;
    justify-content: space-around;
    background: var(--ios-card);
    border-top: 1px solid var(--ios-sep);
    padding: 8px 0;
    flex-shrink: 0;
}

.itab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--ios-lbl);
    font-size: 10px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.itab i {
    font-size: 24px;
}

.itab.on {
    color: var(--ios-blue);
}

.itab.faded {
    opacity: 0.5;
}

/* Settings Profile */
.is-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--ios-card);
    margin-bottom: 20px;
}

.is-nm {
    font-size: 22px;
    font-weight: 600;
    color: var(--ios-text);
}

.is-ph {
    font-size: 16px;
    color: var(--ios-lbl);
}

/* Settings Groups */
.is-grp {
    background: var(--ios-card);
    border-radius: 10px;
    margin: 0 16px 20px;
    overflow: hidden;
}

.is-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--ios-text);
    cursor: pointer;
}

.is-item .lb {
    flex: 1;
}

.is-item .ch {
    color: var(--ios-lbl);
    font-size: 14px;
}

.is-sep {
    height: 1px;
    background: var(--ios-sep);
    margin-left: 48px;
}

/* Sub Navigation */
.isub-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--ios-card);
    border-bottom: 1px solid var(--ios-sep);
}

.isub-nav .ttl {
    font-size: 17px;
    font-weight: 600;
    color: var(--ios-text);
    flex: 1;
    text-align: center;
}

.isub-body {
    flex: 1;
    overflow: hidden;
    background: var(--ios-bg);
}

/* List Groups */
.il-section {
    padding: 16px 16px 8px;
    font-size: 13px;
    color: var(--ios-lbl);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.il-grp {
    background: var(--ios-card);
    border-radius: 10px;
    margin: 0 16px 20px;
    overflow: hidden;
}

.il-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--ios-text);
    cursor: pointer;
}

.il-item.hl {
    background: rgba(37,211,102,0.1);
}

.il-item .ll {
    flex: 1;
    font-size: 17px;
}

.il-item .lv {
    font-size: 17px;
    color: var(--ios-lbl);
}

.il-item .lch {
    color: var(--ios-lbl);
    font-size: 14px;
}

.il-sep {
    height: 1px;
    background: var(--ios-sep);
}

.lic {
    color: var(--ios-blue);
    font-size: 22px;
    width: 28px;
    text-align: center;
}

/* Pre-connect Screen */
.precon {
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.precon-illust {
    margin-bottom: 20px;
}

.precon h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ios-text);
    margin: 0;
}

.precon-sub {
    font-size: 15px;
    color: var(--ios-lbl);
    line-height: 1.4;
}

.precon-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.precon-row {
    display: flex;
    gap: 12px;
    text-align: left;
    align-items: flex-start;
}

.precon-row i {
    font-size: 20px;
    color: var(--ios-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.precon-row p {
    font-size: 14px;
    color: var(--ios-lbl);
    margin: 0;
    line-height: 1.4;
}

.precon-cta {
    background: var(--ios-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

/* Share Dialog */
.ios-share-hero {
    padding: 32px 24px;
    text-align: center;
}

.ios-share-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ios-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #fff;
}

.ios-share-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ios-text);
    margin: 0 0 12px;
}

.ios-share-desc {
    font-size: 15px;
    color: var(--ios-lbl);
    margin: 0 0 24px;
    line-height: 1.4;
}

.ios-radio-item {
    position: relative;
}

.ios-radio-item .ios-radio-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--ios-sep);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-radio-item.selected .ios-radio-check {
    border-color: var(--ios-blue);
}

.ios-radio-item.selected .ios-radio-check::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ios-blue);
}

.ios-share-cta {
    background: var(--ios-blue);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

/* QR Scanner */
.qr-scan-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--ios-bg);
}

.qr-viewfinder {
    width: 240px;
    height: 240px;
    position: relative;
    margin-bottom: 32px;
}

.qr-frame {
    width: 100%;
    height: 100%;
    position: relative;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
}

.qr-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid #fff;
}

.qr-corner.qr-tl {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-radius: 20px 0 0 0;
}

.qr-corner.qr-tr {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 20px 0 0;
}

.qr-corner.qr-bl {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 20px;
}

.qr-corner.qr-br {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 20px 0;
}

.qr-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--wa3);
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { top: 0; }
    50% { top: calc(100% - 2px); }
}

.qr-instruction {
    font-size: 15px;
    color: var(--ios-lbl);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 24px;
}

.qr-done-btn {
    background: var(--wa3);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Facebook Chat */
.fb-chat-hdr {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--ios-card);
    border-bottom: 1px solid var(--ios-sep);
}

.fb-av-fb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1877f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.fb-chat-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--ios-text);
}

.fb-chat-sub {
    font-size: 13px;
    color: var(--ios-lbl);
}

.fb-chat-body {
    flex: 1;
    overflow: hidden;
    padding: 16px;
    background: var(--ios-bg);
}

.fb-date-sep {
    text-align: center;
    margin: 20px 0;
}

.fb-date-sep span {
    background: var(--ios-sep);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--ios-lbl);
}

.fb-bubble {
    background: var(--ios-card);
    border-radius: 12px;
    padding: 12px;
    max-width: 280px;
}

.fb-b-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ios-text);
    margin-bottom: 4px;
}

.fb-b-text {
    font-size: 14px;
    color: var(--ios-lbl);
    margin-bottom: 8px;
    line-height: 1.4;
}

.fb-b-time {
    font-size: 12px;
    color: var(--ios-lbl);
    margin-bottom: 12px;
}

.fb-b-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--ios-sep);
    border-radius: 8px;
    color: var(--ios-blue);
    font-size: 15px;
    cursor: pointer;
    justify-content: center;
}

.fb-input-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--ios-bg);
    border-top: 1px solid var(--ios-sep);
}

.fb-plus {
    font-size: 28px;
    color: var(--ios-blue);
    cursor: pointer;
}

.fb-input {
    flex: 1;
    background: var(--ios-card);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--ios-lbl);
    font-size: 17px;
}

.fb-mic {
    display: flex;
    gap: 12px;
    font-size: 24px;
    color: var(--ios-blue);
}

/* Home Screen */
.hs-screen {
    flex: 1;
    padding: 60px 24px 24px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hs-date {
    text-align: center;
    margin-bottom: 40px;
}

.hs-date-day {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

.hs-date-time {
    font-size: 64px;
    font-weight: 700;
    color: #fff;
}

.hs-guidance {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 40px;
}

.hs-guidance i {
    font-size: 32px;
    color: var(--wa3);
}

.hs-guidance-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.hs-guidance-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.hs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 16px;
    margin-bottom: 32px;
}

.hs-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hs-icon-skel {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(255,255,255,0.1);
}

.hs-lbl-skel {
    height: 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.hs-app-wa .hs-icon-wa {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
}

.hs-icon-wa img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hs-lbl-wa {
    font-size: 11px;
    color: #fff;
    text-align: center;
}

.hs-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.hs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
}

.hs-dot.active {
    background: #fff;
}

.hs-dock {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.hs-dock-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
}

/* Utility Classes */
.faded {
    opacity: 0.5;
}

.dms-tap {
    cursor: pointer;
}

/* Frozen State (for docs) */
.wa-mockup--frozen .phone {
    pointer-events: none;
    user-select: none;
}

.wa-mockup--frozen .app-i {
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .wa-mockup {
        padding: 10px;
    }
    
    .phone.ph-i {
        width: 300px;
        height: 600px;
    }
}
