/* ==========================
   GPL Changelog Static - Styles
   ========================== */

/* GRID CONTAINER */
.gpl-changelog-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    font-family: sans-serif;
}

/* HEADER */
.changelog-grid-header {
    display: grid;
    grid-template-columns: 250px 1fr 160px 120px;
    align-items: center;
    gap: 20px;
    background: #222;
    color: #fff;
    padding: 16px 24px;
    border-radius: 0px;
    font-size: 15px;
    font-weight: 600;
}

.changelog-grid-header .header-icon-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.changelog-grid-header svg {
    vertical-align: middle;
}

/* Ensure header text color remains white */
.changelog-grid-col--header {
    color: #fff;
}

/* ROW ITEM */
.changelog-grid-row--item {
    display: grid;
    grid-template-columns: 250px 1fr 160px 120px;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #eee;
    padding: 0;
    border-radius: 0px;
    transition: box-shadow 0.3s ease;
	margin: 0 0 30px 0;
}

.changelog-grid-row--item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* THUMBNAIL */
.changelog-grid-col--thumb img {
    width: 100%;
    max-width: 295px;
    aspect-ratio: 590 / 300;
    object-fit: cover;
    border-radius: 0px;
    display: block;
}

/* TITLE & EXCERPT */
.changelog-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    margin: 0;
    line-height: 1.2;
}

.changelog-title:hover {
    color: #007BC4;
}

.changelog-excerpt {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
}

/* DETAILS */
.changelog-grid-col--details-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: #333;
}

.changelog-grid-col--details-body svg {
    vertical-align: middle;
    margin-right: 6px;
}

.changelog-grid-col--details-body .changelog-update-date,
.changelog-grid-col--details-body .changelog-category {
    display: flex;
    align-items: center;
}

.changelog-grid-col--details-body .changelog-category a {
    color: #007BC4;
    text-decoration: none;
    font-weight: 600;
}

.changelog-grid-col--details-body .changelog-category a:hover {
    text-decoration: underline;
}


/* BUTTONS */
.changelog-download-button a,
.changelog-download-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 0px;
    text-decoration: none;
    font-weight: 600;
    color: #fff;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

/* JOIN NOW BUTTON */
.changelog-download-button--join {
    background: #333333;
    color: #ffffff;
    border: 0px;
}

.changelog-download-button--active {
    background: #00aaff;
    color: #ffffff;
}

/* DESTELLO HOVER EFFECT */
.changelog-download-button--join::after,
.changelog-download-button--active::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.changelog-download-button--join:hover::after,
.changelog-download-button--active:hover::after {
    left: 120%;
}
.changelog-download-button--join,
.changelog-download-button--join:hover {
    color: #ffffff;
}
/* ---- yith download button ------*/
/* BASE STYLES - Download Unlocked */
.yith-wcmbs-download-button,
.changelog-download-button.changelog-download-button--active {
    position: relative;
    display: inline-block;
    background: #4f4f4f !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 10px 20px;
    font-weight: bold;
    text-decoration: none;
    overflow: hidden;
    transition: background 0.3s ease;
}

/* DESTELLO EFFECT - Download Unlocked */
.yith-wcmbs-download-button::after,
.changelog-download-button.changelog-download-button--active::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.yith-wcmbs-download-button:hover::after,
.changelog-download-button.changelog-download-button--active:hover::after {
    left: 120%;
}

/* BOTÓN LOCKED - Estilo base */
.yith-wcmbs-download-button.locked {
    background: #93ab07 !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 10px 20px;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: background 0.3s ease;
}

/* DESTELLO EFFECT - Locked */
.yith-wcmbs-download-button.locked::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.yith-wcmbs-download-button.locked:hover::after {
    left: 120%;
}

/* Text color forced white on hover */
.yith-wcmbs-download-button:hover,
.changelog-download-button.changelog-download-button--active:hover,
.yith-wcmbs-download-button.locked:hover {
    color: #ffffff !important;
}

/* avoid cred dsiplay */
/* Ocultar el texto de créditos en el botón Download */
.yith-wcmbs-download-button__credits {
    display: none !important;
}



/* PAGINATION */
.gpl-pagination {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.gpl-pagination a,
.gpl-pagination span {
    display: inline-block;
    min-width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    border-radius: 0px;
    transition: all 0.2s ease;
    font-weight: bold;
    padding: 0 8px;
}

.gpl-pagination a:hover {
    background: #007BC4;
    color: #fff;
    border-color: #007BC4;
}

.gpl-pagination .current {
    background: #007BC4;
    color: #fff;
    border-color: #007BC4;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .changelog-grid-header,
    .changelog-grid-row--item {
        grid-template-columns: 1fr 150px;
        grid-template-rows: auto auto;
        grid-template-areas:
            "title date"
            "title date";
    }

    .changelog-grid-col--thumb,
    .changelog-grid-col--download,
    .changelog-category {
        display: none;
    }

    .changelog-grid-col--title {
        grid-area: title;
    }

    .changelog-grid-col--details {
        grid-area: date;
    }
}
/* ---- PREACTIVATED TAG ---*/
.pt-activation-badge-block {
    display: inline-block;
    background-color: #15C60D;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 0px;
    margin-top: 4px;
    line-height: 1.2;
    text-align: left;
}
