/* ========================================
   iOS Screens Styles
   For landing page demo integration
   ======================================== */

/* Base iPhone Frame */
.iphone-frame {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    background: #1C1C1E;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.iphone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #1C1C1E;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.screen {
    background: #000000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.status-bar {
    height: 38px;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    padding-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.status-time {
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Icon System */
.icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    overflow: visible;
}

.icon-lg {
    width: 36px;
    height: 36px;
}

.icon-xl {
    width: 56px;
    height: 56px;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

/* Screen Content */
.screen-content {
    background: #000000;
    height: 600px;
    padding: 16px;
    overflow-y: auto;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
}

.nav-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.3px;
}

.nav-button {
    background: none;
    border: none;
    color: #007AFF;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
}

/* Import Screen */
.import-area {
    background: #1C1C1E;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 20px;
    border: 2px dashed #3A3A3C;
}

.file-info {
    background: #2C2C2E;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-info-icon {
    flex-shrink: 0;
    color: #007AFF;
}

.file-info-content {
    flex: 1;
    min-width: 0;
}

.file-name {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    color: #8E8E93;
    font-size: 12px;
    display: flex;
    gap: 6px;
}

.option-card {
    background: #1C1C1E;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}

.option-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.option-title {
    color: white;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-title .icon {
    color: #007AFF;
}

.toggle {
    width: 46px;
    height: 28px;
    background: #34C759;
    border-radius: 28px;
    position: relative;
}

.toggle::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 2px;
    right: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.option-description {
    color: #8E8E93;
    font-size: 12px;
    line-height: 1.4;
}

.quota-indicator {
    background: #1C1C1E;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
}

.quota-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.quota-label {
    color: #8E8E93;
    font-size: 13px;
}

.quota-value {
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.progress-bar {
    height: 5px;
    background: #2C2C2E;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #34C759 0%, #30D158 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.primary-button {
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-button:active {
    transform: scale(0.98);
    background: #0051D5;
}

/* Processing Screen */
.processing-container {
    text-align: center;
    padding-top: 50px;
}

.processing-icon {
    margin-bottom: 20px;
    color: #007AFF;
}

.processing-icon .icon-xl {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.processing-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.processing-subtitle {
    color: #8E8E93;
    font-size: 15px;
    margin-bottom: 32px;
}

.progress-section {
    background: #1C1C1E;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.progress-label {
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.progress-percentage {
    color: #007AFF;
    font-size: 15px;
    font-weight: 700;
}

.progress-bar-large {
    height: 7px;
    background: #2C2C2E;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
}

.progress-fill-large {
    height: 100%;
    background: linear-gradient(90deg, #007AFF 0%, #5856D6 100%);
    border-radius: 4px;
    transition: width 1s ease;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #2C2C2E;
}

.step-item:last-child {
    border-bottom: none;
}

.step-item .icon {
    color: #8E8E93;
}

.step-item.complete .icon {
    color: #34C759;
}

.step-item.active .icon {
    color: #007AFF;
}

.step-item.active .icon svg {
    animation: spin 1s linear infinite;
}

.step-text {
    flex: 1;
    color: white;
    font-size: 13px;
}

.step-status {
    color: #8E8E93;
    font-size: 12px;
}

.step-status.complete {
    color: #34C759;
}

.step-status.active {
    color: #007AFF;
}

.time-estimate {
    text-align: center;
    color: #8E8E93;
    font-size: 13px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.time-estimate .icon {
    color: #8E8E93;
}

/* Results Screen */
.success-header {
    text-align: center;
    margin-bottom: 18px;
    padding-top: 8px;
}

.success-icon {
    margin-bottom: 10px;
    color: #34C759;
}

.success-icon .icon-xl {
    width: 42px;
    height: 42px;
}

.success-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.success-subtitle {
    color: #8E8E93;
    font-size: 13px;
}

.markers-list {
    margin-bottom: 14px;
}

.marker-item {
    background: #1C1C1E;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 7px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.marker-time {
    color: #007AFF;
    font-size: 12px;
    font-weight: 600;
    min-width: 45px;
    padding-top: 2px;
}

.marker-content {
    flex: 1;
}

.marker-title {
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.25;
}

.marker-type {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    background: rgba(175, 82, 222, 0.15);
    color: #AF52DE;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    margin-top: 3px;
}

.marker-type .icon {
    width: 10px;
    height: 10px;
}

.more-markers {
    text-align: center;
    color: #8E8E93;
    font-size: 12px;
    padding: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .iphone-frame {
        max-width: 280px;
    }

    .screen-content {
        height: 550px;
    }
}
