/* ============================================================
   SavvySpot Phone Mockup — Realistic App Preview
   ============================================================ */

/* ---- Phone Frame ---- */
.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 0 0 2px #333,
        0 25px 60px rgba(0,0,0,0.35),
        inset 0 0 6px rgba(255,255,255,0.05);
    overflow: hidden;
    margin: 0 auto;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 18px 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notch-camera {
    width: 10px;
    height: 10px;
    background: #2a2a3a;
    border-radius: 50%;
    border: 1.5px solid #3a3a4a;
}

/* ---- Status Bar ---- */
.phone-status-bar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    height: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    font-size: 11px;
    font-weight: 600;
    color: #333;
    z-index: 10;
    background: #f5f5f5;
    border-radius: 28px 28px 0 0;
}
.status-icons {
    display: flex;
    gap: 4px;
    color: #333;
}

/* ---- Screen Carousel ---- */
.phone-screen-carousel {
    position: relative;
    width: 100%;
    height: calc(100% - 56px); /* minus nav bar + home indicator */
    border-radius: 28px 28px 0 0;
    overflow: hidden;
    background: #f5f5f5;
}

.screen-track {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-screen {
    width: 25%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 34px 12px 8px;
    overflow: hidden;
    background: #f5f5f5;
    gap: 8px;
}

/* ---- App Bar ---- */
.app-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 6px;
}
.app-bar-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    flex: 1;
}

/* ---- Mock Cards ---- */
.mock-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.mock-card-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mock-label {
    font-size: 11px;
    font-weight: 600;
    color: #555;
}
.mock-address {
    display: block;
    font-size: 10px;
    color: #888;
    margin-top: 3px;
}

