/* ============================================================
   Magic Stones & Artifacts Catalog - Style Sheet
   ============================================================ */

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(30, 24, 51, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(167, 139, 250, 0.18);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: rgba(192, 132, 252, 0.45);
    box-shadow: 0 10px 30px -10px rgba(147, 51, 234, 0.25);
}

.glass-modal {
    background: rgba(18, 14, 34, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.glass-pill {
    background: rgba(45, 35, 75, 0.45);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.glass-pill.active {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.8), rgba(126, 34, 206, 0.9));
    border-color: rgba(216, 180, 254, 0.6);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
    color: #ffffff;
}

/* Celestial Floating Shapes */
@keyframes float-1 {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-40px) rotate(20deg) scale(1.06); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

@keyframes float-2 {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(35px) rotate(-35deg) scale(0.95); }
    100% { transform: translateY(0px) rotate(0deg) scale(1); }
}

@keyframes float-3 {
    0% { transform: translate(0px, 0px) rotate(0deg); }
    50% { transform: translate(25px, -25px) rotate(80deg); }
    100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes float-4 {
    0% { transform: translate(0px, 0px) rotate(10deg) scale(0.96); }
    50% { transform: translate(-20px, 20px) rotate(-10deg) scale(1.04); }
    100% { transform: translate(0px, 0px) rotate(10deg) scale(0.96); }
}

.anim-shape-1 { animation: float-1 22s infinite ease-in-out; }
.anim-shape-2 { animation: float-2 26s infinite ease-in-out; }
.anim-shape-3 { animation: float-3 18s infinite ease-in-out; }
.anim-shape-4 { animation: float-4 20s infinite ease-in-out; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0a1a;
}
::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.35);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
}

/* Card Slider */
.card-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(13, 10, 26, 0.6);
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-slider:hover .slider-img {
    transform: scale(1.04);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(13, 10, 26, 0.75);
    border: 1px solid rgba(167, 139, 250, 0.3);
    color: #e9d5ff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.25s ease;
    cursor: pointer;
    z-index: 10;
}

.card-slider:hover .slider-nav-btn,
.slider-nav-btn:focus {
    opacity: 0.9;
}

.slider-nav-btn:hover {
    opacity: 1;
    background: rgba(88, 28, 135, 0.9);
    border-color: rgba(216, 180, 254, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.prev {
    left: 8px;
}

.slider-nav-btn.next {
    right: 8px;
}

/* Dots Indicator */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
    padding: 3px 8px;
    border-radius: 9999px;
    background: rgba(13, 10, 26, 0.65);
    backdrop-filter: blur(8px);
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(216, 180, 254, 0.35);
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-dot.active {
    width: 14px;
    border-radius: 9999px;
    background: #c084fc;
    box-shadow: 0 0 6px #c084fc;
}

/* Lore Description Clamping & Expansion */
.lore-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.lore-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

/* Subtle Shimmer for highlighted item */
@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7); border-color: rgba(192, 132, 252, 0.9); }
    70% { box-shadow: 0 0 0 15px rgba(168, 85, 247, 0); border-color: rgba(167, 139, 250, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); border-color: rgba(167, 139, 250, 0.18); }
}

.item-highlighted {
    animation: highlight-pulse 2.5s infinite;
}

/* MAX Messenger Social Link & Header Button */
.max-messenger-btn {
    background: rgba(35, 27, 58, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(167, 139, 250, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.max-messenger-btn:hover {
    background: rgba(55, 42, 90, 0.85);
    border-color: rgba(216, 180, 254, 0.6);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
    transform: translateY(-1px);
}

