/* Event List Component Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide scrollbar for horizontal index */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Event Index Card Hover Effects */
.event-index-card {
    position: relative;
}

.event-index-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(244, 63, 94, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-index-card:hover::before {
    opacity: 1;
}

/* Card hover effects */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Floating navigation - responsive */
#floating-nav {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hide on mobile, show on tablet+ */
@media (max-width: 640px) {
    #floating-nav {
        right: 0.5rem;
    }
    #floating-nav button {
        padding: 0.5rem;
    }
    #floating-nav button span {
        display: none;
    }
}

/* Smooth opacity transitions */
#floating-nav button {
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#floating-nav button:hover {
    transform: translateX(-4px);
}

/* Sticky index positioning */
@media (max-width: 768px) {
    nav[aria-label="活动快速导航"] {
        position: relative;
        top: 0;
    }
}

/* 隶书 (Li Shu) Font Styling */
.font-lishu {
    font-family: 'Ma Shan Zheng', 'STLiti', 'LiSu', 'SimLi', 'FangSong', 'KaiTi', serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.5),
        0 0 12px rgba(0, 0, 0, 0.3);
}

/* Parallax Star Effect */
.parallax-star {
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 10;
    animation: parallaxFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.8)) drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    transform-origin: center center;
}

.parallax-star span {
    display: inline-block;
    animation: starShine 2s ease-in-out infinite;
}

@keyframes parallaxFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-2px, -3px) rotate(-2deg);
    }
    50% {
        transform: translate(2px, -4px) rotate(2deg);
    }
    75% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }
}

@keyframes starShine {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

/* Parallax effect on scroll */
@media (prefers-reduced-motion: no-preference) {
    .parallax-star {
        will-change: transform;
    }
}

/* Enhanced Admin Action Buttons */
.admin-action-btn {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-width: fit-content;
}

/* Ensure admin buttons container doesn't overflow */
.admin-action-btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 100%;
}

/* Responsive admin buttons - stack on very small screens */
@media (max-width: 480px) {
    .admin-action-btn-container {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
    }

    .admin-action-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .admin-action-btn span:not(:first-child) {
        display: none;
    }
}

.admin-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-action-btn:hover::before {
    opacity: 1;
}

.admin-action-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced Badge Styles */
.badge-modern {
    position: relative;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.badge-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-modern:hover::before {
    opacity: 1;
}

/* Featured badge with glow effect */
.badge-featured {
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% {
        box-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.8), 0 0 30px rgba(251, 191, 36, 0.4);
    }
}
