/* ============================================
   LOADING SCREEN
   ============================================ */

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    flex-direction: column;
    background: #0a0a0a;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* ---------- Image area ---------- */
.loading-image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.loading-image.loaded {
    opacity: 1;
}

/* Gradient overlay at the bottom of image */
.loading-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #0a0a0a 0%, transparent 100%);
    pointer-events: none;
}

/* ---------- Bottom section ---------- */
.loading-bottom {
    flex-shrink: 0;
    padding: 0 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #0a0a0a;
}

/* ---------- Progress bar ---------- */
.loading-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loading-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loading-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c5a44e, #e8d48b);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.loading-progress-percent {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
    min-width: 36px;
    text-align: right;
}

/* ---------- Status text ---------- */
.loading-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    min-height: 18px;
    font-style: italic;
}

/* Safe area padding for iOS */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .loading-bottom {
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
    }
}
