/* Performance & Loading UI Styles for PressPective */

/* Optimize tile loading visuals */
.tile-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease-out;
}

.loading-indicator {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loading-progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
    width: 180px;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background-color: #4a9eff;
    border-radius: 4px;
    transition: width 0.3s ease-out;
}

.loading-status {
    font-size: 14px;
    font-weight: 500;
}

/* Press switching transition */
.press-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity 0.3s ease-out;
}

.press-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.press-loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
