/* FrameForge UI Enhancements */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgb(255 255 255 / 40%);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

.ripple {
    position: relative;
    overflow: hidden;
}

.tooltip-popup {
    position: absolute;
    background-color: var(--surface);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgb(0 0 0 / 50%);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
    white-space: nowrap;
}

.tooltip-popup.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-overlay.active > *:first-child {
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.animate-slide-up {
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-slide-up.animated {
    transform: translateY(0);
    opacity: 1;
}

.notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.notification {
    background: var(--surface);
    color: var(--text-primary);
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgb(0 0 0 / 30%);
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    width: 300px;
}

.notification.visible {
    opacity: 1;
    transform: translateX(0);
}
.notification.success .notification-icon { color: var(--success); }
.notification.error .notification-icon { color: var(--error); }
.notification-title { font-weight: bold; margin-bottom: 4px; }
.notification-message { font-size: 0.9em; color: var(--text-secondary); }
.notification-close { background: none; border: none; color: var(--text-secondary); cursor: pointer; margin-left: auto; }

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgb(0 0 0 / 30%);
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

.nav-bar {
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav-bar.scrolled {
    background: rgb(15 20 30 / 95%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgb(0 0 0 / 50%);
}

/* Loading indicators */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgb(15 20 30 / 80%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: inherit;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgb(255 255 255 / 10%);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinner 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spinner { to { transform: rotate(360deg); } }

/* Parallax backgrounds */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}