/* ---- Stats Row ---- */
.mock-stats-row {
    display: flex;
    gap: 8px;
}
.mock-stat-card {
    flex: 1;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.mock-stat-card.savings {
    background: linear-gradient(135deg, #e0f7f1 0%, #b2ebf2 100%);
    color: #068D9D;
}
.mock-stat-card.points {
    background: linear-gradient(135deg, #ede7f6 0%, #d1c4e9 100%);
    color: #53599A;
}
.mock-stat-card i { font-size: 14px; }
.mock-stat-value { font-size: 16px; font-weight: 800; }
.mock-stat-label { font-size: 8px; font-weight: 500; opacity: 0.8; }

/* ---- Section Header ---- */
.mock-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}
.mock-section-header span:first-child {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}
.mock-badge {
    font-size: 9px;
    font-weight: 600;
    color: #068D9D;
    background: #e0f7f1;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ---- Discount Items ---- */
.mock-discount {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 12px;
    padding: 8px 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.mock-discount-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}
.mock-discount-info {
    flex: 1;
    min-width: 0;
}
.mock-discount-info strong {
    display: block;
    font-size: 11px;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mock-discount-info small {
    font-size: 9px;
    color: #888;
}
.mock-discount-pct {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #068D9D;
    padding: 3px 8px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ---- Screen 2: QR Scanner ---- */
.scan-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.scan-frame {
    width: 160px;
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.scan-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: #068D9D;
    border-style: solid;
    border-width: 0;
}
.scan-corner.tl { top:0;left:0;border-top-width:3px;border-left-width:3px;border-radius:6px 0 0 0; }
.scan-corner.tr { top:0;right:0;border-top-width:3px;border-right-width:3px;border-radius:0 6px 0 0; }
.scan-corner.bl { bottom:0;left:0;border-bottom-width:3px;border-left-width:3px;border-radius:0 0 0 6px; }
.scan-corner.br { bottom:0;right:0;border-bottom-width:3px;border-right-width:3px;border-radius:0 0 6px 0; }

.scan-line {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #068D9D, transparent);
    animation: scanPulse 2s ease-in-out infinite;
}
@keyframes scanPulse {
    0%, 100% { top: 10%; opacity: 0.5; }
    50% { top: 85%; opacity: 1; }
}

.scan-qr-icon {
    font-size: 48px;
    color: rgba(6,141,157,0.15);
}
.scan-hint {
    font-size: 9px;
    color: #888;
    text-align: center;
    max-width: 85%;
    line-height: 1.4;
}

/* ---- Screen 3: Student Card ---- */
.student-card-mock {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.student-card-bg {
    width: 100%;
    background: linear-gradient(135deg, #068D9D 0%, #53599A 100%);
    border-radius: 18px;
    padding: 16px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(6,141,157,0.3);
}
.student-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    width: 100%;
}
.student-card-avatar {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-top: 4px;
}
.student-card-name { font-size: 15px; font-weight: 700; }
.student-card-uni  { font-size: 10px; opacity: 0.8; }
.student-card-id   { font-size: 9px; opacity: 0.6; font-family: monospace; }
.student-card-qr   { margin-top: 6px; }
.mini-qr {
    background: #fff;
    padding: 6px;
    border-radius: 8px;
}
.qr-grid {
    display: grid;
    grid-template-columns: repeat(7, 6px);
    grid-template-rows: repeat(7, 6px);
    gap: 1px;
}
.qr-grid span {
    background: #1a1a1a;
    border-radius: 1px;
}
.qr-grid span:nth-child(3n+1)  { background: #1a1a1a; }
.qr-grid span:nth-child(3n+2)  { background: transparent; }
.qr-grid span:nth-child(5n)    { background: #1a1a1a; }
.qr-grid span:nth-child(7n+3)  { background: transparent; }
.student-card-valid { font-size: 8px; opacity: 0.6; }

/* ---- Screen 4: Map ---- */
.mock-map {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.map-bg {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, #e8f5e9 0%, #dcedc8 30%, #e8eaf6 60%, #f5f5f5 100%);
    position: relative;
}
.map-roads {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 30%, rgba(200,200,200,0.5) 30%, rgba(200,200,200,0.5) 31%, transparent 31%),
        linear-gradient(90deg, transparent 60%, rgba(200,200,200,0.5) 60%, rgba(200,200,200,0.5) 61%, transparent 61%),
        linear-gradient(0deg, transparent 25%, rgba(200,200,200,0.5) 25%, rgba(200,200,200,0.5) 26%, transparent 26%),
        linear-gradient(0deg, transparent 55%, rgba(200,200,200,0.5) 55%, rgba(200,200,200,0.5) 56%, transparent 56%),
        linear-gradient(0deg, transparent 80%, rgba(200,200,200,0.5) 80%, rgba(200,200,200,0.5) 81%, transparent 81%);
}
.map-pin {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pinFloat 3s ease-in-out infinite;
}
.map-pin i { font-size: 18px; color: #068D9D; }
.map-pin span {
    font-size: 7px;
    font-weight: 700;
    color: #fff;
    background: #068D9D;
    padding: 1px 5px;
    border-radius: 6px;
    margin-top: -4px;
}
.map-pin.pin1 { top: 18%; left: 22%; animation-delay: 0s; }
.map-pin.pin2 { top: 35%; left: 65%; animation-delay: 0.5s; }
.map-pin.pin3 { top: 60%; left: 38%; animation-delay: 1s; }
.map-pin.pin4 { top: 28%; left: 48%; animation-delay: 1.5s; }
.map-pin.pin-user { top: 48%; left: 50%; }
.map-pin.pin-user i {
    font-size: 10px;
    color: #2196f3;
    filter: drop-shadow(0 0 4px rgba(33,150,243,0.6));
}
.map-pin.pin-user span { display: none; }
@keyframes pinFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.map-bottom-card {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    z-index: 5;
}

/* ---- Navigation Bar ---- */
.phone-nav-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 44px;
    background: #fff;
    border-top: 1px solid #eee;
}
.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-size: 8px;
    color: #aaa;
    cursor: default;
}
.nav-tab i { font-size: 14px; }
.nav-tab.active { color: #068D9D; }

/* ---- Home Indicator ---- */
.phone-home-indicator {
    width: 100px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 4px auto;
}

/* ---- Carousel Dots ---- */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.3s;
}
.dot.active {
    background: #068D9D;
    width: 20px;
    border-radius: 4px;
}

/* Animate dots in sync with carousel */
.carousel-dots {
    animation: dotsSync 12s ease-in-out infinite;
}

/* ---- Dashboard Placeholder (company page) ---- */
.dashboard-screenshot-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid #dee2e6;
}
.dashboard-screenshot-placeholder::before {
    content: '';
    position: absolute;
    top: 20px; left: 20px;
    width: 120px; height: 20px;
    background: #068D9D;
    border-radius: 10px;
}
.dashboard-screenshot-placeholder::after {
    content: '';
    position: absolute;
    bottom: 20px; right: 20px;
    width: 80px; height: 15px;
    background: #53599A;
    border-radius: 7.5px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .phone-frame {
        width: 240px;
        height: 500px;
        border-radius: 34px;
        padding: 10px;
    }
    .phone-notch { width: 100px; height: 24px; }
    .app-screen { padding-top: 28px; }
    .mock-stat-value { font-size: 14px; }
    .scan-frame { width: 130px; height: 130px; }
    .student-card-avatar { width: 42px; height: 42px; font-size: 20px; }
}