@charset "UTF-8";

/*
|--------------------------------------------------------------------------
| Mar del Plata TV CMS
|--------------------------------------------------------------------------
| Vista previa completa de noticias
| Archivo:
| assets/css/editor-noticia/preview/full-preview.css
|--------------------------------------------------------------------------
*/

/* ==========================================================================
   Variables
   ========================================================================== */

:root {

    --mdptv-blue-dark: #003B7A;
    --mdptv-blue: #006FD6;
    --mdptv-blue-light: #5BBEFF;
    --mdptv-gray: #8F9AA8;

    --mdptv-background: #f5f7fb;
    --mdptv-surface: #ffffff;

    --mdptv-text: #20242a;
    --mdptv-text-light: #6d7784;

    --mdptv-border: #dbe4ee;

    --mdptv-radius: 12px;

    --mdptv-shadow:
        0 8px 28px rgba(0, 0, 0, .08);

}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {

    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;

}

body {

    margin: 0;

    background: var(--mdptv-background);

    color: var(--mdptv-text);

    font-family:
        "Montserrat",
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.7;

}

/* ==========================================================================
   Layout principal
   ========================================================================== */

.preview-page {

    width: min(100%, 1100px);

    margin: 40px auto;

    padding: 0 20px;

}

.preview-article {

    background: var(--mdptv-surface);

    border-radius: var(--mdptv-radius);

    box-shadow: var(--mdptv-shadow);

    overflow: hidden;

}

/* ==========================================================================
   Cabecera
   ========================================================================== */

.preview-header {

    padding: 40px;

    border-bottom: 1px solid var(--mdptv-border);

}

.preview-category {

    display: inline-block;

    padding: 8px 14px;

    border-radius: 999px;

    background: var(--mdptv-blue);

    color: #ffffff;

    font-size: .80rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .05em;

}

.preview-title {

    margin: 20px 0 12px;

    color: var(--mdptv-blue-dark);

    font-size: 2.4rem;

    font-weight: 800;

    line-height: 1.2;

}

.preview-subtitle {

    margin: 0;

    color: var(--mdptv-text-light);

    font-size: 1.15rem;

}

/* ==========================================================================
   Imagen de portada
   ========================================================================== */

/* ==========================================================================
   Información editorial
   ========================================================================== */

.preview-metadata {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 22px 0 28px;
    padding: 18px 0;
    border-top: 1px solid var(--mdptv-border);
    border-bottom: 1px solid var(--mdptv-border);
    color: var(--mdptv-text-light);
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 1.45;
}

.preview-metadata-author,
.preview-metadata-dates {
    display: flex;
    align-items: center;
}

.preview-metadata-author {
    gap: 12px;
    min-width: 0;
}

.preview-author-avatar {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--mdptv-blue-light);
    border-radius: 50%;
    color: #ffffff;
    background: var(--mdptv-blue-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.preview-author-name {
    color: var(--mdptv-text);
    font-weight: 600;
}

.preview-metadata-dates {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
}

.preview-publication-date,
.preview-update-date {
    color: inherit;
    font: inherit;
}

.preview-update-date {
    color: var(--mdptv-blue-dark);
    font-size: .88em;
    font-weight: 600;
}

.preview-cover {

    width: 100%;

    max-height: 620px;

    display: block;

    object-fit: cover;

}

/* ==========================================================================
   Contenido
   ========================================================================== */

.preview-content {

    padding: 40px;

    overflow: hidden;

}

.preview-content > *:first-child {

    margin-top: 0;

}

.preview-content > *:last-child {

    margin-bottom: 0;

}

/* ==========================================================================
   Imagen individual
   ========================================================================== */

.full-preview-single-image {

    width: 100%;

    margin: 32px 0;

}

.full-preview-single-image-element {

    width: 100%;

    max-width: 100%;

    max-height: 650px;

    display: block;

    border-radius: var(--mdptv-radius);

    object-fit: contain;

    background: #eef2f6;

}

.full-preview-media-caption {

    margin-top: 10px;

    color: var(--mdptv-text-light);

    font-size: .9rem;

    line-height: 1.5;

    text-align: center;

}

/* ==========================================================================
   Galería tipo carrusel
   ========================================================================== */

.full-preview-gallery-carousel {

    width: 100%;

    max-width: 100%;

    margin: 32px 0;

    overflow: hidden;

}

.full-preview-gallery-viewport {

    position: relative;

    width: 100%;

    min-height: 280px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius: var(--mdptv-radius);

    background: #eef2f6;

}

.full-preview-gallery-current-image {

    width: 100%;

    max-width: 100%;

    height: auto;

    max-height: 650px;

    display: block;

    object-fit: contain;

    margin: 0 auto;

}

/* ==========================================================================
   Flechas del carrusel
   ========================================================================== */

.full-preview-gallery-button {

    position: absolute;

    top: 50%;

    z-index: 5;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: rgba(0, 59, 122, .88);

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 38px;

    font-weight: 400;

    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, .25);

    transition:
        background-color .2s ease,
        transform .2s ease;

}

