/* ═══════════════════════════════════════
   Logchies Referenties – WordPress Plugin
   ═══════════════════════════════════════ */

:root {
    --lr-primary: #E70033;
    --lr-primary-hover: #C4002A;
    --lr-text: #1a1a1a;
    --lr-text-muted: #6b7280;
    --lr-bg-muted: #f3f4f6;
    --lr-border: #e5e7eb;
    --lr-radius: 0.75rem;
    --lr-radius-bl: 2.5rem;
}

/* ── Breadcrumb ── */

.lr-breadcrumb {
    padding: 1rem 0 .5rem;
}
.lr-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .375rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .875rem;
    color: var(--lr-text-muted);
}
.lr-breadcrumb a {
    color: var(--lr-text-muted);
    text-decoration: none;
    transition: color .2s;
}
.lr-breadcrumb a:hover {
    color: var(--lr-text);
}
.lr-breadcrumb__sep {
    display: flex;
    align-items: center;
    color: var(--lr-text-muted);
}
.lr-breadcrumb__sep svg {
    width: .875rem;
    height: .875rem;
}
.lr-breadcrumb__current {
    color: var(--lr-text);
    font-weight: 400;
}

/* ── Overview Grid ── */

.lr-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.lr-card {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border-bottom-left-radius: var(--lr-radius-bl);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.05);
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow .3s, transform .3s;
}
.lr-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05);
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}

.lr-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.lr-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.lr-card:hover .lr-card__image img {
    transform: scale(1.05);
}
.lr-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--lr-primary);
    color: rgba(255,255,255,.4);
}

.lr-card__content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.lr-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--lr-primary);
    margin: 0 0 .75rem;
    line-height: 1.3;
}
.lr-card__meta {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: .875rem;
    color: var(--lr-text-muted);
}
.lr-card__meta-item {
    display: flex;
    align-items: center;
    gap: .375rem;
}
.lr-card__footer {
    margin-top: auto;
    padding-top: 1rem;
}
.lr-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lr-primary);
    color: #fff;
    padding: .625rem 1.5rem;
    border-radius: 9999px;
    font-size: .875rem;
    font-weight: 600;
    transition: transform .2s;
}
.lr-card:hover .lr-card__btn {
    transform: scale(1.05);
}

/* ── Detail Page ── */

.lr-detail {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
}

/* Slider */
.lr-slider {
    margin-bottom: 2rem;
}
.lr-slider__container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.lr-slider__main {
    position: relative;
    width: 60%;
    aspect-ratio: 4/3;
    border-bottom-left-radius: var(--lr-radius-bl);
    overflow: hidden;
    background: var(--lr-bg-muted);
}
.lr-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .5s;
}
.lr-slider__slide--active {
    opacity: 1;
}
.lr-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lr-slider__arrow {
    position: absolute;
    bottom: 1rem;
    z-index: 20;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--lr-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    transition: background .2s;
}
.lr-slider__arrow:hover {
    background: var(--lr-primary-hover);
}
.lr-slider__arrow--prev { left: .75rem; }
.lr-slider__arrow--next { right: .75rem; }

.lr-slider__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0,0,0,.1);
}
.lr-slider__progress-bar {
    height: 100%;
    background: var(--lr-primary);
    animation: lr-progress linear infinite;
    width: 100%;
    transform-origin: left;
}
@keyframes lr-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Caption */
.lr-caption {
    display: none;
    background: #22AC78;
    color: #fff;
    border-radius: 0;
    border-bottom-left-radius: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    margin-left: -5%;
    z-index: 10;
    align-self: stretch;
}
.lr-caption--active {
    display: flex;
    align-items: flex-start;
}
.lr-caption__content {
    font-size: .9375rem;
    line-height: 1.7;
    color: rgba(255,255,255,.9);
}
.lr-caption__content h2,
.lr-caption__content h3,
.lr-caption__content h4 {
    color: #fff;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: .5rem;
}
.lr-caption__content strong {
    color: #fff;
}
.lr-caption__content a {
    color: #fff;
    text-decoration: underline;
}
.lr-caption__content ul,
.lr-caption__content ol {
    padding-left: 1.5rem;
    margin: .75rem 0;
}
.lr-caption__content p {
    margin-bottom: .75rem;
}

/* Thumbnails */
.lr-thumbs {
    display: flex;
    gap: .5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: .5rem;
}
.lr-thumbs__item {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 0;
    border-bottom-left-radius: .5rem;
    overflow: hidden;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s, border-color .2s;
    padding: 0;
    background: none;
}
.lr-thumbs__item--active {
    border-color: var(--lr-primary);
    opacity: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.lr-thumbs__item:hover {
    opacity: 1;
}
.lr-thumbs__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content + Sidebar */
.lr-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
}
.lr-content__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lr-primary);
    line-height: 1.2;
    margin: 0 0 2rem;
}
.lr-content__description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--lr-text-muted);
}
.lr-content__description h2 { font-size: 1.375rem; font-weight: 700; color: var(--lr-primary); margin: 1.5rem 0 .75rem; }
.lr-content__description h3 { font-size: 1.25rem; font-weight: 700; color: var(--lr-primary); margin: 1.25rem 0 .5rem; }
.lr-content__description h4 { font-size: 1.125rem; font-weight: 600; color: var(--lr-text); margin: 1rem 0 .5rem; }
.lr-content__description ul,
.lr-content__description ol { padding-left: 1.5rem; margin: 1rem 0; }
.lr-content__description li { margin: .25rem 0; }
.lr-content__description a { color: var(--lr-primary); text-decoration: underline; }
.lr-content__description p { margin-bottom: 1rem; }

/* Sidebar */
.lr-sidebar {
    position: sticky;
    top: 6rem;
    background: #FCE3D7;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    align-self: start;
}
.lr-sidebar__item {
    padding: 1rem 0;
}
.lr-sidebar__item--border {
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.lr-sidebar__label {
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #E70033;
    margin: 0 0 .25rem;
}
.lr-sidebar__value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--lr-text);
    margin: 0;
}

/* Detail Navigation */
.lr-detail-nav {
    background: #22AC78;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    margin-bottom: 2rem;
}
.lr-detail-nav__back {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: opacity .2s;
}
.lr-detail-nav__back:hover {
    opacity: .8;
    color: #fff;
    text-decoration: none;
}
.lr-detail-nav__arrows {
    display: flex;
    gap: .5rem;
}
.lr-detail-nav__arrow {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #fff;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    padding: .375rem .75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,.3);
    transition: border-color .2s, opacity .2s;
}
.lr-detail-nav__arrow:hover {
    border-color: rgba(255,255,255,.6);
    opacity: .9;
    color: #fff;
    text-decoration: none;
}

.lr-empty {
    text-align: center;
    color: var(--lr-text-muted);
    padding: 5rem 0;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .lr-grid {
        grid-template-columns: 1fr;
    }
    .lr-slider__main {
        width: 100%;
    }
    .lr-caption {
        width: 100% !important;
        margin-left: 0;
    }
    .lr-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }
    .lr-content__title {
        font-size: 1.75rem;
    }
    .lr-thumbs__item {
        width: 80px;
        height: 56px;
    }
}
