/* =========================================================
   FUNPLAY EXPORIUM - PLAY CARD WIDGET
   ========================================================= */

.play-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.play-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.play-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: zoom-in;
    text-decoration: none;
}

.play-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.play-card-image:hover img {
    transform: scale(1.03);
}

.play-card-content {
    padding: 24px 24px 28px;
}

.play-card-title {
    margin: 0 0 10px;
    padding: 0;
    color: #092d5c;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.play-card-description {
    margin: 0 0 18px;
    color: #536b91;
    font-size: 17px;
    line-height: 1.5;
}

.play-card-description p {
    margin: 0;
}

.play-card-tag {
    display: inline-block;
    max-width: 100%;
    padding: 7px 15px;
    background: #dfb5fa;
    color: #513b76;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    word-break: normal;
}


/* =========================================================
   IMAGE POPUP / LIGHTBOX
   ========================================================= */

.play-image-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    padding: 24px;

    background: rgba(0, 0, 0, 0.80);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-image-popup:target {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.play-popup-background {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-out;
}

.play-popup-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: min(100%, 1100px);
    max-height: 90vh;
}

.play-popup-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.play-popup-close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    background: #ffffff;
    color: #222222;
    border-radius: 50%;

    text-decoration: none;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;

    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20);

    transition: transform 0.2s ease, background 0.2s ease;
}

.play-popup-close:hover {
    transform: scale(1.08);
    background: #f4f4f4;
    color: #222222;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .play-card {
        border-radius: 28px;
    }

    .play-card-content {
        padding: 22px;
    }

    .play-card-title {
        font-size: 22px;
    }

    .play-card-description {
        font-size: 16px;
    }

    .play-card-tag {
        font-size: 13px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .play-card {
        border-radius: 26px;
    }

    .play-card-image {
        aspect-ratio: 4 / 3;
    }

    .play-card-content {
        padding: 20px;
    }

    .play-card-title {
        margin-bottom: 8px;
        font-size: 21px;
    }

    .play-card-description {
        margin-bottom: 16px;
        font-size: 15px;
        line-height: 1.45;
    }

    .play-card-tag {
        padding: 7px 13px;
        font-size: 12px;
    }

    .play-image-popup {
        padding: 14px;
    }

    .play-popup-content {
        width: 100%;
        max-width: 100%;
    }

    .play-popup-content img {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 10px;
    }

    .play-popup-close {
        top: -10px;
        right: -4px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .play-card-content {
        padding: 18px;
    }

    .play-card-title {
        font-size: 20px;
    }

    .play-card-description {
        font-size: 14px;
    }

    .play-card-tag {
        font-size: 11px;
    }
}