.full-preview-gallery-button:hover {

    background: var(--mdptv-blue);

    transform:
        translateY(-50%)
        scale(1.06);

}

.full-preview-gallery-button:focus-visible {

    outline:
        3px solid
        var(--mdptv-blue-light);

    outline-offset: 3px;

}

.full-preview-gallery-button-previous {

    left: 16px;

}

.full-preview-gallery-button-next {

    right: 16px;

}

/* ==========================================================================
   Contador
   ========================================================================== */

.full-preview-gallery-counter {

    position: absolute;

    right: 16px;

    bottom: 14px;

    z-index: 4;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 58px;

    min-height: 32px;

    padding: 5px 12px;

    border-radius: 999px;

    background: rgba(0, 0, 0, .68);

    color: #ffffff;

    font-size: .85rem;

    font-weight: 700;

    line-height: 1;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, .2);

}

/* ==========================================================================
   Puntos indicadores
   ========================================================================== */

.full-preview-gallery-dots {

    width: 100%;

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-top: 14px;

}

.full-preview-gallery-dot {

    width: 11px;

    height: 11px;

    flex: 0 0 11px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #c4ced9;

    cursor: pointer;

    transition:
        background-color .2s ease,
        transform .2s ease;

}

.full-preview-gallery-dot:hover {

    background: var(--mdptv-blue-light);

    transform: scale(1.15);

}

.full-preview-gallery-dot.is-active {

    background: var(--mdptv-blue);

    transform: scale(1.25);

}

.full-preview-gallery-dot:focus-visible {

    outline:
        3px solid
        rgba(0, 111, 214, .35);

    outline-offset: 3px;

}

/* ==========================================================================
   Mensajes
   ========================================================================== */

.full-preview-placeholder,
.full-preview-error {

    padding: 24px;

    border: 1px solid var(--mdptv-border);

    border-radius: var(--mdptv-radius);

    background: #f8fafc;

    color: var(--mdptv-text-light);

    text-align: center;

}

.full-preview-error {

    border-color: #efb4b4;

    background: #fff4f4;

    color: #a32020;

}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {

    .preview-page {

        margin: 20px auto;

        padding: 0 14px;

    }

    .preview-header {

        padding: 24px;

    }

    .preview-content {

        padding: 24px;

    }

    .preview-title {

        font-size: 1.9rem;

    }

    .full-preview-gallery-viewport {

        min-height: 220px;

    }

    .full-preview-gallery-current-image {

        max-height: 500px;

    }

    .full-preview-gallery-button {

        width: 42px;

        height: 42px;

        font-size: 32px;

    }

    .full-preview-gallery-button-previous {

        left: 10px;

    }

    .full-preview-gallery-button-next {

        right: 10px;

    }

    .full-preview-gallery-counter {

        right: 10px;

        bottom: 10px;

    }

}

@media (max-width: 480px) {

    .preview-page {

        margin: 0;

        padding: 0;

    }

    .preview-article {

        border-radius: 0;

    }

    .preview-header {

        padding: 22px 18px;

    }

    .preview-content {

        padding: 22px 18px;

    }

    .preview-title {

        font-size: 1.65rem;

    }

    .preview-subtitle {

        font-size: 1rem;

    }

    .full-preview-gallery-carousel {

        margin: 24px 0;

    }

    .full-preview-gallery-viewport {

        min-height: 190px;

        border-radius: 8px;

    }

    .full-preview-gallery-current-image {

        max-height: 420px;

    }

    .full-preview-gallery-button {

        width: 38px;

        height: 38px;

        font-size: 29px;

    }

    .full-preview-gallery-button-previous {

        left: 8px;

    }

    .full-preview-gallery-button-next {

        right: 8px;

    }

    .full-preview-gallery-counter {

        right: 8px;

        bottom: 8px;

        min-width: 52px;

        min-height: 29px;

        padding: 4px 10px;

        font-size: .78rem;

    }

    .full-preview-gallery-dot {

        width: 10px;

        height: 10px;

        flex-basis: 10px;

    }

}

/* ==========================================================================
   Pie individual de cada imagen de la galería
   ========================================================================== */

.full-preview-gallery-image-caption {
    width: 100%;

    margin: 12px 0 0;

    padding: 0 8px;

    color: #526477;

    font-size: .92rem;

    font-style: italic;

    line-height: 1.55;

    text-align: center;
}

.full-preview-gallery-image-caption[hidden] {
    display: none;
}

@media (max-width: 680px) {
    .preview-metadata {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
        margin: 18px 0 22px;
        padding: 15px 0;
    }

    .preview-author-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 10px;
    }

    .preview-metadata-dates {
        align-items: flex-start;
        padding-left: 54px;
        text-align: left;
    }
}
