/* File: gca3/public/css/main.css */

/* Glassmorphism Base */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.active-nav {
    color: #818cf8;
    transform: translateY(-2px);
}

.active-nav i {
    filter: drop-shadow(0 0 12px rgba(129, 140, 248, 0.6));
}

/* Page Transitions */
.page {
    display: none;
    animation: fadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animated Background Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
    z-index: 0;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: #4f46e5;
    animation-delay: 0s;
}

.blob-2 {
    top: 20%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: #9333ea;
    animation-delay: -5s;
}

.blob-3 {
    bottom: -10%;
    left: 20%;
    width: 350px;
    height: 350px;
    background: #2563eb;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Breathing Animation */
.breather {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: breathe 8s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(129, 140, 248, 0.4);
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(0.85);
        opacity: 0.7;
        box-shadow: 0 0 20px rgba(129, 140, 248, 0.3);
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 60px rgba(129, 140, 248, 0.6);
    }
}

@keyframes ping-slow {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-ping-slow {
    animation: ping-slow 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scale-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Input Polish */
.polished-input {
    transition: all 0.3s ease;
}

.polished-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.1);
}

/* Mobile Polish */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 20px);
}

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

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Profile Sheet Animation */
@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-up {
    animation: slide-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fade-in-down {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade-in-down {
    animation: fade-in-down 0.2s ease-out forwards;
}

/* Profile Dot Pulse */
.online-dot {
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 1);
}