/* Custom Styles for PDF Compressor */

/* Performance optimizations */
* {
    box-sizing: border-box;
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Optimize font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Ad container styling */
.ad-container {
    min-height: 80px;
    max-height: 100px;
}

.ad-space {
    border: 2px dashed #9ca3af;
    transition: background-color 0.2s ease;
}

.ad-space:hover {
    background-color: #d1d5db;
}

/* Drop zone animations */
#dropZone {
    transition: all 0.3s ease;
}

#dropZone.drag-over {
    border-color: #2563eb;
    background-color: #dbeafe;
    transform: scale(1.02);
}

/* Progress bar animation */
#progressBar {
    transition: width 0.3s ease;
}

/* Button hover effects */
button, label[for="fileInput"] {
    transition: all 0.2s ease;
    transform: translateY(0);
}

button:hover, label[for="fileInput"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:active, label[for="fileInput"]:active {
    transform: translateY(0);
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Responsive typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    .ad-container {
        min-height: 70px;
    }
}

/* Print styles - hide ads */
@media print {
    .ad-container {
        display: none !important;
    }
}

/* Accessibility improvements */
button:focus,
label[for="fileInput"]:focus,
#fileInput:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Content prose styling */
.prose h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1rem;
}

/* Ensure footer ad doesn't overlap content on mobile */
@media (max-width: 768px) {
    #footerAd {
        position: relative;
    }
    
    body {
        padding-bottom: 0;
    }
}

