/**
 * Lista Recurring Events - Offcanvas Styles
 *
 * Accessible slide-in panel for event details.
 *
 * @package Listapage\RecurringEvents
 */

/* Shared Variables - these are set by inline CSS from CalendarThemes */
:root {
    /* Fallback values only - actual values come from inline CSS */
    --lre-panel-bg: var(--lre-offcanvas-bg, #ffffff);
    --lre-panel-text: var(--lre-offcanvas-text, #333333);
    --lre-panel-accent: var(--lre-primary-color, #3788d8);
    --lre-panel-width: 400px;
    --lre-panel-radius: 0;
    --lre-panel-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    --lre-btn-border-radius: 8px;
    
    /* Animation timing - PowerInOut-like bezier curve */
    --lre-ease-power: cubic-bezier(0.65, 0, 0.35, 1);
    --lre-ease-power-out: cubic-bezier(0.33, 1, 0.68, 1);
    --lre-ease-power-in: cubic-bezier(0.32, 0, 0.67, 0);
    
    /* Smooth elastic feel */
    --lre-ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    
    /* Animation durations */
    --lre-duration-panel: 450ms;
    --lre-duration-backdrop: 350ms;
    --lre-duration-content: 400ms;
    --lre-stagger-delay: 60ms;
}

/* Body Lock */
body.lre-offcanvas-open {
    overflow: hidden;
}

/* ============================================
   OFFCANVAS PANEL
   ============================================ */

/* Backdrop */
.lre-offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: 
        opacity var(--lre-duration-backdrop) var(--lre-ease-power-out),
        visibility var(--lre-duration-backdrop) var(--lre-ease-power-out),
        background var(--lre-duration-backdrop) var(--lre-ease-power-out),
        backdrop-filter var(--lre-duration-backdrop) var(--lre-ease-power-out);
    z-index: 99998;
}

.lre-offcanvas-backdrop.lre-visible {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Offcanvas Container */
.lre-offcanvas {
    position: fixed;
    top: 0;
    bottom: 0;
    width: var(--lre-panel-width, 400px);
    max-width: 100%;
    background: var(--lre-panel-bg);
    border-radius: var(--lre-panel-radius, 0);
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transition: 
        opacity var(--lre-duration-panel) var(--lre-ease-smooth),
        visibility var(--lre-duration-panel) var(--lre-ease-smooth),
        transform var(--lre-duration-panel) var(--lre-ease-smooth),
        box-shadow var(--lre-duration-panel) var(--lre-ease-smooth);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

.lre-offcanvas.lre-visible {
    opacity: 1;
    visibility: visible;
    box-shadow: var(--lre-panel-shadow);
}

/* Right Position */
.lre-offcanvas.lre-offcanvas-right {
    right: 0;
    transform: translateX(100%);
}

.lre-offcanvas.lre-offcanvas-right.lre-visible {
    transform: translateX(0);
}

/* Left Position */
.lre-offcanvas.lre-offcanvas-left {
    left: 0;
    transform: translateX(-100%);
}

.lre-offcanvas.lre-offcanvas-left.lre-visible {
    transform: translateX(0);
}

/* Body - now handles everything including image */
.lre-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    position: relative;
}

/* Close Button - absolutely positioned over image */
.lre-offcanvas-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 
        background 0.2s var(--lre-ease-power),
        transform 0.2s var(--lre-ease-power);
    color: #ffffff;
}

.lre-offcanvas-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.05);
}

.lre-offcanvas-close:active {
    transform: scale(0.95);
}

.lre-offcanvas-close svg {
    width: 22px;
    height: 22px;
}

/* Loading */
.lre-offcanvas-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--lre-panel-text);
    opacity: 0.7;
}

/* Error */
.lre-offcanvas-error {
    padding: 40px 20px;
    text-align: center;
    color: #dc3545;
}

/* ============================================
   CONTENT ANIMATIONS - FadeInUp
   ============================================ */

/* Keyframe animation for fade in up */
@keyframes lreFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base state for animatable items - hidden until animation triggers */
.lre-animate-item {
    opacity: 0;
    transform: translateY(24px);
}

