/* Custom styles for Invert Colors website */

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

/* Upload area hover effects */
#upload-area {
    transition: all 0.3s ease;
}

#upload-area:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

#upload-area.dragover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* Image preview styles */
#preview-image, #inverted-canvas {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* FAQ accordion styles */
.faq-toggle[aria-expanded="true"] .chevron-down {
    transform: rotate(180deg);
}

/* Dropdown menu animations */
.dropdown-menu {
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive image container */
.image-container {
    position: relative;
    max-width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

.image-container img,
.image-container canvas {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Prose styles for content pages */
.prose {
    color: #374151;
    max-width: none;
}

.prose h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
    padding-bottom: 0.5rem;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: #4b5563;
}

.prose ul {
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
    list-style-position: outside;
}

.prose ol {
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: decimal;
    list-style-position: outside;
}

.prose li {
    margin-bottom: 0.25rem;
    line-height: 1.6;
    color: #4b5563;
    display: list-item;
}

.prose li:last-child {
    margin-bottom: 0;
}


.prose strong {
    font-weight: 600;
    color: #1f2937;
}

.prose em {
    font-style: italic;
    color: #6b7280;
    font-size: 0.9rem;
}

.prose a {
    color: #3b82f6;
    /* text-decoration: underline; */
    text-decoration-color: #93c5fd;
    transition: all 0.2s ease;
}

.prose a:hover {
    color: #2563eb;
    text-decoration-color: #3b82f6;
}

.prose hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.prose blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 0.375rem;
}

.prose code {
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Success message styles */
.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Error message styles */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* File info styles */
.file-info {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 0.875rem;
    color: #64748b;
}

/* Rotation transform classes */
.rotate-90 {
    transform: rotate(90deg);
}

.rotate-180 {
    transform: rotate(180deg);
}

.rotate-270 {
    transform: rotate(270deg);
}