/**
 * Static Figure Component Styles
 * Used with: resources/views/components/static-figure.blade.php
 *
 * Provides consistent styling for static anatomy images with:
 * - Responsive container with aspect ratio
 * - Hover effects for modal trigger indication
 * - Proper image sizing and object-fit
 * - Caption styling
 */

/* Main container for static figures */
.static-figure-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    background-color: #f2f2f2;
    aspect-ratio: 16 / 9;
}

/* Image styling within container */
.static-figure-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

/* Hover effect to indicate clickability */
.static-figure-container:hover img {
    transform: scale(1.01);
}

/* Link wrapper - ensure full coverage */
.static-figure-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Figcaption styling */
.static-figure-container + figcaption,
figure.static-figure-container figcaption {
    font-size: 0.9rem;
    color: #666;
    padding: 0.5rem 0;
}

/* Caption link styling */
.static-figure-container + figcaption a,
figure.static-figure-container figcaption a {
    color: #0072c5;
    text-decoration: none;
}

.static-figure-container + figcaption a:hover,
figure.static-figure-container figcaption a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .static-figure-container {
        border-radius: 10px;
        margin-bottom: 0.75rem;
    }
}

/* Print styles */
@media print {
    .static-figure-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .static-figure-container:hover img {
        transform: none;
    }
}
