/* ==========================
   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 2fr 160px;
    align-items: center;
    gap: 20px;
    background: #007bc4;
    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 2fr 160px;
    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 */


/* 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;
    }
}
