/**
 * CSS for Groovy Teaser Widget Frontend Display
 */

.groovy-teaser-container {
    background: #121212; /* Cinematic Premium Dark Theme default */
    border: 1px solid #222222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 15px 0;
    max-width: 100%;
}

.groovy-teaser-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border-color: #333333;
}

.groovy-teaser-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
    outline: none;
}

.groovy-teaser-image-wrapper {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #080808;
    overflow: hidden;
}

.groovy-teaser-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.groovy-teaser-container:hover .groovy-teaser-image {
    transform: scale(1.03);
}

.groovy-teaser-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.groovy-teaser-text {
    font-size: 15px;
    line-height: 1.6;
    color: #e0e0e0; /* High contrast readable text */
}

.groovy-teaser-text p {
    margin: 0 0 10px 0;
}

.groovy-teaser-text p:last-child {
    margin-bottom: 0;
}

.groovy-teaser-button {
    display: inline-block;
    align-self: flex-start;
    background-color: #ffffff; /* Contrast button */
    color: #000000 !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 24px;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    text-align: center;
    border: none;
    line-height: 1.4;
}

.groovy-teaser-container:hover .groovy-teaser-button {
    background-color: #e0e0e0;
}

.groovy-teaser-button:active {
    transform: scale(0.97);
}

/* List/Grid layout for multiple teasers ([groovy_teaser_all], [groovy_teaser_active], [groovy_teaser_notactive]) */
.groovy-teasers-list-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Horizontal Layout Option (for wider modules/sections if desired) */
@media (min-width: 768px) {
    .groovy-teaser-container-horizontal .groovy-teaser-link {
        flex-direction: row;
        align-items: center;
    }

    .groovy-teaser-container-horizontal .groovy-teaser-image-wrapper {
        width: 40%;
        padding-top: 25%; /* Adjusted aspect ratio for horizontal layout */
        flex-shrink: 0;
    }

    .groovy-teaser-container-horizontal .groovy-teaser-content {
        padding: 25px;
        flex-grow: 1;
    }
}
