/* ============================================
   Image SEO Tool - Custom Styles
   freemetadata.com/image-seo
   ============================================ */

body {
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

html.light body {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(236, 72, 153, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
}

html.dark body {
    background-color: #0a0f1e;
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.18) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(236, 72, 153, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

html.dark .bg-glass {
    background: rgba(21, 28, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.15);
}

html.dark .card-hover:hover {
    box-shadow: 0 25px 50px -10px rgba(59, 130, 246, 0.25);
}

::-webkit-scrollbar { 
    width: 10px; 
    height: 10px; 
}

::-webkit-scrollbar-track { 
    background: transparent; 
}

::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, #cbd5e1, #94a3b8); 
    border-radius: 5px; 
}

html.dark ::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, #475569, #334155); 
}

.toggle-checkbox:checked { 
    right: 0; 
    border-color: #3b82f6; 
}

.toggle-checkbox:checked + .toggle-label { 
    background: linear-gradient(135deg, #3b82f6, #6366f1); 
}

.dropdown-menu { 
    transform-origin: top; 
    transition: transform 0.2s ease-out, opacity 0.2s ease-out; 
}

.dropdown-menu.hidden { 
    transform: scaleY(0); 
    opacity: 0; 
    pointer-events: none; 
}

.dropdown-menu:not(.hidden) { 
    transform: scaleY(1); 
    opacity: 1; 
    pointer-events: auto; 
}

.shimmer-bg {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s linear infinite;
}

.clean-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%; 
    left: -50%;
    width: 200%; 
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: rotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before { 
    opacity: 1; 
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stat-pulse {
    animation: statPulse 0.4s ease-out;
}

@keyframes statPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); color: #10b981; }
    100% { transform: scale(1); }
}

/* ============================================
   SEO Content Section Styles
   ============================================ */

.prose-seo {
    color: #475569;
    line-height: 1.8;
}

html.dark .prose-seo {
    color: #cbd5e1;
}

.seo-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

html.dark .seo-section {
    background: rgba(21, 28, 46, 0.5);
    border-color: rgba(51, 65, 85, 0.5);
}

.seo-section:hover {
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.seo-h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    background: linear-gradient(135deg, #1e293b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html.dark .seo-h2 {
    background: linear-gradient(135deg, #f1f5f9, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    line-height: 1.4;
}

html.dark .seo-h3 {
    color: #e2e8f0;
}

.prose-seo p {
    margin-bottom: 1.15rem;
    font-size: 1rem;
    line-height: 1.8;
}

.prose-seo strong {
    color: #1e293b;
    font-weight: 700;
}

html.dark .prose-seo strong {
    color: #f1f5f9;
}

.prose-seo a {
    color: #3b82f6;
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.prose-seo a:hover {
    color: #2563eb;
    text-decoration-color: #2563eb;
}

html.dark .prose-seo a {
    color: #60a5fa;
}

html.dark .prose-seo a:hover {
    color: #93c5fd;
}

/* Responsive SEO Content */
@media (max-width: 768px) {
    .seo-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .seo-h2 {
        font-size: 1.5rem;
    }
    
    .seo-h3 {
        font-size: 1.15rem;
    }
    
    .prose-seo p {
        font-size: 0.95rem;
    }
}

/* Print-friendly */
@media print {
    .seo-section {
        background: white;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .seo-h2, .seo-h3 {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }
}

/* Custom Scrollbar for Table */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #6366f1);
    border-radius: 4px;
}
