/* Luminous Flare Links - CSS Animations */
/* Full Version - RESTORED ICONS & COLORS - RAH EDIT 2.23 */

.luminous-flare-links-container {
    position: relative;
    width: 100%;
    max-width: 512px;
    margin: 0 auto;
    padding: 0;
}

.flare-links-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform-style: preserve-3d;
}

/* Flare Link Card - Base styles */
.flare-link-card {
    position: relative;
    display: block;
    text-decoration: none;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.flare-card-inner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid rgba(224, 75, 134, 0.4);
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(224, 75, 134, 0.2);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.5s ease, box-shadow 0.5s ease;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ACTIVE & HOVER STATES - RESTORED COLORS */
.flare-link-card.active .flare-card-inner,
.flare-link-card:hover .flare-card-inner {
    border-color: #E04B86;
    box-shadow: 0 0 30px rgba(224, 75, 134, 0.6), 0 12px 40px rgba(224, 75, 134, 0.4);
    transform: scale(1.05) translateZ(0);
}

.flare-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(224, 75, 134, 0.2), rgba(243, 158, 199, 0.3), rgba(224, 75, 134, 0.2));
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.flare-link-card.active .flare-card-bg,
.flare-link-card:hover .flare-card-bg { opacity: 1; }

.flare-card-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    z-index: 2;
}

.flare-card-title {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #f4f4f4;
    margin: 0 0 4px 0;
    transition: color 0.3s ease;
}

.flare-link-card.active .flare-card-title,
.flare-link-card:hover .flare-card-title { color: #F39EC7; }

/* ICONS - RESTORED STRUCTURE */
.flare-card-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
}

/* Star Icon */
.icon-star-wrapper { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.icon-star-border {
    position: absolute;
    inset: 0;
    border: 2px solid #E04B86;
    border-radius: 12px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: flareGlow 2s ease-in-out infinite;
}
.icon-star {
    width: 24px;
    height: 24px;
    background: linear-gradient(to bottom right, #E04B86, #F39EC7);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Bars Icon */
.icon-bars-wrapper { display: flex; gap: 4px; align-items: flex-end; height: 32px; }
.icon-bar { width: 4px; background: linear-gradient(to top, #E04B86, #F39EC7); border-radius: 2px; animation: flareGlow 2s ease-in-out infinite; }
.icon-bar-1 { height: 60%; }
.icon-bar-2 { height: 100%; animation-delay: 0.3s; }
.icon-bar-3 { height: 75%; animation-delay: 0.6s; }

/* Publications Icon */
.icon-publications-wrapper { position: relative; height: 40px; width: 32px; }
.icon-page { position: absolute; background: linear-gradient(to bottom right, #E04B86, #F39EC7); border-radius: 2px; border: 1px solid #E04B86; width: 100%; height: 100%; }
.icon-page-front { top: 0; left: 0; z-index: 3; }
.icon-page-back-1 { top: -4px; left: 4px; z-index: 2; opacity: 0.7; }
.icon-page-back-2 { top: -8px; left: 8px; z-index: 1; opacity: 0.4; }

/* KEYFRAMES - RAH EDIT 2.23 */
@keyframes flareFloat1 { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -8px, 0); } }
@keyframes flareFloat2 { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
@keyframes flareFloat3 { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -6px, 0); } }

@keyframes flareLateral1 { 0%, 100% { transform: translate3d(0, 0, 0); } 33% { transform: translate3d(-15px, 0, 0); } 66% { transform: translate3d(8px, 0, 0); } }
@keyframes flareLateral2 { 0%, 100% { transform: translate3d(0, 0, 0); } 33% { transform: translate3d(12px, 0, 0); } 66% { transform: translate3d(-18px, 0, 0); } }
@keyframes flareLateral3 { 0%, 100% { transform: translate3d(0, 0, 0); } 33% { transform: translate3d(-10px, 0, 0); } 66% { transform: translate3d(15px, 0, 0); } }

@keyframes flareGlow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.4) drop-shadow(0 0 5px #E04B86); } }

/* Legacy support for first 3 cards */
.flare-card-0 { width: 90%; animation: flareFloat1 4s ease-in-out infinite, flareLateral1 6s ease-in-out infinite; }
.flare-card-1 { width: 100%; animation: flareFloat2 4s ease-in-out infinite, flareLateral2 6s ease-in-out infinite; animation-delay: 0.3s; }
.flare-card-2 { width: 85%; animation: flareFloat3 4s ease-in-out infinite, flareLateral3 6s ease-in-out infinite; animation-delay: 0.6s; }

@media (max-width: 768px) { .flare-card-0, .flare-card-1, .flare-card-2 { width: 100% !important; } }