/**
 * IJW Category Callout - Frontend Styles
 *
 * @package IJW_Category_Callout
 * @version 1.0.0
 */

/* Callout Card Base */
.CalloutCard {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 300px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.CalloutCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Ensure clickable cards have pointer */
a.CalloutCard {
    cursor: pointer;
}

/* Background Image */
.CalloutCard__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
}

.CalloutCard:hover .CalloutCard__background {
    transform: scale(1.05);
}

/* Content Overlay */
.CalloutCard__content {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
}

.CalloutCard__content--overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.CalloutCard__title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Video Callout */
.CalloutCard--video {
    background: #000;
}

.CalloutCard__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.CalloutCard__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Video iframe responsive */
.CalloutCard__video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* HTML Callout */
.CalloutCard--html {
    background: #f5f5f5;
}

.CalloutCard__html {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.CalloutCard__html img {
    max-width: 100%;
    height: auto;
}

/* Grid Integration - match ProductCard dimensions */
.ArchiveGrid .CalloutCard,
.Grid .CalloutCard {
    background: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .CalloutCard {
        min-height: 250px;
    }

    .CalloutCard__title {
        font-size: 16px;
    }

    .CalloutCard__content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .CalloutCard {
        min-height: 200px;
    }

    .CalloutCard__title {
        font-size: 14px;
    }
}
