/* SCREENSHOT STYLING - Professional Dashboard Images */

.dashboard-img,
.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-img:hover,
.screenshot-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.2);
}

/* Hero Dashboard Preview */
.dashboard-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    padding: 8px;
}

.dashboard-preview .dashboard-img {
    display: block;
    border-radius: 8px;
}

/* Feature Screenshot Containers */
.feature-screenshot {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    padding: 4px;
}

.feature-screenshot .screenshot-img {
    display: block;
    border: 1px solid #e5e7eb;
}

/* Placeholder Styling (for missing images) */
.screenshot-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 64px 24px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
    font-size: 14px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-placeholder::before {
    content: '📸 ';
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
}

/* Loading State */
.screenshot-img[loading="lazy"] {
    background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Image Error State */
.screenshot-img[alt]:after {
    content: attr(alt);
    display: block;
    padding: 20px;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    text-align: center;
}

/* Responsive Images */
@media (max-width: 768px) {
    .dashboard-preview {
        padding: 4px;
    }
    
    .feature-screenshot {
        margin-top: 16px;
    }
    
    .screenshot-placeholder {
        min-height: 200px;
        padding: 40px 16px;
        font-size: 13px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .feature-screenshot {
        background: #1f2937;
    }
    
    .feature-screenshot .screenshot-img {
        border-color: #374151;
    }
    
    .screenshot-placeholder {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        border-color: #374151;
        color: #9ca3af;
    }
}

/* Print Optimization */
@media print {
    .dashboard-img,
    .screenshot-img {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
