/**
 * Image/Video Card Widget Styles
 * Card layout with background media and overlay info box
 */

/* Container Styles */
.layout-imageCard_large {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.layout-imageCard_large .row {
    margin: 0;
}

.layout-imageCard_large .col-12 {
    padding: 0;
}

/* Image Container */
.img-container {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
    border-radius: 0;
    background: #000;
}

/* Video Styles */
.img-container .video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Background Image Styles */
.img-container .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay Box */
.image-video-card-inner {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background-color: #000000;
    color: #ffffff;
    padding: 30px;
    text-decoration: none;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 0;
    max-width: 500px;
    min-width: 300px;
}

/* Hover Effects */
.image-video-card-inner:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    text-decoration: none;
}

/* Typography Styles */
.image-video-card-inner .category-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #ffffff;
    opacity: 0.8;
}

.image-video-card-inner .title-text {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.image-video-card-inner .location-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.image-video-card-inner .location-text .locationPin {
    width: 12px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.image-video-card-inner .description-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #ffffff;
    opacity: 0.9;
}

/* Links Container */
.links-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.image-video-card-inner .button-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: #ffffff;
    transition: all 0.3s ease;
}

.image-video-card-inner .btn-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    transition: all 0.3s ease;
}

.image-video-card-inner .btn-arrow svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
    transition: all 0.3s ease;
}

/* Hover Animations */
.image-video-card-inner:hover .btn-arrow {
    transform: translateX(5px);
}

.image-video-card-inner:hover .btn-arrow svg {
    transform: scale(1.1);
}

.image-video-card-inner:hover .button-text {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .image-video-card-inner {
        max-width: 450px;
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .img-container {
        height: 60vh;
        min-height: 350px;
    }
    
    .image-video-card-inner {
        bottom: 20px;
        left: 20px;
        padding: 25px;
        max-width: 400px;
        min-width: 250px;
    }
    
    .image-video-card-inner .title-text {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .image-video-card-inner .description-text {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .img-container {
        height: 50vh;
        min-height: 300px;
    }
    
    .image-video-card-inner {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: -100px;
        margin-left: 20px;
        margin-right: 20px;
        padding: 20px;
        max-width: none;
        min-width: auto;
        z-index: 10;
    }
    
    .image-video-card-inner .title-text {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .image-video-card-inner .location-text {
        display: none; /* Hide location on mobile to save space */
    }
    
    .image-video-card-inner .description-text {
        font-size: 12px;
        margin-bottom: 15px;
        display: none; /* Hide description on mobile to save space */
    }
    
    .links-container {
        gap: 10px;
    }
    
    .image-video-card-inner .category-text {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .image-video-card-inner .button-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .img-container {
        height: 40vh;
        min-height: 250px;
    }
    
    .image-video-card-inner {
        margin-top: -80px;
        padding: 15px;
    }
    
    .image-video-card-inner .title-text {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .image-video-card-inner .btn-arrow {
        width: 25px;
        height: 25px;
    }
    
    .image-video-card-inner .btn-arrow svg {
        width: 8px;
        height: 8px;
    }
}

/* Animation Enhancements */
.image-video-card-inner {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.img-container.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Focus States for Accessibility */
.image-video-card-inner:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.image-video-card-inner:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .image-video-card-inner {
        background-color: #000000;
        border: 2px solid #ffffff;
    }
    
    .image-video-card-inner:hover {
        background-color: #ffffff;
        color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .image-video-card-inner,
    .image-video-card-inner:hover,
    .image-video-card-inner .btn-arrow,
    .image-video-card-inner .btn-arrow svg,
    .image-video-card-inner .button-text {
        transition: none;
        animation: none;
        transform: none;
    }
    
    .image-video-card-inner:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .img-container {
        height: auto;
        min-height: 200px;
        break-inside: avoid;
    }
    
    .image-video-card-inner {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 10px 0;
        box-shadow: none;
        background: #f5f5f5 !important;
        color: #000000 !important;
    }
    
    .image-video-card-inner * {
        color: #000000 !important;
    }
}
