/*
 * File: css/merge.css
 * Description: Enterprise Styles for Merge PDF - PREMIUM EDITION
 * Dependencies: tools.css, style.css
 * Updated: Dec 24, 2025 (Mobile Touch Targets Fixed)
 */

.pdfs-container h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.3rem;
}

/* 🟢 GLASSMORPHISM UPGRADE */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    
    /* Global Glass Variables */
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    
    border-radius: 15px;
    border: 2px dashed rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state-subtext {
    font-size: 0.9rem;
    opacity: 0.7;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.4;
}

/* PDF Grid Items */
.pdf-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.7); /* Slightly more opaque for readability */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.pdf-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(147, 112, 219, 0.15);
    border-color: rgba(147, 112, 219, 0.2);
}

/* Loading states for thumbnails */
.pdf-thumbnail.loading::before {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 0.8rem;
}

/* Responsive improvements for mobile */
@media (max-width: 480px) {
    .pdfs-container h3 {
        font-size: 1.1rem;
    }
    
    .empty-state {
        padding: 40px 15px;
    }
    
    .empty-state-icon {
        font-size: 2.5rem;
    }
    
    .empty-state-text {
        font-size: 1rem;
    }

    /* 🚨 CRITICAL FIX: Make buttons tap-friendly on mobile */
    .pdf-action-btn, 
    .pdf-remove-btn, 
    .pdf-rotate-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pdf-item {
        border-color: #000000;
    }
    
    .pdf-item:hover {
        border-color: #000080;
        box-shadow: 0 8px 20px rgba(0, 0, 128, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .pdf-item,
    .pdf-action-btn,
    .rotating {
        transition: none;
        animation: none;
    }
    
    .sortable-ghost {
        opacity: 0.6;
    }
}