/* =====================================================
   SSC Photo Resizer - Custom CSS
   ===================================================== */

/* Drop zone styling */
.drop-zone {
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Smooth transitions */
button, a, input, select {
    transition: all 0.2s ease;
}

/* Range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e2e8f0;
    border-radius: 6px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

/* Blog content styling */
.blog-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #334155;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-content p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.blog-content ul, .blog-content ol {
    color: #475569;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.375rem;
    line-height: 1.7;
}

.blog-content ul li { list-style-type: disc; }
.blog-content ol li { list-style-type: decimal; }

.blog-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #93c5fd;
}

.blog-content a:hover {
    color: #1d4ed8;
    text-decoration-color: #1d4ed8;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.blog-content th, .blog-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
    font-size: 0.875rem;
}

.blog-content th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.blog-content td {
    color: #475569;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Print styles */
@media print {
    nav, footer, .no-print, .adsbygoogle {
        display: none !important;
    }
    body {
        font-size: 12pt;
        color: #000;
    }
}

/* Focus visible */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 6px;
}

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

/* Details/Summary marker fix */
details summary::-webkit-details-marker {
    display: none;
}

/* Legal page content */
.legal-content h2 {
    padding-left: 1rem;
    border-left: 3px solid #3b82f6;
    margin-top: 2.5rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: #475569;
}

.legal-content strong {
    color: #1e293b;
    font-weight: 600;
}

.legal-content ul li::marker,
.legal-content ol li::marker {
    color: #3b82f6;
}