/* Animated state - uses keyframe animation */
.lre-animate-item.lre-animate-in {
    animation-name: lreFadeInUp;
    animation-duration: 400ms;
    animation-duration: var(--lre-duration-content, 400ms);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-timing-function: var(--lre-ease-smooth, cubic-bezier(0.22, 1, 0.36, 1));
    animation-fill-mode: forwards;
    animation-delay: calc(var(--animation-order, 0) * 60ms);
    animation-delay: calc(var(--animation-order, 0) * var(--lre-stagger-delay, 60ms));
}

/* ============================================
   IMAGE (No animation - appears immediately)
   ============================================ */

.lre-offcanvas-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border-radius: 0;
}

.lre-offcanvas-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lre-offcanvas-image img.loaded,
.lre-offcanvas-image img[src] {
    opacity: 1;
}

/* Title */
.lre-offcanvas-title {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--lre-panel-text);
    margin: 0;
    padding: 25px 25px 15px;
}

/* Date */
.lre-offcanvas-date {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 25px 10px;
    color: var(--lre-panel-text);
    font-weight: 500;
    font-size: 1.05em;
}

/* When date is followed by time, reduce gap */
.lre-offcanvas-date + .lre-offcanvas-time {
    padding-top: 0;
    line-height: 1;
}

.lre-offcanvas-date svg,
.lre-offcanvas-date .lre-offcanvas-icon {
    flex-shrink: 0;
}

/* Time */
.lre-offcanvas-time {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 25px 15px;
    color: var(--lre-panel-text);
    font-weight: 500;
    font-size: 1.05em;
}

.lre-offcanvas-time svg,
.lre-offcanvas-time .lre-offcanvas-icon {
    flex-shrink: 0;
}

/* Custom Icons */
.lre-offcanvas-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.lre-offcanvas-icon img.lre-custom-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Custom Fields */
.lre-offcanvas-custom-fields {
    padding: 0 25px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.lre-offcanvas-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.lre-offcanvas-field:last-child {
    margin-bottom: 0;
}

.lre-offcanvas-field .lre-offcanvas-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.lre-offcanvas-field-label {
    font-weight: 600;
    font-size: 0.9em;
    color: var(--lre-panel-text);
    opacity: 0.7;
    white-space: nowrap;
}

.lre-offcanvas-field-value {
    color: var(--lre-panel-text);
    font-size: 1em;
}

/* Excerpt */
.lre-offcanvas-excerpt {
    padding: 20px 25px;
    color: var(--lre-panel-text);
    line-height: 1.7;
    font-size: 1em;
}

/* Reschedule Note */
.lre-offcanvas-reschedule-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 25px 15px;
    padding: 12px 16px;
    background: #dbeafe;
    border-radius: var(--lre-btn-border-radius, 8px);
    color: #1e40af;
    font-size: 0.9em;
    line-height: 1.5;
}

.lre-offcanvas-reschedule-note .lre-offcanvas-icon {
    flex-shrink: 0;
    color: #3b82f6;
    margin-top: 2px;
}

.lre-offcanvas-reschedule-note svg {
    width: 16px;
    height: 16px;
}

/* Button */
/* ============================================
   ACTION BUTTONS (View Event + Save Event)
   ============================================ */

.lre-offcanvas-actions {
    margin: 20px 25px 25px;
    position: relative;
}

.lre-offcanvas-actions-row {
    display: flex;
    gap: 10px;
}

.lre-offcanvas-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    text-decoration: none;
    border-radius: var(--lre-btn-border-radius, 8px);
    font-weight: 600;
    transition: 
        background 0.25s var(--lre-ease-power),
        border-color 0.25s var(--lre-ease-power),
        transform 0.2s var(--lre-ease-power),
        box-shadow 0.25s var(--lre-ease-power);
    box-sizing: border-box;
    cursor: pointer;
    border: none;
    line-height: 1.3;
}

/* Custom button classes mode - disable LRE styles when active */
.lre-offcanvas-button.lre-btn-custom {
    all: unset;
    display: inline-flex;
    cursor: pointer;
    box-sizing: border-box;
}

/* Buttons inside action row should stretch to fill space */
.lre-offcanvas-actions-row .lre-offcanvas-button {
    flex: 1;
}

