/* Core Wrapper */
.asp-wrapper {
    box-sizing: border-box;
    margin: 0 auto;
    font-family: inherit;
    position: relative;
}

.asp-item {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 16px;
}

.asp-date {
    font-size: 0.8em;
    opacity: 0.7;
    display: block;
    margin-bottom: 4px;
}

.asp-title {
    margin: 0 0 8px 0;
    font-size: 1.25em;
}

/* ==========================================
   RGB Animated "NEW" Badge
   ========================================== */
.asp-badge-new-rgb {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    padding: 3px 9px;
    border-radius: 20px;
    background: linear-gradient(60deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 300% 300%;
    animation: aspRGBFlow 3s ease infinite;
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.4);
    z-index: 2;
}

@keyframes aspRGBFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================
   Vertical Infinite Scroll (Down to Up)
   ========================================== */
.asp-type-vertical-scroll {
    height: var(--asp-frame-height, 350px);
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-sizing: border-box;
}

.asp-type-vertical-scroll .asp-vertical-track {
    display: flex;
    flex-direction: column;
    animation: aspScrollDownToUp 14s linear infinite;
}

.asp-type-vertical-scroll:hover .asp-vertical-track {
    animation-play-state: paused; /* Pause scrolling on mouse hover */
}

.asp-type-vertical-scroll .asp-item {
    flex-shrink: 0;
    margin-bottom: 12px;
}

@keyframes aspScrollDownToUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* ==========================================
   Horizontal Ticker Bar
   ========================================== */
.asp-type-ticker-bar { 
    overflow: hidden; 
    white-space: nowrap; 
}
.asp-type-ticker-bar .asp-ticker-track { 
    display: inline-flex; 
    gap: 40px; 
    animation: asp-marquee 18s linear infinite; 
}
.asp-type-ticker-bar:hover .asp-ticker-track {
    animation-play-state: paused;
}
.asp-type-ticker-bar .asp-item { 
    display: inline-block; 
    margin-bottom: 0; 
    padding: 6px 12px; 
}
@keyframes asp-marquee { 
    0% { transform: translateX(100%); } 
    100% { transform: translateX(-100%); } 
}

/* ==========================================
   Premade Themes
   ========================================== */
.asp-theme-minimal .asp-item { background: #f9f9fb; border: 1px solid #e2e4e8; color: #333; }
.asp-theme-corporate .asp-item { background: #ffffff; border-left: 4px solid #0066cc; box-shadow: 0 2px 10px rgba(0,102,204,0.08); color: #1a2b49; }
.asp-theme-dark .asp-item { background: #1f242d; border: 1px solid #2e3846; color: #e1e7ec; }
.asp-theme-dark .asp-title { color: #ffffff; }
.asp-theme-neon .asp-item { background: #0c0d14; border: 1px solid #00ffcc; box-shadow: 0 0 10px rgba(0,255,204,0.2); color: #c9fff7; }
.asp-theme-pastel .asp-item { background: #fef5ed; border: 1px solid #fbdac4; color: #5c4333; }

/* Remaining Layout Styles */
.asp-type-standard-card .asp-item { display: flex; gap: 16px; align-items: center; }
.asp-type-standard-card .asp-image-frame img { max-width: 120px; height: auto; border-radius: 6px; }
.asp-type-compact-list .asp-item { padding: 8px 12px; margin-bottom: 6px; border-bottom: 1px dashed #ccc; }
.asp-type-toast-popup { position: fixed; bottom: 20px; right: 20px; z-index: 9999; max-width: 320px; }
.asp-type-toast-popup .asp-item { box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.asp-type-grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.asp-type-featured-hero .asp-item:first-child { padding: 32px; font-size: 1.2em; border-width: 2px; }
.asp-type-timeline-feed { border-left: 2px solid #ccc; padding-left: 20px; }
.asp-type-timeline-feed .asp-item { position: relative; }
.asp-type-timeline-feed .asp-item::before { content: ""; position: absolute; left: -26px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: #0066cc; }
.asp-type-accordion .asp-body { display: none; }
.asp-type-accordion .asp-item.is-open .asp-body { display: block; }
.asp-type-accordion .asp-title { cursor: pointer; }
.asp-type-glassmorphism .asp-item { background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.3); }