/* css/login.css */

/* Модалка логіну */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    font-family: inherit;
}

.login-modal-content {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #000 100%);
    border: 2px solid #D579F8;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow:
        0 0 50px rgba(213, 121, 248, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Декоративний елемент фону */
.login-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(213, 121, 248, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

.login-header {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.login-header h2 {
    color: #D579F8;
    margin: 0 0 15px 0;
    font-size: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(213, 121, 248, 0.5);
}

.login-header p {
    color: #ccc;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
}

.login-buttons {
    position: relative;
    z-index: 2;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #333;
    padding: 18px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.google-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(213, 121, 248, 0.2), transparent);
    transition: left 0.6s ease;
}

.google-login-btn:hover::before {
    left: 100%;
}

.google-login-btn:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-3px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(213, 121, 248, 0.3);
    border-color: rgba(213, 121, 248, 0.3);
}

.google-login-btn svg {
    flex-shrink: 0;
}

/* User Info Styles */
.user-info {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.user-avatar-container {
    position: relative;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(213, 121, 248, 0.3);
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(213, 121, 248, 0.5),
        0 0 20px rgba(213, 121, 248, 0.3);
}

.user-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D579F8 0%, #C268E7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(213, 121, 248, 0.4),
        0 0 0 2px rgba(213, 121, 248, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.user-avatar-placeholder:hover {
    transform: scale(1.1);
    box-shadow:
        0 6px 20px rgba(213, 121, 248, 0.6),
        0 0 0 3px rgba(213, 121, 248, 0.5),
        0 0 20px rgba(213, 121, 248, 0.4);
}

/* User Menu Styles */
.user-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #D579F8;
    border-radius: 15px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(213, 121, 248, 0.2),
        0 0 20px rgba(213, 121, 248, 0.2);
    min-width: 220px;
    display: none;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.user-menu-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(213, 121, 248, 0.1) 0%, rgba(213, 121, 248, 0.05) 100%);
    border-bottom: 1px solid rgba(213, 121, 248, 0.2);
}

.user-menu-name {
    font-weight: 600;
    color: #D579F8;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(213, 121, 248, 0.3), transparent);
}

.user-menu-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.user-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(213, 121, 248, 0.1), transparent);
    transition: left 0.3s ease;
}

.user-menu-item:hover::before {
    left: 100%;
}

.user-menu-item:hover {
    background: rgba(213, 121, 248, 0.1);
    color: #D579F8;
    transform: translateX(5px);
}

.user-menu-item svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.user-menu-item:hover svg {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-modal-content {
        padding: 40px 30px;
        max-width: 95%;
        margin: 20px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .google-login-btn {
        min-width: 250px;
        padding: 16px 25px;
        font-size: 15px;
    }

    .user-info {
        top: 15px;
        right: 15px;
    }

    .user-menu {
        min-width: 200px;
        right: -10px;
    }

    .user-avatar,
    .user-avatar-placeholder {
        width: 40px;
        height: 40px;
    }

    .user-avatar-placeholder {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .login-modal-content {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .google-login-btn {
        min-width: 220px;
        padding: 14px 20px;
        font-size: 14px;
        gap: 10px;
    }
}

/* Анімація появи модалки */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-modal {
    animation: modalFadeIn 0.4s ease-out;
}

/* Додаткові ефекти */
.login-modal-content {
    animation: modalContentSlide 0.5s ease-out;
}

@keyframes modalContentSlide {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .menu-top_logowrap .logo {
        margin-right: 30vw;
    }
}