/* Button Size Variants */
.lre-offcanvas-button.lre-btn-small {
    padding: 10px 14px;
    font-size: 0.85em;
}

.lre-offcanvas-button.lre-btn-medium {
    padding: 14px 18px;
    font-size: 0.95em;
}

.lre-offcanvas-button.lre-btn-large {
    padding: 16px 22px;
    font-size: 1.05em;
}

/* Default to medium if no size class */
.lre-offcanvas-button:not(.lre-btn-small):not(.lre-btn-medium):not(.lre-btn-large) {
    padding: 14px 18px;
    font-size: 0.95em;
}

/* Primary button (View Event) - filled */
.lre-offcanvas-button-primary {
    background: var(--lre-panel-accent);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.lre-offcanvas-button-primary:hover {
    background: var(--lre-primary-hover, #2c6cb5);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.lre-offcanvas-button-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Secondary button (Save Event) - outlined */
.lre-offcanvas-button-secondary {
    background: var(--lre-panel-bg, #ffffff);
    color: var(--lre-panel-accent) !important;
    border: 2px solid var(--lre-panel-accent);
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.lre-offcanvas-button-secondary:hover {
    background: var(--lre-panel-accent);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.lre-offcanvas-button-secondary:hover .lre-btn-icon-wrap {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.lre-offcanvas-button-secondary:active {
    transform: scale(0.98);
}

/* Segmented button structure */
.lre-btn-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lre-offcanvas-button-primary .lre-btn-icon-wrap {
    background: rgba(0, 0, 0, 0.12);
    border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.lre-offcanvas-button-secondary .lre-btn-icon-wrap {
    background: rgba(0, 0, 0, 0.04);
    border-right: 1px solid var(--lre-panel-accent);
    border-right-opacity: 0.3;
}

.lre-btn-text-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 6px;
}

/* Size-specific segmented button padding */
.lre-offcanvas-button.lre-btn-small .lre-btn-icon-wrap {
    padding: 10px 12px;
}
.lre-offcanvas-button.lre-btn-small .lre-btn-text-wrap {
    padding: 10px 12px 10px 10px;
}

.lre-offcanvas-button.lre-btn-medium .lre-btn-icon-wrap {
    padding: 14px 16px;
}
.lre-offcanvas-button.lre-btn-medium .lre-btn-text-wrap {
    padding: 14px 18px;
}

.lre-offcanvas-button.lre-btn-large .lre-btn-icon-wrap {
    padding: 16px 18px;
}
.lre-offcanvas-button.lre-btn-large .lre-btn-text-wrap {
    padding: 16px 22px;
}

/* Default size (medium) for buttons without size class */
.lre-offcanvas-button:not(.lre-btn-small):not(.lre-btn-medium):not(.lre-btn-large) .lre-btn-icon-wrap {
    padding: 14px 16px;
}
.lre-offcanvas-button:not(.lre-btn-small):not(.lre-btn-medium):not(.lre-btn-large) .lre-btn-text-wrap {
    padding: 14px 18px;
}

/* Button icons - consistent sizing */
.lre-btn-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.lre-btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lre-offcanvas-button img.lre-btn-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Size-specific icon adjustments */
.lre-offcanvas-button.lre-btn-small .lre-btn-icon-wrap .lre-btn-icon {
    width: 16px;
    height: 16px;
}

.lre-offcanvas-button.lre-btn-large .lre-btn-icon-wrap .lre-btn-icon {
    width: 20px;
    height: 20px;
}

/* Dropdown - appears below both buttons */
.lre-offcanvas-actions .lre-atc-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--lre-panel-bg, #ffffff);
    border: 1px solid var(--lre-panel-border, rgba(0, 0, 0, 0.1));
    border-radius: var(--lre-btn-border-radius, 8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    overflow: hidden;
}

.lre-offcanvas-actions.is-open .lre-atc-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lre-offcanvas-actions .lre-atc-dropdown[aria-hidden="true"] {
    display: none;
}

.lre-offcanvas-actions .lre-atc-dropdown[aria-hidden="false"] {
    display: block;
}

/* Calendar option items */
.lre-offcanvas-actions .lre-atc-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--lre-panel-text, #1e293b);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.lre-offcanvas-actions .lre-atc-option:hover {
    background: var(--lre-panel-hover-bg, rgba(0, 0, 0, 0.04));
}

.lre-offcanvas-actions .lre-atc-option:not(:last-child) {
    border-bottom: 1px solid var(--lre-panel-border, rgba(0, 0, 0, 0.06));
}

.lre-offcanvas-actions .lre-atc-option-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.lre-offcanvas-actions .lre-atc-option-icon svg {
    width: 100%;
    height: 100%;
}

/* Treeview for recurring events series download */
.lre-offcanvas-actions .lre-atc-treeview {
    position: relative;
}

.lre-offcanvas-actions .lre-atc-treeview:not(:last-child) {
    border-bottom: 1px solid var(--lre-panel-border, rgba(0, 0, 0, 0.06));
}

.lre-offcanvas-actions .lre-atc-treeview-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--lre-panel-text, #1e293b);
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.lre-offcanvas-actions .lre-atc-treeview-toggle:hover {
    background: var(--lre-panel-hover-bg, rgba(0, 0, 0, 0.04));
}

.lre-offcanvas-actions .lre-atc-treeview-toggle .lre-atc-option-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.lre-offcanvas-actions .lre-atc-treeview-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lre-offcanvas-actions .lre-atc-treeview-arrow .lre-treeview-arrow-icon {
    width: 12px;
    height: 12px;
}

.lre-offcanvas-actions .lre-atc-treeview.is-expanded .lre-atc-treeview-arrow {
    transform: rotate(90deg);
}

.lre-offcanvas-actions .lre-atc-treeview-children {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
    background: var(--lre-panel-hover-bg, rgba(0, 0, 0, 0.02));
}

.lre-offcanvas-actions .lre-atc-treeview-children[aria-hidden="false"] {
    max-height: 200px;
}

.lre-offcanvas-actions .lre-atc-treeview-child {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px 10px 28px;
    background: transparent;
    border: none;
    color: var(--lre-panel-text, #1e293b);
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.lre-offcanvas-actions .lre-atc-treeview-child:hover {
    background: var(--lre-panel-hover-bg, rgba(0, 0, 0, 0.06));
}

.lre-offcanvas-actions .lre-atc-treeview-child:not(:last-child) {
    border-bottom: 1px solid var(--lre-panel-border, rgba(0, 0, 0, 0.04));
}

.lre-offcanvas-actions .lre-atc-treeview-branch {
    color: var(--lre-muted-text, #94a3b8);
    font-family: monospace;
    font-size: 0.9em;
    line-height: 1;
}

/* Standalone button (when Save Event not enabled) */
.lre-offcanvas-button:not(.lre-offcanvas-button-primary):not(.lre-offcanvas-button-secondary) {
    display: inline-flex;
    align-items: stretch;
    background: var(--lre-panel-accent);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0 !important;
    overflow: hidden;
}

.lre-offcanvas-button:not(.lre-offcanvas-button-primary):not(.lre-offcanvas-button-secondary) .lre-btn-icon-wrap {
    background: rgba(0, 0, 0, 0.12);
    border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.lre-offcanvas-button:not(.lre-offcanvas-button-primary):not(.lre-offcanvas-button-secondary):hover {
    background: var(--lre-primary-hover, #2c6cb5);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.lre-offcanvas-button:not(.lre-offcanvas-button-primary):not(.lre-offcanvas-button-secondary):active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .lre-offcanvas {
        width: 100% !important;
    }

    .lre-offcanvas-image {
        height: 200px;
    }

    .lre-offcanvas-title {
        font-size: 1.4em;
        padding: 20px 20px 10px;
    }

    .lre-offcanvas-date,
    .lre-offcanvas-time,
    .lre-offcanvas-custom-fields,
    .lre-offcanvas-excerpt {
        padding-left: 20px;
        padding-right: 20px;
    }

    .lre-offcanvas-actions {
        margin: 15px 20px 20px;
    }

    .lre-offcanvas-actions-row {
        flex-direction: column;
        gap: 8px;
    }

    /* Mobile: slightly smaller padding in segmented areas */
    .lre-offcanvas-button.lre-btn-small .lre-btn-icon-wrap {
        padding: 8px 10px;
    }
    .lre-offcanvas-button.lre-btn-small .lre-btn-text-wrap {
        padding: 8px 12px 8px 8px;
    }
    .lre-offcanvas-button.lre-btn-small {
        font-size: 0.8em;
    }

    .lre-offcanvas-button.lre-btn-medium .lre-btn-icon-wrap {
        padding: 12px 14px;
    }
    .lre-offcanvas-button.lre-btn-medium .lre-btn-text-wrap {
        padding: 12px 16px;
    }
    .lre-offcanvas-button.lre-btn-medium {
        font-size: 0.9em;
    }

    .lre-offcanvas-button.lre-btn-large .lre-btn-icon-wrap {
        padding: 14px 16px;
    }
    .lre-offcanvas-button.lre-btn-large .lre-btn-text-wrap {
        padding: 14px 20px;
    }
    .lre-offcanvas-button.lre-btn-large {
        font-size: 1em;
    }

    .lre-offcanvas-button:not(.lre-btn-small):not(.lre-btn-medium):not(.lre-btn-large) .lre-btn-icon-wrap {
        padding: 12px 14px;
    }
    .lre-offcanvas-button:not(.lre-btn-small):not(.lre-btn-medium):not(.lre-btn-large) .lre-btn-text-wrap {
        padding: 12px 16px;
    }
    .lre-offcanvas-button:not(.lre-btn-small):not(.lre-btn-medium):not(.lre-btn-large) {
        font-size: 0.9em;
    }

    .lre-offcanvas-button:not(.lre-offcanvas-button-primary):not(.lre-offcanvas-button-secondary) {
        margin: 15px 20px 20px;
    }
}

/* ============================================
   SKELETON LOADING
   ============================================ */

.lre-offcanvas-skeleton {
    padding: 0;
}

.lre-skeleton-pulse {
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.06) 25%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.06) 75%
    );
    background-size: 200% 100%;
    animation: lre-skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes lre-skeleton-pulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.lre-skeleton-image {
    width: 100%;
    height: 200px;
    border-radius: 0;
    margin-bottom: 20px;
}

.lre-skeleton-title {
    height: 28px;
    width: 75%;
    margin: 0 25px 16px;
}

.lre-skeleton-date {
    height: 20px;
    width: 60%;
    margin: 0 25px 12px;
}

.lre-skeleton-time {
    height: 20px;
    width: 40%;
    margin: 0 25px 16px;
}

.lre-skeleton-text {
    height: 16px;
    width: 90%;
    margin: 0 25px 10px;
}

.lre-skeleton-text:last-of-type {
    margin-bottom: 20px;
}

.lre-skeleton-button {
    height: 44px;
    width: calc(100% - 50px);
    margin: 0 25px;
    border-radius: var(--lre-btn-border-radius, 8px);
}

/* Dark mode skeleton */
@media (prefers-color-scheme: dark) {
    .lre-skeleton-pulse {
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.06) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.06) 75%
        );
        background-size: 200% 100%;
    }
}

/* Reduced motion - static skeleton */
@media (prefers-reduced-motion: reduce) {
    .lre-skeleton-pulse {
        animation: none;
        background: rgba(0, 0, 0, 0.08);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus styles */
.lre-offcanvas-close:focus,
.lre-offcanvas-button:focus {
    outline: 2px solid var(--lre-panel-accent);
    outline-offset: 2px;
}

/* Reduced motion - disable all animations */
@media (prefers-reduced-motion: reduce) {
    :root {
        --lre-duration-panel: 0ms;
        --lre-duration-backdrop: 0ms;
        --lre-duration-content: 0ms;
        --lre-stagger-delay: 0ms;
    }
    
    .lre-offcanvas,
    .lre-offcanvas-backdrop,
    .lre-offcanvas-button,
    .lre-offcanvas-close {
        transition: none !important;
    }
    
    .lre-animate-item {
        opacity: 1 !important;
        animation: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .lre-offcanvas {
        border: 2px solid var(--lre-panel-text);
    }

    .lre-offcanvas-button {
        border: 2px solid currentColor;
    }
}

/* ============================================
   PRINT
   ============================================ */

@media print {
    .lre-offcanvas-backdrop,
    .lre-offcanvas {
        display: none !important;
    }
}
