/* Create Artwork Button */
.create-artwork-btn {
    position: fixed;
    top: 20px;
    right: 240px;
    z-index: 200;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #00ffcc;
    border-radius: 50%;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3),
                0 0 40px rgba(255, 0, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: slideInFromRight 0.5s ease-out;
}

.create-artwork-btn:hover {
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.5),
                0 0 60px rgba(255, 0, 255, 0.3);
    transform: translateY(-2px) rotate(90deg);
    border-color: #ff00ff;
}

.plus-icon {
    color: #00ffcc;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    transition: all 0.3s ease;
}

.create-artwork-btn:hover .plus-icon {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

/* User Card */
.user-card {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 200;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #00ffcc;
    border-radius: 15px;
    backdrop-filter: blur(20px);
    padding: 12px 16px;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3),
                0 0 40px rgba(255, 0, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-card:hover {
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.5),
                0 0 60px rgba(255, 0, 255, 0.3);
    transform: translateY(-2px);
}

.user-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00ffcc, #00ccaa);
    color: #000;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    color: #00ffcc;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}

.user-username {
    color: #ff00ff;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    opacity: 0.8;
}

/* Dropdown */
.user-card-dropdown {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 255, 204, 0.3);
    flex-direction: column;
    gap: 8px;
}

.user-card:hover .user-card-dropdown {
    display: flex;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 8px;
    color: #00ffcc;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
    transform: translateX(3px);
}

.dropdown-item .icon {
    font-size: 16px;
}

.logout-form {
    margin: 0;
    padding: 0;
}

.logout-btn {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 0, 255, 0.2);
    background: rgba(255, 0, 255, 0.05);
    color: #ff00ff;
}

.logout-btn:hover {
    background: rgba(255, 0, 255, 0.1);
    border-color: #ff00ff;
}

/* Responsive */
@media (max-width: 768px) {
    .create-artwork-btn {
        top: 10px;
        right: 180px;
        width: 55px;
        height: 55px;
    }

    .plus-icon {
        font-size: 32px;
    }

    .user-card {
        top: 10px;
        right: 10px;
        padding: 10px 12px;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
    }

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

    .user-name {
        font-size: 12px;
    }

    .user-username {
        font-size: 10px;
    }

    .dropdown-item {
        padding: 6px 10px;
        font-size: 12px;
    }

    .dropdown-item .icon {
        font-size: 14px;
    }
}

/* Animation */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-card {
    animation: slideInFromRight 0.5s ease-out;
}

/* Hide in preview mode (iframe) */
body.preview-mode .user-card,
body.preview-mode .create-artwork-btn,
body.preview-mode .login-btn {
    display: none;
}

