/* AI Quick Toolbox - Custom Styles */

/* Gradient backgrounds */
.gradient-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
}

.gradient-card:hover {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
}

/* Smooth transitions */
* {
    transition-property: color, background-color, border-color, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Tool card hover effects */
.tool-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Copy button animation */
.copy-btn.copied {
    background-color: #10b981;
    color: white;
}

/* Ad container */
.ad-container {
    min-height: 90px;
    border: 1px dashed rgba(156, 163, 175, 0.3);
}

/* Textarea styling */
textarea:focus, input:focus, select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* JSON syntax highlighting */
.json-key { color: #6366f1; }
.json-string { color: #059669; }
.json-number { color: #d97706; }
.json-boolean { color: #dc2626; }
.json-null { color: #6b7280; }

/* Color picker gradient */
.color-preview {
    transition: background-color 0.1s ease;
}

/* Strength meter */
.strength-meter {
    height: 4px;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* Responsive image grid for image-to-pdf */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

/* Pulse animation for generating states */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse-slow {
    animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Print styles */
@media print {
    nav, footer, .ad-container, .no-print { display: none !important; }
    main { padding: 0 !important; }
}
