/* ========================================= */
/* GLASS NAVBAR LOGO STYLES - حرفه‌ای و شیشه‌ای */
/* ========================================= */

/* کانتینر اصلی لوگو در نوبار */
.navbar-brand {
    position: relative;
    z-index: 1000;
}

/* استایل گلاس مستطیلی کشیده */
.glass-logo-container {
    width: 220px; /* عرض زیاد برای لوگوی کشیده */
    height: 60px; /* ارتفاع متوسط */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px);
    border-radius: 16px;
    padding: 8px 25px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    margin-right: 20px;
    z-index: 100;
}

/* افکت نور متحرک در پس‌زمینه */
.glass-logo-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        linear-gradient(45deg,
            transparent 30%,
            rgba(37, 99, 235, 0.15) 45%,
            rgba(6, 182, 212, 0.1) 55%,
            transparent 70%
        );
    animation: glassFlow 8s linear infinite;
    z-index: -1;
    transform-origin: center;
}

/* افکت نور گوشه‌ها */
.glass-logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
    border-radius: 16px;
    z-index: -1;
}

/* استایل لوگو داخل کانتینر */
.glass-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter:
        brightness(1.15)
        contrast(1.2)
        drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    transform: scale(0.95);
}

/* افکت حاشیه شیشه‌ای */
.glass-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        rgba(255, 255, 255, 0.4) 100%
    );
    border-radius: 18px;
    animation: borderShine 3s ease-in-out infinite;
    z-index: -1;
    opacity: 0.6;
}

/* افکت سایه شناور */
.floating-shadow {
    position: absolute;
    bottom: -8px;
    left: 20%;
    right: 20%;
    height: 15px;
    background: radial-gradient(ellipse at center,
        rgba(37, 99, 235, 0.4) 0%,
        rgba(37, 99, 235, 0.2) 30%,
        transparent 70%);
    border-radius: 50%;
    filter: blur(5px);
    animation: shadowFloat 3s ease-in-out infinite;
    z-index: -2;
}

/* انیمیشن‌ها */
@keyframes glassFlow {
    0% {
        transform: rotate(0deg) translate(-10%, -10%);
    }
    100% {
        transform: rotate(360deg) translate(-10%, -10%);
    }
}

@keyframes borderShine {
    0%, 100% {
        opacity: 0.4;
        background-position: 0% 0%;
    }
    50% {
        opacity: 0.8;
        background-position: 100% 100%;
    }
}

@keyframes shadowFloat {
    0%, 100% {
        transform: translateY(0) scaleX(1);
        opacity: 0.4;
    }
    50% {
        transform: translateY(5px) scaleX(1.2);
        opacity: 0.6;
    }
}

/* هاور افکت */
.glass-logo-container:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 20px 50px rgba(37, 99, 235, 0.35),
        0 10px 30px rgba(6, 182, 212, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.glass-logo-container:hover .glass-logo {
    transform: scale(1.05);
    filter:
        brightness(1.25)
        contrast(1.3)
        drop-shadow(0 4px 20px rgba(37, 99, 235, 0.5));
}

.glass-logo-container:hover::before {
    animation-duration: 4s;
}

/* استایل‌های ریسپانسیو */
@media (max-width: 1200px) {
    .glass-logo-container {
        width: 200px;
        height: 55px;
        padding: 7px 22px;
    }
}

@media (max-width: 992px) {
    .glass-logo-container {
        width: 180px;
        height: 50px;
        padding: 6px 20px;
        margin-right: 15px;
    }
}

@media (max-width: 768px) {
    .glass-logo-container {
        width: 150px;
        height: 45px;
        padding: 5px 18px;
        border-radius: 14px;
        margin-right: 10px;
    }

    .floating-shadow {
        left: 15%;
        right: 15%;
    }
}

@media (max-width: 576px) {
    .glass-logo-container {
        width: 130px;
        height: 40px;
        padding: 4px 15px;
        border-radius: 12px;
    }

    .glass-border {
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
        border-radius: 14px;
    }
}

/* انیمیشن برای ورود نوبار */
@keyframes navbarSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-medical {
    animation: navbarSlideIn 0.6s ease-out;
}