/* Cikk előnézete (preview.php) */

.preview {
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;

    background: linear-gradient(140deg, #fcbf9c, #d8badc);
    filter: drop-shadow(1px 1px 6px rgba(53, 41, 73, 0.2));

    width: 100%;
    height: 100%;
    padding: 25px;
    border-radius: 8px;
}

.preview-thumbnail {
    box-sizing: border-box;

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

    width: 100%;
    height: 250px;
    overflow: hidden;

    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    overflow: hidden;
    border-radius: 8px;
}

.preview-thumbnail img {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    transform: scale(1.3);
    transition: ease-in-out .5s all;
}

.preview:hover .preview-thumbnail img:not(.preview-placeholder) {
    transform: scale(1.35);
    transition: ease-in-out .5s all;
}

.preview-thumbnail .preview-placeholder {
    width: 100%;
    height: auto;
    box-sizing: border-box;
    transform: scale(0.5);
    transition: ease-in-out .5s all;
}

.preview:hover .preview-thumbnail .preview-placeholder {
    transform: scale(0.55);
    transition: ease-in-out .5s all;
}

.preview-content {
    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: calc(100% - 250px);
}

.preview-title a {
    color: var(--color-alt-light);
    text-decoration: none;
}

.preview-text {
    text-align: justify;
    height: 100%;
}

.preview-row {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.preview-col {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% / 2);
}

.preview-col:first-child {
    align-items: flex-start;
}

.preview-col:last-child {
    align-items: flex-end;
}

.preview-readmore {
    background-color: var(--color-alt);
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 8px 13px;
    border-radius: 5px;
}



@media screen and (max-width: 640px) {
    .preview-thumbnail {
        height: 175px;
    }

    .preview-content {
        height: calc(100% - 175px);
    }
}

@media screen and (min-width: 641px) and (max-width: 1080px) {
    .preview-thumbnail {
        height: 215px;
    }

    .preview-wrapper {
        height: calc(100% - 215px);
    }
}